Exam-style question
Try this first
A binary search checks the middle item of a current range. The target is greater than this item. Which part of the range should be searched next?.
- A.The lower half
- B.The upper half
- C.The entire original range
- D.Only the middle item again
Answer and explanation
Concise answer
The upper half
Why this is correct
Because the values are ordered and the target is greater than the middle item, the target can only be in the upper half of the current range.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
