logo

AQA A-Level Computer Science practice

Describe how a simple hash table could be used to map student identification numbers to student names. Include the role of the key, the value, the hash function and collisions.

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

At a glance

Question

Type

practice

Style

Topic

Hash tables

Exam-style question

Try this first

Describe how a simple hash table could be used to map student identification numbers to student names. Include the role of the key, the value, the hash function and collisions.

Answer and explanation

Concise answer

The student identification number can be used as the key and the student's name can be used as the value.

Why this is correct

This answer explains the mapping between keys and values, applies a simple hashing process and accurately describes what happens when two keys compute the same hash.

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