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...

If the call to the function arrange below puts the three integers a, b, and c in numerical order, write the function prototype for arrange.

What will be an ideal response?

Computer Science & Information Technology

If you save a presentation with a .pptx file extension, it will open in ________ view in PowerPoint 2013

A) Presenter B) Slide Sorter C) Normal D) Slide Show

Computer Science & Information Technology

Adding ____ to a Web site increases a site's attractiveness but adds complexity in terms of increased page file sizes.

A. images B. links C. files D. colors

Computer Science & Information Technology

One programming technique used to simplify long, complex expressions is to use braces.

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

Computer Science & Information Technology