Skip to main contentSkip to solution

Find from the following condition that holds FALSE for binary search:

Solution

✅ Correct Option: 2

Binary search works only on a sorted list. It compares the key with the middle element, then discards half the list depending on whether the key is smaller or larger. This halving is valid only if the order is known, so requiring an unordered list is false.


Options 1, 3 and 4: these are true steps of binary search (sorted input, find the middle, compare the middle with the key).

Linear search is the one that works on unordered lists.

Keyboard Shortcuts

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