Cambridge pseudocode: keywords in capitals and indentation
Cambridge pseudocode writes keywords like INPUT, OUTPUT and IF in capital letters, puts one statement on each line, and indents the statements inside IF and loops.
Understanding Cambridge pseudocode: keywords in capitals and indentation in IGCSE Computer Science Paper 2
What it does: The keyword OUTPUT is in capitals, which is the Cambridge style for displaying a message. The OUTPUT line sits inside the FOR loop, so it is indented and has its own line. Cambridge pseudocode writes keywords such as INPUT in capital letters, so INPUT Age is correct. Statements inside an IF are indented so the structure is easy to see. The ENDIF lines up with the IF. Cambridge pseudocode puts each statement on its own line. This makes algorithms easier to read and check. Indentation shows which statements are inside a construct, so the algorithm is easier to read.
Common mistakes: Cambridge pseudocode keywords must be written in capital letters. 'input' should be INPUT. The keyword IF must be written in capitals. 'if' should be IF.
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 123–134) and word search (Modules 123–145).
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
KEYWORDS IN CAPITALSFill in the Blanks
Spot the Error
Student with a class code? Join your class →