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

1. Before you can perform a bubble sort, the data must be stored in descending order.
2. You are more likely to find an item by using a binary search than by using a linear search.
3. If you are using the bubble sort algorithm to sort an array in descending order, the smaller values move toward the end.
4. A selection sort and a binary search can be applied to STL vectors as well as arrays.
5. The linear search repeatedly divides the portion of an array being searched in half.

1. F
2. F
3. T
4. T
5. F

Computer Science & Information Technology

You might also like to view...

The expression between the words If and Then is called a:

a) condition b) clause c) operator d) controller

Computer Science & Information Technology

____________________ operators compare the value in a field with a range of values in a criterion.

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

Computer Science & Information Technology