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
Answer and explanation
Concise answer
To store each word together with the number of times it occurs
Why this is correct
In this information retrieval application, each distinct word is a key and its value records how many times the word occurs.
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.
