← VCE Pseudocode

Variable Assignment: x <- value

The assignment operator in VCAA pseudocode. It stores a value in a named variable: x <- 5 places the value 5 into the variable x

Understanding Variable Assignment: x <- value in VCE Pseudocode

What it does: In every assignment, total appears on the left of <-. The right side holds the value or expression being assigned into total. Each <- statement updates score to a new value. The variable stores whatever was last assigned to it, and can be reassigned as many times as needed. VCAA pseudocode uses the left-arrow operator <- for assignment. The equals sign = is used as a comparison operator, not for assignment.

Common mistakes: The variable name must appear on the left of <-, not the value. The correct form is x <- 5. You assign a value TO a variable, not the other way around. Line 1 is wrong. VCAA pseudocode uses <- for assignment, not =. The correct statement is count <- count + 1. The equals sign is a comparison operator, not an assignment operator in VCAA pseudocode. 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 pseudocode assignment statement?
x <- 5x = 5
Matches
5 <- x
↓
Wrong — the variable must be on the LEFT of <-, not the right. The correct form is x <- 5
Applying
Meanings
Term
<-
Meaning
The assignment operator in VCAA pseudocode. It stores a value in a named variable: x <- 5 places the value 5 into the variable x
Practice
Algorithm: calculate total price
Testing
Gaps
x 5
Check Answer
Spots
1Algorithm: set a value
25 <- x

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

The 'Hyena' badge — Savannah 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 pseudocode assignment statement?
A. x = 5
B. x <- 5 ✓
VCAA pseudocode uses the left-arrow operator <- for assignment. The equals sign = is used as a comparison operator, not for assignment.
2. In VCAA pseudocode, which side of <- does the variable name go on?
A. Left side: x <- 5 ✓
B. Right side: 5 <- x
The variable that receives the value always appears on the left of <-. You assign a value TO a variable, so the variable is on the left and the value on the right.
3. What does total <- total + 1 do in VCAA pseudocode?
A. Increases total by 1 and stores the result back in total ✓
B. Compares total to total + 1
The right side of <- is evaluated first, then the result is stored in the variable on the left. So total + 1 is calculated and the new value is stored back into total.
4. Which statement correctly initialises a counter to zero in VCAA pseudocode?
A. count <- 0 ✓
B. count = 0
VCAA pseudocode always uses <- for assignment. `count = 0` uses the equals sign which is not the assignment operator in VCAA pseudocode.
5. Can a variable appear on both the left and right side of <- in the same statement?
A. No — the variable can only appear once
B. Yes — for example score <- score + points ✓
A variable can appear on both sides. The right side is evaluated using the variable's current value first, then the result is stored back into the variable on the left.

Match the Pairs

x <- 5 → Assigns the value 5 to the variable x using the VCAA pseudocode left-arrow assignment operator
count <- count + 1 → Increases count by 1 — the right side is evaluated using count's current value, then the result is stored back into count
The variable name must appear on the LEFT side of the <- operator → total <- 0 total <- total + price print total
A variable stores a value that can be updated at any point using the <- operator → score <- 0 score <- score + 10 score <- score + 5
5 <- x → Wrong — the variable must be on the LEFT of <-, not the right. The correct form is x <- 5
total = total + 1 → Wrong — VCAA pseudocode uses <- for assignment, not =. The correct statement is total <- total + 1

Key Term

<-
The assignment operator in VCAA pseudocode. It stores a value in a named variable: x <- 5 places the value 5 into the variable x

Fill in the Blanks

1. x <- 5
Hint: Type the VCAA pseudocode assignment operator that stores a value into a variable
2. total <- 0
Hint: Type the assignment operator used to initialise a variable in VCAA pseudocode
3. count <- count + 1
Hint: Type the variable name that appears on the left side of <- and is also used on the right to update itself
4. score <- score + points
Hint: Type the variable name whose value is added to score each time an update is made
5. result <- price * quantity
Hint: Type the variable name that will store the product of price and quantity

Spot the Error

Question 1
A Algorithm: set a value
B 5 <- x
C print x
Line B — The variable name must appear on the left of <-, not the value. The correct form is `x <- 5`. You assign a value TO a variable, not the other way around. Line 1 is wrong.
Question 2
A Algorithm: update counter
B count <- 0
C count = count + 1
D print count
Line C — VCAA pseudocode uses <- for assignment, not =. The correct statement is `count <- count + 1`. The equals sign is a comparison operator, not an assignment operator in VCAA pseudocode. Line 2 is wrong.
Question 3
A Algorithm: store input
B input price
C price < 0
D print price
Line C — `price < 0` is a comparison, not an assignment. To assign 0 to price the correct statement is `price <- 0`. The <- operator is required for assignment. Line 2 is wrong.
Question 4
A algorithm: running total
B total <- 0
C total <- total + 10
D print total
Line A — In VCAA pseudocode the keyword Algorithm has a capital A. Writing `algorithm` in lowercase is incorrect — the header must read `Algorithm: running total`. Line 0 is wrong.
Question 5
A input base, height
B area <- base * height
C area <- area / 2
D print area
Line A — The algorithm is missing its Algorithm header. The first line must be the Algorithm declaration before any input or assignment statements. The input statement cannot appear on line 0 without a preceding Algorithm header. Line 0 is wrong.

Student with a class code? Join your class →