logo

Question detail

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?

Try the question, check the answer, then read the explanation to understand the curriculum point.

At a glance

MCQ

Type

practice

Style

Topic

Searching algorithms

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?.

  1. A.The lower half
  2. B.The upper half
  3. C.The entire original range
  4. D.Only the middle item again

Model answer

What a good answer should say

  • The upper half

Explanation

Why this works

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.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.