AP Computer Science Principleshardmcq1 pt
A binary search of a sorted list of 16 items examines at most about
A.4 elements
B.16 elements
C.8 elements
D.2 elements
log base 2 of 16 is 4.
A4 elements
Practice more AP Computer Science Principles questions with full explanations
Practice Unit 3: Algorithms and Programming Questions →