Skip to main contentSkip to solution

For binary search, the list is in ascending order and the key is present in the list. If the middle element is less than the key, it means:

Solution

✅ Correct Option: 2

Since the list is in ascending order, every element after the middle is greater than or equal to the middle element. If the middle element is less than the key, the key must lie after it, so the search continues in the second half (the lower bound moves to mid+1mid + 1).


Option 1: This would be true if the middle element were greater than the key, because then the key lies before the middle.

Option 4: The key equals the middle element only when the two are equal, not when the middle is less than the key.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question