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

Suppose that you have a binary file that contains numbers whose type is either int or double. You don’t know the order of the numbers in the file, but their order is recorded in a string at the beginning of the file. The string is composed of the letters i (for int) and d (for double) in the order of the types of the subsequent numbers. The string is written using the method writeUTF. For example, the string "iddiiddd" indicates that the file contains eight values, as follows: one integer, followed by two doubles, followed by two integers, followed by three doubles. Read this binary file and create a new text file of the values, written one to a line.

What will be an ideal response?

Computer Science & Information Technology

________ is a common text editing tool in Windows 8

A) Paint B) WordPad C) Excel D) Snip

Computer Science & Information Technology

Spyware, adware and DDOS agents are three types of:

a. IP spoofing attacks b. Denial-of-service attacks c. Trojans d. Physical security threats e. Intrusion prevention detection approaches

Computer Science & Information Technology

A technician is connecting a PoE enabled phone and needs to run the drop from the switch that is 55 meters(180.4 feet) away. Which of the following cable types would be the MOST suitable for this purpose?

A. Fiber B. Coaxial C. CAT3 D. CAT6

Computer Science & Information Technology