Counting in Cambridge pseudocode
Adds 1 to the counter variable Count each time it runs inside a loop. Set Count ← 0 before the loop starts, so Count ends up holding how many times the loop ran.
Understanding Counting in Cambridge pseudocode in IGCSE Computer Science Paper 2
What it does: Count ← 0 placed before the loop gives the counter a starting value, so the first pass adds to 0. In Cambridge pseudocode the variable being changed goes on the left of the ← arrow. The new value goes on the right. A counter holds whole numbers, so its data type is INTEGER. A STRING stores text, which cannot be added to. Count goes 0 → 1 → 2 → 3 → 4 → 5. It increases once per pass, and there are 5 passes. The sentinel only signals the end, so it should not be counted. Count goes inside the loop and runs only for valid values.
Common mistakes: A FOR loop sets its counter with the assignment arrow, not =. The line should be FOR i ← 1 TO 10. A WHILE loop uses DO, not THEN (THEN belongs to IF). The line should be WHILE Num <> -1 DO.
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 275–285) and word search (Modules 275–295).
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
Count ← Count + 1Fill in the Blanks
Spot the Error
Student with a class code? Join your class →