OCR GCSE Computer Science · J277
Paper 2
Revise: 1D and 2D ArraysAn array keeps related values together under one name. Each value is an element, and its position is identified by an index.
Loading…
GCSE Computer Science · key term
An ordered, fixed-length collection of elements of the same data type, accessed using indices.
Used by OCR
Paper 2
Revise: 1D and 2D ArraysAn array keeps related values together under one name. Each value is an element, and its position is identified by an index.
For a zero-indexed array with n elements, valid indices run from 0 to n − 1.
Check the index order shown in the question before accessing a 2D array; do not assume the first index always represents a row.
Static means the array's size is fixed, not that its stored values cannot change.
Create a free account to read GCSE Computer Science revision notes for your exam board and track your progress.