Which of the following are search techniques?
A. Linear
B. Bubble
C. Binary
D. Hashing
Which of the following are search techniques?
A. Linear
B. Bubble
C. Binary
D. Hashing
Solution
✅ Correct Option: 2
Linear search, binary search and hashing are all used to find an element in a collection. Linear search checks items one by one, binary search repeatedly halves a sorted list, and hashing uses a hash function to jump straight to the location of a key.
Bubble: this is a sorting technique (it swaps adjacent out-of-order elements), not a searching one. The word "Bubble" alone is the common trap, so options 1, 3 and 4 are wrong.
Memory trick: bubble, selection, insertion, merge and quick are sorts; linear, binary and hashing are searches.
Related questions:
2026: 31 May Shift 1
2026: 24 May Shift 1
2026: 20 May Shift 1