Question 149

Hash table of size 10, h(k) = k mod 10, linear probing. Keys 12, 22, 32 are inserted in order. Where is 32 stored?

  1. AIndex 4
  2. BIndex 5
  3. CIndex 2
  4. DIndex 3
Show answerHide answer

Correct answer: (A) Index 4

Explanation

12 → 2; 22 → 3 (2 full); 32 → 4 (2 and 3 full).

From DSSSB TGT Computer Science Full Mock Test 3

This is question 149 of DSSSB TGT Computer Science Full Mock Test 3. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.