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.
