Array, element and index
A fixed-length structure of elements; each element holds one value and is reached by its index, the position number in square brackets, such as Marks[3].
Understanding Array, element and index in IGCSE Computer Science Paper 2
What it does: Marks[2] is a single element, so this stores one value (75) at index 2. One array name with different indexes replaces separate variables such as Mark1, Mark2 and Mark3. Pseudocode uses square brackets around the index, so Scores[5] is correct. Index numbers are consecutive, so each one goes up by 1 with no gaps. Arrays have a fixed length. The number of elements is set when the array is declared. The array has only 5 elements, so every index must be between 1 and 5.
Common mistakes: The index of an array element goes in square brackets, not round brackets. It should be Marks[3] ← 64. Each element is reached by its index, so the position number must be written inside the square brackets. It should be Age[1] ← 15.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 439–448) and word search (Modules 439–458).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
ARRAYFill in the Blanks
Spot the Error
Student with a class code? Join your class →