logo

AQA A-Level Computer Science practice

What is a dictionary data structure?

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 a dictionary data structure?.

  1. A.A collection of values stored in a fixed order
  2. B.A collection of key-value pairs in which a value is accessed using its associated key
  3. C.A collection containing only numerical values
  4. D.A collection in which every item must have the same key

Answer and explanation

Concise answer

A collection of key-value pairs in which a value is accessed using its associated key

Why this is correct

A dictionary stores pairs consisting of a key and its associated value. The key is used to access the value.

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