Pseudocode Writing Conventions
A closing keyword in VCAA pseudocode that ends an if block; every nested construct uses end followed by its matching keyword: end if, end while, end for
Understanding Pseudocode Writing Conventions in VCE Pseudocode
What it does: Each assignment and print statement appears on its own line, following the one-statement-per-line convention. print i is indented to show it is inside the for loop body. end for is not indented because it closes the block at the outer level. VCAA pseudocode always writes the closing keyword as two words: end followed by a space and then the matching block keyword. VCAA pseudocode does not use semicolons. A statement simply ends when the line ends. This snippet demonstrates all three core writing conventions: one statement per line, indentation to show nesting, and end if as the required closing keyword.
Common mistakes: The body of an if block must be indented to show it is inside the block. Line 1 should be print score with leading spaces. Line 1 is wrong. VCAA pseudocode requires one statement per line. x <- 5 and print x must each appear on their own separate line. Semicolons are not used in VCAA pseudocode. Line 0 is wrong.
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 1–10) and word search (Modules 1–28).
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
end ifFill in the Blanks
Spot the Error
Student with a class code? Join your class →