One-dimensional arrays
Creates an array called Marks: a named list of 10 items, numbered from lower bound 1 to upper bound 10. Every item must be the same data type, here INTEGER.
Understanding One-dimensional arrays in IGCSE Computer Science Paper 2
What it does: The [1:5] shows lower bound 1 and upper bound 5, so Scores has 5 items numbered 1 to 5, not starting at 0. OF REAL after the bounds sets one data type for all 8 items in Prices, so every item must be a REAL number. Cambridge pseudocode uses DECLARE name : ARRAY[lower:upper] OF type. The square brackets after the type belong to other languages.
Common mistakes: The array is declared as ARRAY[1:5], so the upper bound is 5. Index 6 is outside the array. The line should use an index from 1 to 5, such as T[5] ← 21.0. Cambridge arrays start at index 1, and this array has lower bound 1. Index 0 does not exist. The first item is T[1] ← 18.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 265–274) and word search (Modules 254–274).
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
DECLARE Marks : ARRAY[1:10] OF INTEGERFill in the Blanks
Spot the Error
Student with a class code? Join your class →