Writing literals in Cambridge pseudocode
A fixed value written in code: a real with digits either side of the point (4.7), a CHAR in single quotes ('x'), a STRING in double quotes ("Hello"), or BOOLEAN TRUE or FALSE.
Understanding Writing literals in Cambridge pseudocode in IGCSE Computer Science Paper 2
What it does: 0.0 follows the rule because it has a digit before and after the point, so it is a valid REAL literal. BOOLEAN values are the keywords TRUE and FALSE written in capitals and without quotes. A CHAR uses single quotes. Double quotes make it a STRING. Cambridge pseudocode needs a digit on each side of the point, so .5 must be written 0.5.
Common mistakes: A REAL literal needs a digit on each side of the decimal point. It should be Price ← 4.7. A REAL literal needs a digit before the decimal point as well as after it. It should be Score ← 0.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 17–26) and word search (Modules 1–26).
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
literalFill in the Blanks
Spot the Error
Student with a class code? Join your class →