logo

AQA A-Level Computer Science practice

What is a collision in 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 a collision in a hash table?.

  1. A.When a key has no value
  2. B.When two key values compute the same hash
  3. C.When two values are stored in different tables
  4. D.When a hash table is empty

Answer and explanation

Concise answer

When two key values compute the same hash

Why this is correct

A collision occurs when two key values 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