Professional KnowledgeHardIBPS SO IT

Insert keys 12, 22, 32, 42 into a hash table of size 10 with h(k) = k mod 10 and linear probing. Position of 42 is:

  1. A. 2
  2. B. 5
  3. C. 4
  4. D. 3

Correct answer: B. 5

12 at 2, 22 at 3, 32 at 4, 42 finds 2, 3, 4 occupied and goes to 5.

More IT Officer Professional Knowledge (IBPS SO) questions

Exams that ask this topic