← VCE Pseudocode

print keyword

A VCAA pseudocode keyword that outputs a value, variable or expression as a result. Example: print area displays the current value stored in the variable area

Understanding print keyword in VCE Pseudocode

What it does: print appears on the last line, after input collects the values and <- computes the area. This ordering — input, process, output — is the standard VCAA pseudocode structure. print can output any value, variable or expression. print total / count evaluates the expression and outputs the result directly. There is no limit on the number of print statements. For example, an if-then-else block may have a print in each branch to output different results.

Common mistakes: display n is not valid VCAA pseudocode. The correct keyword for outputting a value is print. The line should read print n. Line 2 is wrong. print a + b <- total incorrectly mixes print with an assignment. print only outputs a value — it cannot assign. The assignment total <- a + b and the output print total must be on separate lines. Line 2 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 maths pseudocode statement to output a result?
print areadisplay area
Matches
display answer
↓
Wrong — `display` is not a VCAA pseudocode keyword. The correct output keyword is `print`. The line should read `print answer`
Applying
Meanings
Term
print
Meaning
A VCAA pseudocode keyword that outputs a value, variable or expression as a result. Example: print area displays the current value stored in the variable area
Practice
Algorithm: calculate rectangle area
Testing
Gaps
area
Check Answer
Spots
2input n
3display n

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

The 'Nebula Cat' badge — Orbit Debugger, 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 maths pseudocode statement to output a result?
A. print area ✓
B. display area
The correct VCAA maths pseudocode keyword for output is `print`. The word `display` is not a VCAA pseudocode keyword.
2. Where in a VCAA pseudocode algorithm should print statements appear?
A. Before input — to show what the user should enter
B. After processing — to display the final result ✓
print outputs results, so it appears after all input and processing has been completed. Printing before input or processing makes no sense because the values do not exist yet.
3. Which style of pseudocode uses Print with a capital P?
A. VCE Software Development Begin...End pseudocode ✓
B. VCE Maths pseudocode
Capital-P `Print` is the convention used in VCE Software Development exam pseudocode with Begin...End structure. VCE Maths pseudocode uses lowercase `print`.
4. Can print output a computed expression directly?
A. No — print can only output stored variables
B. Yes — for example: print total / count ✓
print can output any value, variable or expression. `print total / count` evaluates the expression and outputs the result directly.
5. Which correctly outputs a result in VCAA maths pseudocode?
A. print result ✓
B. PRINT result
VCAA maths pseudocode uses lowercase `print`. Writing PRINT in all capitals does not follow the VCAA convention.

Match the Pairs

print area → Outputs the current value stored in the variable area to display it as the result of the algorithm
print total / count → Evaluates the expression total divided by count and outputs the computed result directly without storing it in a variable
print outputs the result after all input and processing has been completed → Algorithm: find area input l, w area <- l * w print area
Capital-P Print is used in Software Development Begin...End pseudocode, not in VCAA maths pseudocode → Begin result <- a + b Print result End
display answer → Wrong — `display` is not a VCAA pseudocode keyword. The correct output keyword is `print`. The line should read `print answer`
print result input n result <- n * 2 → Wrong — print must come after input and processing. Printing result before n has been entered and result has been calculated produces no meaningful output

Key Term

print
A VCAA pseudocode keyword that outputs a value, variable or expression as a result. Example: print area displays the current value stored in the variable area

Fill in the Blanks

1. print area
Hint: Type the VCAA pseudocode keyword that outputs the value of a variable to display a result
2. Algorithm: show total input a, b total <- a + b print total
Hint: Type the output keyword that displays the computed total to the user
3. input x result <- x * 2 print result
Hint: Type the keyword that outputs the value stored in result
4. average <- total / count print average
Hint: Type the keyword used to display the final computed value of average
5. Begin result <- a + b Print result End
Hint: Type the output keyword used in Software Development Begin...End style pseudocode

Spot the Error

Question 1
A Algorithm: show value
B input n
C display n
Line C — `display n` is not valid VCAA pseudocode. The correct keyword for outputting a value is `print`. The line should read `print n`. Line 2 is wrong.
Question 2
A Algorithm: compute sum
B input a, b
C print a + b <- total
D print total
Line C — `print a + b <- total` incorrectly mixes print with an assignment. print only outputs a value — it cannot assign. The assignment `total <- a + b` and the output `print total` must be on separate lines. Line 2 is wrong.
Question 3
A Algorithm: output result
B print result
C input n
D result <- n * 2
Line B — `print result` appears before result has been given a value. print must come after input and processing, not before them. Line 1 is wrong.
Question 4
A Algorithm: show square
B input n
C square <- n * n
D PRINT square
Line D — `PRINT square` uses all capitals, which is not standard VCAA maths pseudocode. The correct form is `print square` in lowercase. Capital-P `Print` is used in SD Begin...End style, not PRINT in all capitals. Line 3 is wrong.
Question 5
A Algorithm: average two
B input x, y
C average <- (x + y) / 2
D print average
E input z
Line E — `input z` appears after `print average`, which is out of order. All input statements should appear before processing and output. An input after the final print statement has no purpose in this algorithm. Line 4 is wrong.

Student with a class code? Join your class →