logo

AQA A-Level Computer Science practice

Which statement is generally true when comparing adjacency lists with adjacency matrices?

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

At a glance

MCQ

Type

practice

Style

Topic

Graphs

Exam-style question

Try this first

Which statement is generally true when comparing adjacency lists with adjacency matrices?.

  1. A.An adjacency list records each vertex and the vertices connected to it
  2. B.An adjacency list must contain a row and column for every pair of vertices
  3. C.An adjacency matrix cannot represent an undirected graph
  4. D.An adjacency matrix can represent only weighted graphs

Answer and explanation

Concise answer

An adjacency list records each vertex and the vertices connected to it

Why this is correct

An adjacency list stores each vertex together with its connected vertices. An adjacency matrix instead uses a table of vertex pairs. Both can represent directed, undirected, weighted, or unweighted graphs when suitable entries are used.

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