What does the loop return after boundaries converge?
Practice this question from First Bad Version - Predicate search Pattern Practice Quiz, with options and an explanation.
Question
What does the loop return after boundaries converge?
Option A — Correct answer
The first true predicate index
Option B
The last good version
Option C
Always n + 1
Option D
The midpoint only
Explanation
It returns the first index where the predicate is true.