Binary search can only be applied to-
Binary search can only be applied to-
Solution
✅ Correct Option: 1
Binary search compares the target with the middle element and discards half of the list each time. This only works if the data is sorted (ascending or descending), because the order tells us which half can contain the target.
Options 3 and 4: binary search works for any length, since the middle element is chosen by integer division whether the length is even or odd.
Option 2: on unsorted data, the middle comparison says nothing about which half holds the target, so linear search is needed instead.
Related questions:
2025: 27 May Shift 2
2025: 22 May Shift 1
2026: 19 May Shift 1
2025: 22 May Shift 1
2026: 26 May Shift 1