Answer the following statements true (T) or false (F)

1) Quick sort works by separating a list into two lists, and recursively sorting the two lists using quick sort.
2) The sort method of the Arrays class sorts the elements of an array by using a comparator
3) Implementing the Comparator interface requires writing a body for the compareTo method.
4) With each comparison, a binary search eliminates approximately half of the items remaining in the search pool.
5) The selection sort algorithm sorts a list of values by repeatedly putting a particular value into its final, sorted position.

1) T
2) T
3) F
4) T
5) T

Computer Science & Information Technology

You might also like to view...

Sorting arranges records in a table by:

A) the value in field(s) within a table. B) permanently removing extraneous data. C) the row number. D) using filter arrows.

Computer Science & Information Technology

In general, a photo with high resolution looks better than a photo with low resolution

Indicate whether the statement is true or false

Computer Science & Information Technology