1.

In a hash table of size 10, where is element 7 placed?(a) 6(b) 7(c) 17(d) 16I'd like to ask this question from Hash Tables topic in division Hash Tables of Data Structures & Algorithms IThe question was posed to me in exam.

Answer»

The correct option is (b) 7

Best EXPLANATION: The HASH location is defined as hash(F)= key MOD table_size.

7 mod 10 gives 7. It is placed in 7^th position.



Discussion

No Comment Found

Related InterviewSolutions