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...
When someone visits a Web page containing a Java applet:
A) the applet is executed on the server and displayed on the Web page B) the applet is downloaded to the visitor's browser and executed C) the applet is executed using a portion of the resources from each visitor's browser D) the visitor's browser acts as the server and hosts the applet for other visitors
The routines that communicate directly with hardware are all concentrated in the UNIX __________.
a. device driver b. kernel c. shell d. none of the above
A designer-quality graphic used to create a visual representation of information.
What will be an ideal response?
The default setting for the Required field property for most fields is "Yes".
Answer the following statement true (T) or false (F)