Writing literals in pseudocode
Literals have fixed forms: CHAR in single quotes, STRING in double quotes, REAL with a digit each side of the point, BOOLEAN as TRUE or FALSE in capitals.
Understanding Writing literals in pseudocode in IGCSE Computer Science Paper 2
What it does: Writing 4.0 gives a digit before and after the point, so it is a valid REAL literal. 4. is not valid. BOOLEAN values are the keywords TRUE and FALSE in upper case, with no quotes around them. A CHAR literal uses single quotes. Double quotes make it a STRING, even when it holds only one character.
Common mistakes: A STRING literal must be in double quotes. Single quotes are only for one CHAR. It should be Name ← "Sam". A REAL literal needs a digit on both sides of the decimal point. 4. is wrong and should be 4.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 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
'Y' "Yes" 4.0 TRUEFill in the Blanks
Spot the Error
Student with a class code? Join your class →