🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: How Hashing Works: all 13 questions

Quiz: How Hashing Works · Question 2 of 13

What is a collision in a hash table?

What is a collision in a hash table?

  1. A.Two equal keys stored twice
  2. B.Two different keys mapped to the same bucket
  3. C.The table running out of memory
  4. D.A key that has no hash code
Answer & explanation

Correct answer: Two different keys mapped to the same bucket

Different keys can produce the same bucket index; the table must store both.

Can you get the rest right without peeking?

Take the timed Quiz: How Hashing Works quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →