Exam-style question
Try this first
A simple hash function is h(key) = key modulo 10. What hash value is produced for the key 47?.
- A.0
- B.4
- C.7
- D.10
Model answer
What a good answer should say
- 7
Explanation
Why this works
47 modulo 10 is 7, so the hash value is 7.
Common mistake
No common mistake is linked to this question yet.
