Choosing how to earn college credit? CLEP vs AP guide
| preferred AP College board partner for AP classes
AP Computer Science A/Unit 4: Data Collections
Start Practice TestPractice Test
About Exam
hard Solved by 1 students

Binary Search Sequence Analysis

Mark
< Prev
Next >

A binary search for the value 42 is executed on a sorted array. The sequence of middle values examined during the search is 50, 25, 37, 43, 40, 41, and 42. Which of the following must be true about the size of the array and the position of the value 42?

A

The array has exactly 128 elements, and 42 is located in the lower half of the original search space

B

The array has between 32 and 63 elements, and 42 is located in the upper half of the original search space

C

The array has between 64 and 127 elements, and 42 is located in the lower half of the original search space

D

The array has between 64 and 127 elements, and 42 is located in the upper half of the original search space

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question

Question Leaderboard

Not enough data yet to show leaderboard.

No comments yet. Be the first to comment!

AI Tutor

How can I help?

APFIVE © 2020.
Email: apfive@apfive.org|Instagram: @_apfive_|Privacy Policy|