logo

AQA A-Level Computer Science practice

Explain the difference between an array and a record. Give one suitable example of information that could be represented by each.

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

At a glance

Question

Type

practice

Style

Topic

Programming

Exam-style question

Try this first

Explain the difference between an array and a record. Give one suitable example of information that could be represented by each.

Answer and explanation

Concise answer

An array is an organised collection of values, normally using elements of the same data type.

Why this is correct

The distinction is based on how the data is grouped. An array is suitable when there are multiple values of a common type, while a record is suitable when different pieces of information describe one entity. The examples demonstrate appropriate use of both data types.

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