← VCE Pseudocode

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.

Class: _____________________  ·  Name: _____________________  ·  Date: _________

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.

Learning
Duo
Which is the correct VCAA way to close an if block?
end ifendif
Matches
if age > 18 then print "ok" endif
↓
Wrong — VCAA pseudocode writes this as two words: `end if`. The closing keyword always separates end from the block name with a space
Applying
Meanings
Term
end if
Meaning
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
Practice
Algorithm: check temperature
Testing
Gaps
if
Check Answer
Spots
1if score > 50 then
2print score

Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.

The 'Thorny Devil' badge — Detail Master, one of Cloodit's 106 collectible badges
Students earn collectable badges

Over 100 of them, across seven natural biomes.

Study Buddy
Students build a real study resource

Turns their work into revision material ready for Flash Cards and Exam study.

Diamond Dash — one of Cloodit's live, competitive Sprint games
Students lock in with Sprints

Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.

A Cloodit certificate of achievement, ready to personalise and print
Custom printable certificates

Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.

Quick Questions

1. Which is the correct VCAA way to close an if block?
A. end if ✓
B. endif
VCAA pseudocode always writes the closing keyword as two words: `end` followed by a space and then the matching block keyword.
2. How many statements should appear on one line in VCAA pseudocode?
A. One statement per line ✓
B. Multiple statements are fine
One statement per line is a core VCAA convention. It keeps pseudocode readable and unambiguous.
3. What does indentation show in VCAA pseudocode?
A. Nothing — it is just a style preference
B. That lines belong inside a nested block ✓
Indentation is a mandatory VCAA convention that visually shows which lines are inside a loop, if block or function body.
4. Which correctly closes a for loop in VCAA pseudocode?
A. end loop
B. end for ✓
Each block is closed with `end` followed by the same keyword that opened it. A for loop opens with `for`, so it closes with `end for`.
5. Does VCAA pseudocode use semicolons to end statements?
A. No — statements end at the end of the line ✓
B. Yes — semicolons are required
VCAA pseudocode does not use semicolons. A statement simply ends when the line ends.

Match the Pairs

end if → The closing keyword for an if block in VCAA pseudocode; end is always followed by a space and the keyword that opened the block
if temp > 30 then print "hot" else print "cold" end if → A snippet showing all three VCAA conventions: one statement per line, the body indented inside each block, and end if closing the construct
One statement per line is a core VCAA pseudocode writing convention → x <- 5 y <- x + 1 print y
Indentation shows which lines belong inside a nested block such as a loop or if statement → for i from 1 to 5 print i end for
if age > 18 then print "ok" endif → Wrong — VCAA pseudocode writes this as two words: `end if`. The closing keyword always separates end from the block name with a space
x <- 5; print x if x > 0 then print "ok" end if → Wrong — VCAA pseudocode requires one statement per line. Semicolons are not used. `x <- 5` and `print x` must each be on their own line

Key Term

end if
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

Fill in the Blanks

1. if score > 50 then print score end if
Hint: Type the keyword that begins every closing statement in VCAA pseudocode
2. while count < 10 print count end while
Hint: Type the keyword that matches the loop type being closed
3. for i from 1 to 5 print i end for
Hint: Type the keyword that identifies which kind of loop is being closed
4. if x > 5 then print x end if
Hint: Type the keyword that opens the body of an if block in VCAA pseudocode
5. if a > b then print a end if
Hint: Type the keyword that names the block being closed — it must match the keyword that opened this block

Spot the Error

Question 1
A if score > 50 then
B print score
C end if
Line B — 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.
Question 2
A x <- 5; print x
B if x > 0 then
C print "positive"
D end if
Line A — 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.
Question 3
A if age >= 18 then
B print "Adult"
C endif
Line C — The closing keyword must be written as two words: `end if`, not `endif`. VCAA pseudocode always separates end from the block keyword with a space. Line 2 is wrong.
Question 4
A if x > 5:
B print x
C end if
Line A — VCAA pseudocode uses `if condition then`, not a colon. Colons are Python syntax and have no place in VCAA pseudocode. The correct line is `if x > 5 then`. Line 0 is wrong.
Question 5
A while count < 10
B print count
C count <- count + 1
D endwhile
Line D — The closing keyword for a while loop must be written as two words: `end while`, not `endwhile`. VCAA pseudocode always separates end from the block keyword with a space. Line 3 is wrong.

Student with a class code? Join your class →