Assume int[] scores = {1, 20, 30, 40, 50}, what value does java.util.Arrays.binarySearch(scores, 30) return?

a. 0
b. -1
c. 1
d. 2
e. -2

d

Computer Science & Information Technology

You might also like to view...

Which of the following is not a whitespace character?

a) '\n' b) '\f' c) '\r' d) '\w'

Computer Science & Information Technology

Press ____ to display the Actions panel.

a. CTRL+ENTER b. F8 c. F9 d. ALT+F7

Computer Science & Information Technology