Skip to main contentSkip to solution

The technique which is used to know the presence of an element in the list in just one step is called___________.

Solution

✅ Correct Option: 4

Hashing uses a hash function to convert a key directly into an index in a hash table, so the element's position is found in one step, with average time O(1)O(1). No element-by-element comparison is needed.


Collision: this is a problem in hashing, where two keys map to the same index. It is not a search technique.

Binary Search: it needs a sorted list and halves the search range each time, taking O(log⁡n)O(\log n) steps.

Linear Search: it checks elements one by one, taking O(n)O(n) steps.

Keyboard Shortcuts

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