Multiple Choice
Which of the following statements about binary search of an array in ascending order is false?
A) The binary search algorithm is more efficient than linear search, but the linear search requires a sorted array.
B) The first iteration of this algorithm tests the middle element in the array. If this matches the search key, the algorithm ends.
C) If the search key is less than the middle element, it cannot match any element in the second half of the array so the algorithm continues with only the first half of the array (i.e., the first element up to, but not including, the middle element) .
D) If the search key is greater than the middle element, it cannot match any element in the first half of the array so the algorithm continues with only the second half of the array (i.e., the element after the middle element through the last element) .
Correct Answer:

Verified
Correct Answer:
Verified
Q4: Which of the following statements a), b)
Q5: Which of the following statements a), b)
Q6: Which of the following statements a), b)
Q7: An algorithm that tests whether the first
Q8: Which of the following statements about the
Q10: Suppose an algorithm is designed to test
Q11: Suppose you have an algorithm that tests
Q12: The following code implements a simple linear
Q13: Which of the following statements a), b)
Q14: Which of the following statements is false?<br>A)