AP Computer Science Principleshardmcq1 pt
A binary search of [1, 3, 5, 7, 9, 11, 13] for the value 11 first compares 11 with
A.7
B.1
C.13
D.11
7 is the middle of seven elements.
A7
Practice more AP Computer Science Principles questions with full explanations
Practice Unit 3: Algorithms and Programming Questions →