Exam-style question
Try this first
Which description best matches a one-dimensional array?.
- A.A set of elements arranged in a single sequence
- B.A set of elements arranged in rows and columns only
- C.A set of elements that must all have different data types
- D.A set of elements indexed by a tuple of three integers
Model answer
What a good answer should say
- A set of elements arranged in a single sequence
Explanation
Why this works
A one-dimensional array has one index for each element and is useful for representing a vector.
Common mistake
No common mistake is linked to this question yet.
