🎙 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 11 of 13

A hash map has 12 keys in 16 buckets. What is its load factor?

A hash map has 12 keys in 16 buckets. What is its load factor?

  1. A.1.33
  2. B.4
  3. C.0.25
  4. D.0.75
Answer & explanation

Correct answer: 0.75

Load factor = items / buckets = 12 / 16 = 0.75. Java's HashMap resizes when this limit is passed.

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 →