Exam-style question
Try this first
What is the main purpose of a hash table?.
- A.To create a mapping between keys and values
- B.To sort values into alphabetical order
- C.To store only numerical values
- D.To remove all duplicate keys automatically
Model answer
What a good answer should say
- To create a mapping between keys and values
Explanation
Why this works
A hash table is a data structure that creates a mapping between keys and values.
Common mistake
No common mistake is linked to this question yet.
