Which statement is false?

a. Queue is a new collection interface introduced in J2SE 5.0.
b. Queue and PriorityQueue are included in the java.util package.
c. PriorityQueue orders elements in increasing order, so that smallest value will be the first element removed from PriorityQueue.
d. Queue extends interface Collection.

d. Queue extends interface Collection.

Computer Science & Information Technology

You might also like to view...

____________________ are a series of tests to gauge the overall speed of a processor.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Which of the following represents the Fibonnacci sequence?

A. Function Numeric unKnown(Numeric num)    // Call function recursively until reaching 0 or 1    If num == 0 Or num == 1 Then       Return num    Else       Return unKnown(num - 2) + unKnown(num - 1)    End If End Function B. Function Numeric unKnown(Numeric num)    // Base case returns 1    If (num == 1) Then       Return 1    Else       Return (num * num) + unKnown(num - 1)    End If End Function C. Function Numeric unKnown(Numeric num)    // Declare variables    Declare Numeric fact = 1 // factorial result    Declare Numeric index // loop index       // Loop    For index = num to 1 Step -1       fact = fact * index    End For    Return fact End Function D. Module unKnown(Integer n, sourcePeg, targetPeg, sparePeg)    If (n > 0) Then       moveDiscs(n - 1, sourcePeg, sparePeg, targetPeg)    // Move disc from sourcePeg to targetPeg       moveDiscs(n - 1, sparePeg, targetPeg, sourcePeg)    End If End Module

Computer Science & Information Technology