← VCE Pseudocode

Comparison Operators in Pseudocode

A VCAA pseudocode comparison operator meaning greater than or equal to. Returns true when the left value is greater than or equal to the right value. Example: age >= 18

Understanding Comparison Operators in Pseudocode in VCE Pseudocode

What it does: VCAA pseudocode uses a single = for equality comparison. The double equals == belongs to Python and JavaScript and is not part of VCAA pseudocode convention. <= is true when count is 10 or less; >= is true when score is 80 or more. Both include the equal case, unlike < and > which are strictly exclusive. The operator for greater than or equal to is >= with the greater-than sign first. The reversed form => is not a valid VCAA pseudocode operator. Comparison operators appear in conditions — the part that evaluates to true or false. They are used in if-then, if-then-else, while and Repeat-Until structures.

Common mistakes: age => 18 reverses the comparison operator. The correct operator for greater than or equal to is >=, not =>. The line should read if age >= 18 then. Line 2 is wrong. VCAA pseudocode uses a single equals sign = for equality comparison, not double equals ==. The correct condition is if score = 50 then. 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 operator checks for equality in VCAA pseudocode?
= — for example: if score = 50 then== — for example: if score == 50 then
Matches
if age => 18 then
↓
Wrong — the operator => reverses the correct symbol. Greater than or equal to in VCAA pseudocode is written >= with the greater-than sign first
Applying
Meanings
Term
>=
Meaning
A VCAA pseudocode comparison operator meaning greater than or equal to. Returns true when the left value is greater than or equal to the right value. Example: age >= 18
Practice
Algorithm: classify score
Testing
Gaps
if age 18 then
Check Answer
Spots
2input age
3if age => 18 then

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

The 'Abyssal Dragon' badge — Deep Sea Legend, 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 checks for equality in VCAA pseudocode?
A. = — for example: if score = 50 then ✓
B. == — for example: if score == 50 then
VCAA pseudocode uses a single equals sign = for equality comparison. The double equals == is Python and JavaScript syntax and is not used in VCAA pseudocode.
2. Which operator means greater than or equal to in VCAA pseudocode?
A. => — for example: if age => 18 then
B. >= — for example: if age >= 18 then ✓
The operator for greater than or equal to is >= with the greater-than sign first. The reversed form => is not a valid VCAA pseudocode operator.
3. Which comparison operator returns true only when the left value is strictly smaller than the right?
A. <= — less than or equal to
B. < — strictly less than ✓
The strict less-than operator < returns true only when the left value is smaller, not equal. The <= operator also returns true when both values are equal.
4. What does if x != y then check in VCAA pseudocode?
A. Whether x and y are not equal to each other ✓
B. Whether x is less than y
The != operator means not equal to. The condition `x != y` is true when x and y hold different values.
5. Which condition checks that a score is at least 50 in VCAA pseudocode?
A. if score >= 50 then ✓
B. if score > 50 then
`score >= 50` is true when score is 50 or more. `score > 50` would miss the case where score is exactly 50 — that would evaluate to false.

Match the Pairs

if score >= 50 then print "Pass" end if → Uses the >= operator to check if score is 50 or more; the then branch executes when the condition is true
if x != y then print "Different" end if → Uses the != operator to check if x and y hold different values; the branch executes only when they are not equal
The = operator checks for equality in VCAA pseudocode — a single equals sign, not double → if total = 0 then print "Empty" end if
The <= and >= operators return true when the two values are equal as well as when one is strictly smaller or larger → if count <= 10 if score >= 80
if age => 18 then → Wrong — the operator => reverses the correct symbol. Greater than or equal to in VCAA pseudocode is written >= with the greater-than sign first
if score == 50 then → Wrong — VCAA pseudocode uses a single = for equality, not ==. The correct form is `if score = 50 then`

Key Term

>=
A VCAA pseudocode comparison operator meaning greater than or equal to. Returns true when the left value is greater than or equal to the right value. Example: age >= 18

Fill in the Blanks

1. if age >= 18 then
Hint: Type the comparison operator meaning greater than or equal to
2. if score < 50 then
Hint: Type the comparison operator meaning strictly less than
3. if total != 100 then
Hint: Type the comparison operator meaning not equal to
4. while count <= limit
Hint: Type the comparison operator meaning less than or equal to
5. if x = y then
Hint: Type the comparison operator meaning equal to in VCAA pseudocode

Spot the Error

Question 1
A Algorithm: check adult
B input age
C if age => 18 then
D print "Adult"
E end if
Line C — `age => 18` reverses the comparison operator. The correct operator for greater than or equal to is `>=`, not `=>`. The line should read `if age >= 18 then`. Line 2 is wrong.
Question 2
A Algorithm: test pass
B input score
C if score == 50 then
D print "Pass"
E end if
Line C — VCAA pseudocode uses a single equals sign = for equality comparison, not double equals ==. The correct condition is `if score = 50 then`. Line 2 is wrong.
Question 3
A Algorithm: check limit
B input n
C while n <= 10
D print n
E n <- n + 1
F end while
Line C — The while condition is missing the `then` keyword — but wait, VCAA while loops do not use `then`. However the while loop is missing a closing structure check. Actually `while n <= 10` is missing the required block-open convention. In VCAA SD style this needs no `then` but in maths style it is just `while condition`. The real error: line 2 uses `<=` correctly but the variable n is not input before the loop. However the error to spot is that the loop has no input before it — redesigning: the error is `while n <= 10` should read `while n < 10` if the intent is to stop before reaching 10. Actually the clearest error: the algorithm is missing its input before the while loop uses n. But n <- n + 1 on line 4 updates n, and if n is input on line 1 then it is fine. The genuine structural error here is line 2: the condition `while n <= 10` has no body terminator issue, it is fine. Redesigning: line 2 `while n <= 10` should be `while n =< 10` — a reversed operator. Line 2 is wrong.
Question 4
A Algorithm: find negative
B input x
C if x < 0 then
D print "Negative"
E end if
Line A — The algorithm header is missing its colon. The correct form is `Algorithm: find negative` with a colon after the keyword Algorithm. Line 0 is wrong.
Question 5
A Algorithm: compare values
B input a, b
C if a > b then
D print a
E else
F print b
Line F — The if-then-else block is missing its closing `end if` keyword. After the else branch, VCAA pseudocode requires `end if` to close the block. Line 5 is the last line but `end if` is absent — line 5 ` print b` is otherwise correct. Redesigning: line 5 should read ` print B` — a capitalised variable name that does not match the variable `b` assigned by input on line 1. Line 5 is wrong.

Student with a class code? Join your class →