Cambridge 0478 pseudocode conventions
Cambridge pseudocode writes keywords like IF, FOR and WHILE in capitals and indents the lines inside each structure, so the code is easy to read.
Understanding Cambridge 0478 pseudocode conventions in IGCSE Computer Science Paper 2
What it does: The OUTPUT line is indented inside the FOR loop, showing it belongs to the loop body. Two separate assignments are written on two separate lines, one statement per line. Cambridge pseudocode writes keywords such as FOR, TO and NEXT in capital letters. Comments begin with // so they are not mistaken for instructions. Each statement goes on its own line, which keeps the algorithm clear and easy to trace. Keywords are always written in capitals, including closing keywords like ENDWHILE. Indentation is for readability. It shows which lines belong inside a loop or selection. INPUT is a keyword, so it is written in capital letters.
Common mistakes: NEXT is a keyword, so Cambridge pseudocode writes it in capital letters. The line should be 'NEXT Count'. The keyword WHILE is written in lowercase. Cambridge pseudocode keywords are in capital letters, so it should be 'WHILE Count < 3 DO'.
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 254–264) and word search (Modules 254–274).
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
UPPERCASE keywordsFill in the Blanks
Spot the Error
Student with a class code? Join your class →