Skip to main contentSkip to solution

Match List-I with List-II

List-IList-II
(A) Linear Search(I) The key to be searched is compared with the element in the middle of a sorted list.
(B) Hashing(II) Two elements map to the same slot in the hash table.
(C) Binary Search(III) Every element of a given list is compared with the item to be searched for.
(D) Collision(IV) A function is used to calculate the value at an index in the list.

Solution

✅ Correct Option: 2
List IList II
(A) Linear Search(III) Every element of a given list is compared with the item to be searched for.
(B) Hashing(IV) A function is used to calculate the value at an index in the list.
(C) Binary Search(I) The key to be searched is compared with the element in the middle of a sorted list.
(D) Collision(II) Two elements map to the same slot in the hash table.

Binary search works only on a sorted list, because it halves the search range by checking the middle element each time.

Hashing uses a hash function to compute the index directly. A collision happens when that function gives the same index for two different keys.

Keyboard Shortcuts

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