In the binary search routine in the text, the first thing the code does is to check whether the object is not in the array. What is the test for this condition?

a) first < last
b) first == last
c) first > last
d) the test does not involve the variables first and last.

c) first > last

Computer Science & Information Technology

You might also like to view...

Which of the following is the outcome of policy review?

A. Retirement B. Renewal C. Reauthorization D. Both A and B E. Both A and C F. Both B and C

Computer Science & Information Technology

Subscripts begin with a value of ____.

A. -1 B. 0 C. 1 D. the number of elements in the array

Computer Science & Information Technology