Pseudocode layout: capital keywords and indentation
Write keywords like IF, THEN, ELSE and REPEAT in capitals, one step per line, and indent the steps inside each structure so ELSE lines up with its IF.
Understanding Pseudocode layout: capital keywords and indentation in ACARA Digital Technologies Years 7–8
What it does: Each step has its own line and the keywords SET, TO, INPUT and OUTPUT are capitals, which makes the algorithm easy to read and follow. The IF is inside the REPEAT so it is indented one level, and the OUTPUT is inside the IF so it is indented a further level. Pseudocode keywords such as IF and THEN are written in capital letters so they stand out from variable names. Indenting the steps inside a structure shows which steps belong to it. ELSE lines up with its IF so you can see the two belong together as one decision. The step being repeated is indented so it is clear that it sits inside the loop.
Common mistakes: Pseudocode keywords must be written in capitals. IF and THEN should be written as: IF age >= 13 THEN. Keywords must be all capitals, not just start with a capital letter. It should be: IF mark >= 50 THEN.
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 365–411) and word search (Modules 331–411).
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
pseudocode layoutFill in the Blanks
Spot the Error
Student with a class code? Join your class →