logo

AQA A-Level Computer Science practice

What is the main purpose of a hash table?

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

At a glance

MCQ

Type

practice

Style

Topic

Hash tables

Exam-style question

Try this first

What is the main purpose of a hash table?.

  1. A.To create a mapping between keys and values
  2. B.To sort values into alphabetical order
  3. C.To store only numerical values
  4. 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.

Related flashcards

No flashcards are published for this page yet.

Related practice questions