Question 68Asked in BEL PE Computer Science, 17 Dec 2023 (8:30 AM)

Consider a hash table with 10 slots. What is the sequence of the following elements in a hash table if hash function is k mod 10 and the collision is…

Consider a hash table with 10 slots. What is the sequence of the following elements in a hash table if hash function is k mod 10 and the collision is resolved using linear probing? 44, 26, 12, 93, 80, 57, 56, 23, 46, 36
  1. A12, 23, 26, 36, 44, 46, 56, 57, 80, 93
  2. B80, 46, 12, 93, 44, 23, 26, 57, 56, 36
  3. C80, 36, 12, 93, 44, 23, 26, 56, 46, 57
  4. D80, 36, 12, 93, 44, 23, 26, 57, 56, 46
Show answerHide answer

Correct answer: (D) 80, 36, 12, 93, 44, 23, 26, 57, 56, 46

From BEL PE Computer Science PYQ, 17 Dec 2023 (8:30 AM)

This is question 68 of BEL PE Computer Science PYQ, 17 Dec 2023 (8:30 AM). 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.