logo

AQA A-Level Computer Science practice

What is the main purpose of using a dictionary to represent the words in a document?

Try the question first, then check the answer and practise the same topic again.

At a glance

MCQ

Type

practice

Style

Topic

Dictionaries

Exam-style question

Try this first

What is the main purpose of using a dictionary to represent the words in a document?.

  1. A.To store each word together with the number of times it occurs
  2. B.To arrange every word alphabetically without storing any values
  3. C.To replace every word with a single character
  4. 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.

Related flashcards

No flashcards are published for this page yet.

Related practice questions