Answer the following statements true (T) or false (F)
1. A binary search requires that the elements be in order.
2. Using a binary search, you are more likely to find an item than if you use a linear search.
3. When searching for a particular object in an array of objects, it is necessary to compare the search key to the value in each examined object's key field
4. When an array is sorted from highest to lowest, it is said to be in ascending order.
5. When sorting an array of objects, if the values in the data member being sorted on are out of order for two objects, those two data values should be swapped.
1. TRUE
2. FALSE
3. TRUE
4. FALSE
5. FALSE
You might also like to view...
OpenOffice templates use the .ott extension
Indicate whether the statement is true or false
Changes made to an outline while in Outline View are immediately displayed in the Slide pane
Indicate whether the statement is true or false