← 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?
- A.1.33
- B.4
- C.0.25
- 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 →