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
Answer and explanation
Concise answer
To create a mapping between keys and values
Why this is correct
A hash table is a data structure that creates a mapping between keys and values.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
