Exam-style question
Try this first
What is the main purpose of using a dictionary to represent the words in a document?.
- A.To store each word together with the number of times it occurs
- B.To arrange every word alphabetically without storing any values
- C.To replace every word with a single character
- D.To store only the first word in the document
Model answer
What a good answer should say
- To store each word together with the number of times it occurs
Explanation
Why this works
In this information retrieval application, each distinct word is a key and its value records how many times the word occurs.
Common mistake
No common mistake is linked to this question yet.
