Parallel arrays
Two or more arrays of the same size where the same index holds related data, e.g. StudentNames[3] and Marks[3] both describe the same student.
Understanding Parallel arrays in IGCSE Computer Science Paper 2
What it does: The single loop variable Index fills the name and the mark for the same student on each pass. Parallel arrays are separate 1D arrays linked by index. A grid of rows and columns is a 2D array. A parallel array to a 30-element StudentNames array must also have bounds 1 to 30, but it can hold a different data type.
Common mistakes: Parallel arrays must use the same index for the same student. Marks[I+1] shows the next student's mark next to this name. It should be Marks[I]. Both arrays hold 5 items, so the loop must stop at 5. Going to 6 uses an index that does not exist in either array. It should be FOR I ← 1 TO 5.
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 459–468) and word search (Modules 459–478).
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
parallel arraysFill in the Blanks
Spot the Error
Student with a class code? Join your class →