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

Explanation

Core Concept

7 is the middle of seven elements.

Correct Answer

A7

More Unit 3: Algorithms and Programming practice questions

Try a random question →

Practice more AP Computer Science Principles questions with full explanations

Practice Unit 3: Algorithms and Programming Questions →