Assignment with <-
The <- operator stores the value on its right in the variable on its left. Count <- 0 puts 0 into Count. It is assignment, not a test for equality.
Understanding Assignment with <- in IGCSE Computer Science Paper 2
What it does: Length * Width is calculated first and the answer is stored in Area. After the second line Score holds 15. The old value 10 is overwritten. The variable that receives the value goes on the left of <-. The value goes on the right, so Count <- 0 is correct. The calculation on the right is worked out first. The result, 15, is then stored in Score. Cambridge pseudocode uses <- for assignment. A single = is used to test whether two values are equal, so Total <- Total + Number is the correct way to update Total. To store 0 in Count you must write Count ← 0. The = sign is for comparing in conditions.
Common mistakes: Assignment uses the <- operator, not =. In Cambridge pseudocode = is a comparison, so the line should be Total <- Total + Number. The value goes on the right of <- and the variable on the left. The line should be Count <- 0.
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 347–357) and word search (Modules 337–357).
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 <- 0Fill in the Blanks
Spot the Error
Student with a class code? Join your class →