For the binarySearch method in Section 7.10.2, what is low and high after the first iteration of the while loop when invoking binarySearch(new int[]{1, 4, 6, 8, 10, 15, 20}, 11)?

a. low is 0 and high is 6
b. low is 5 and high is 5
c. low is 3 and high is 6
d. low is 5 and high is 4
e. low is 6 and high is 5

d

Computer Science & Information Technology

You might also like to view...

Which uses the least amount of storage?

A. 'example' stored in a column of type CHAR(20) B. 'exam' stored in a column of type CHAR(20) C. 'ex' stored in a column of type CHAR(20) D. all of the above use the same amount of storage

Computer Science & Information Technology

Windows 10 displays security alerts and icons in the ____ area on the taskbar.

A. security B. alert C. notification D. warning

Computer Science & Information Technology