Skip to main contentSkip to solution

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.

Keyboard Shortcuts

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