Assignment with ← (7c)
Assignment stores the value on the right of ← in the variable on the left. The value must match the variable's data type, e.g. Counter ← Counter + 1.
Understanding Assignment with ← (7c) in IGCSE Computer Science Paper 2
What it does: Assignment gives the variable its starting value, here the number 0, ready for counting. Score is on the left because it receives the new value. The expression Score + 5 is on the right. Work out Counter + 1 on the right, then store the result in the variable on the left. A REAL variable stores a number with a decimal part. Text in quotes does not match the data type.
Common mistakes: The variable must be on the left of ←. Here the value 0 is on the left, which is not allowed. It should be Counter ← 0. Only a single variable can go on the left of ←. The expression Hours * Rate must be on the right: TotalToPay ← Hours * Rate.
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 146–155) and word search (Modules 146–165).
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
<identifier> ← <value>Fill in the Blanks
Spot the Error
Student with a class code? Join your class →