← VCE Pseudocode

Arithmetic Operators in Pseudocode

The pseudocode operator that returns the remainder after integer division. Example: 10 MOD 3 gives 1 because 10 divided by 3 is 3 remainder 1

Understanding Arithmetic Operators in Pseudocode in VCE Pseudocode

What it does: 17 DIV 5 = 3 because 5 goes into 17 three times with remainder 2. DIV discards the remainder and returns only the whole number 3. Both + and - are standard arithmetic operators in pseudocode. They work in assignment expressions exactly as in mathematics. The asterisk * is the correct multiplication operator in pseudocode. The letter x is not a valid operator and would be interpreted as a variable name. The caret ^ is not a standard VCAA pseudocode operator. To find 20%, divide by 5 using the / operator: tax <- income / 5.

Common mistakes: length x width uses the letter x as a multiplication symbol, which is not valid in pseudocode. The correct operator for multiplication is the asterisk *. The line should read area <- length * width. Line 2 is wrong. The backslash \ is not a valid pseudocode operator. For division the correct operator is the forward slash /. The line should read average <- total / 3. Line 3 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 operator is used for multiplication in VCAA pseudocode?
* — for example: area <- length * widthx — for example: area <- length x width
Matches
area <- length x width
↓
Wrong — x is not a valid pseudocode operator. The multiplication operator is the asterisk *. The correct form is `area <- length * width`
Applying
Meanings
Term
MOD
Meaning
The pseudocode operator that returns the remainder after integer division. Example: 10 MOD 3 gives 1 because 10 divided by 3 is 3 remainder 1
Practice
Algorithm: compute bill
Testing
Gaps
total <- price quantity
Check Answer
Spots
2input length, width
3area <- length x width

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

The 'Rhinoceros' badge — Thick-Skinned Coder, 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 operator is used for multiplication in VCAA pseudocode?
A. * — for example: area <- length * width ✓
B. x — for example: area <- length x width
The asterisk * is the correct multiplication operator in pseudocode. The letter x is not a valid operator and would be interpreted as a variable name.
2. What does the MOD operator return in pseudocode?
A. The whole number result of division
B. The remainder after integer division ✓
MOD returns the remainder. For example: 10 MOD 3 gives 1 because 10 / 3 is 3 with remainder 1. DIV returns the whole number result.
3. What does total DIV 4 return when total is 10?
A. 2.5 — the exact decimal result
B. 2 — the whole number part of 10 / 4 ✓
DIV performs integer division and discards any remainder. 10 DIV 4 = 2 because 4 goes into 10 twice with a remainder of 2. The remainder is discarded.
4. Which correctly subtracts cost from revenue in pseudocode?
A. profit <- revenue - cost ✓
B. profit <- revenue -- cost
A single minus sign - is the subtraction operator in pseudocode. A double minus -- is not valid pseudocode syntax.
5. What does 15 MOD 4 evaluate to in pseudocode?
A. 3 — the remainder when 15 is divided by 4 ✓
B. 3.75 — the decimal result of 15 divided by 4
MOD returns only the remainder as an integer. 15 / 4 = 3 remainder 3, so 15 MOD 4 = 3. Decimal results belong to the / operator.

Match the Pairs

area <- length * width → Multiplies length by width using the * operator and stores the result in area
remainder <- total MOD 7 → Divides total by 7 and stores only the remainder in the variable remainder — for example if total is 22 the result is 1
DIV returns the whole number part of a division, discarding any remainder → quotient <- 17 DIV 5
The + operator adds two values and the - operator subtracts one value from another → total <- a + b profit <- revenue - cost
area <- length x width → Wrong — x is not a valid pseudocode operator. The multiplication operator is the asterisk *. The correct form is `area <- length * width`
result <- a ^ 2 → Wrong — the caret ^ is not a standard VCAA pseudocode operator. To square a value, multiply it by itself: `result <- a * a`

Key Term

MOD
The pseudocode operator that returns the remainder after integer division. Example: 10 MOD 3 gives 1 because 10 divided by 3 is 3 remainder 1

Fill in the Blanks

1. total <- price * quantity
Hint: Type the arithmetic operator used to multiply two values together
2. average <- (a + b) / 2
Hint: Type the arithmetic operator used to divide the sum by 2
3. remainder <- total MOD 7
Hint: Type the pseudocode operator that returns the remainder after dividing total by 7
4. quotient <- total DIV 4
Hint: Type the pseudocode operator that returns the whole number result of dividing total by 4
5. profit <- revenue - cost
Hint: Type the arithmetic operator used to subtract cost from revenue

Spot the Error

Question 1
A Algorithm: compute area
B input length, width
C area <- length x width
D print area
Line C — `length x width` uses the letter x as a multiplication symbol, which is not valid in pseudocode. The correct operator for multiplication is the asterisk *. The line should read `area <- length * width`. Line 2 is wrong.
Question 2
A Algorithm: find average
B input a, b, c
C total <- a + b + c
D average <- total \ 3
E print average
Line D — The backslash \ is not a valid pseudocode operator. For division the correct operator is the forward slash /. The line should read `average <- total / 3`. Line 3 is wrong.
Question 3
A Algorithm: get remainder
B input n
C remainder <- n MOD 5
D print remainder
Line A — The algorithm header is missing its colon. The correct form is `Algorithm: get remainder` with a colon after the keyword Algorithm. Line 0 is wrong.
Question 4
A Algorithm: integer divide
B input total
C result <- total DIV 4
D print results
Line D — `print results` references a variable called `results` but the variable assigned on line 2 is called `result`. Variable names must match exactly. The line should read `print result`. Line 3 is wrong.
Question 5
A Algorithm: calculate tax
B input income
C tax <- income * 0.2
D net <- income - tax
E print net
Line C — `income * 0.2` uses a decimal multiplier not typical in VCAA pseudocode which conventionally uses integer or variable operands. The more standard form expresses 20% as `tax <- income / 5`. Line 2 is wrong.

Student with a class code? Join your class →