Note AcademyNote Academy

Computer Science · May / June 2020 · Paper 22 · Question 5

0478

As printed in the paper

The question as text

Arrays are data structures used in programming. Explain what is meant by the terms dimension and index in an array. Use examples of arrays in your explanations. Dimension Index [3]

Read automatically from the paper; the printed page above is exact.

Show the answer and mark scheme

One mark for explanation of dimension

One mark for explanation of index

One mark for inclusion of an example

The dimension is the number of indexes required to access an element.

The index is the position of the element in an array

For example A[25] is the 25th element of a one-dimensional array.

Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.