?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Moderate

Binary Search Number of Iterations

APCSA-FXYVFZ

With the binary search algorithm, the maximum number of iterations needed to find an element in an ordered array containing 515 elements is closest to which of the following?

A

5

B

10

C

50

D

100

E

500