CONSTANT
Names a value set once with a literal. It never changes, needs no DECLARE, and can be updated in one place.
Understanding CONSTANT in IGCSE Computer Science Paper 2
What it does: The value 20 is a literal, so this is a correct constant. Constants are not set from calculations or user input. The CONSTANT line both names the identifier and sets its value, so no separate DECLARE statement is needed. A constant can only be set using a literal such as 100. It cannot be set using a variable or a calculation. A constant is set once and never changes. A variable is the kind of identifier that can change. If the rate changes, you edit one CONSTANT line instead of finding every 6.50 in the program. Pseudocode uses ← to assign a value. A single = is used for comparison, not assignment.
Common mistakes: A constant is given its value with the assignment arrow ←, not =. The line should be CONSTANT HourlyRate ← 6.50. A constant does not need DECLARE. The CONSTANT statement creates it and gives it its value, so the line should be CONSTANT VatRate ← 0.2.
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
CONSTANT HourlyRate ← 6.50Fill in the Blanks
Spot the Error
Student with a class code? Join your class →