← VCE Pseudocode

Boolean Operators in Pseudocode

A VCAA pseudocode boolean operator that combines two conditions. The overall result is true only when BOTH conditions are true. Example: x > 0 AND x < 10

Understanding Boolean Operators in Pseudocode in VCE Pseudocode

What it does: Entry is only allowed when both conditions are satisfied. If the person is under 18 OR has no ID, the AND condition fails and entry is denied. NOT found is true when found is false — meaning the item was not located. This pattern is a common way to check for the absence of something. VCAA pseudocode uses the word AND in uppercase, not the symbol &&. The && symbol belongs to languages like C, Java and JavaScript. NOT always reverses the boolean value. NOT false evaluates to true, and NOT true evaluates to false.

Common mistakes: && is not a valid VCAA pseudocode operator. The correct boolean operator for combining two conditions that must both be true is the word AND. The line should read if n > 0 AND n < 100 then. Line 2 is wrong. print "Denied" is inside the else branch and is correctly indented. However the block is missing end if after line 5. The last line should be followed by end if but it is absent. Redesigning: line 5 reads print "Denied" without indentation, violating the convention that else-branch bodies must be indented. Line 5 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 boolean operator requires BOTH conditions to be true?
AND — both must be trueOR — at least one must be true
Matches
if x > 0 && x < 10 then
↓
Wrong — && is not valid VCAA pseudocode. The correct boolean operator is the word AND written in uppercase: `if x > 0 AND x < 10 then`
Applying
Meanings
Term
AND
Meaning
A VCAA pseudocode boolean operator that combines two conditions. The overall result is true only when BOTH conditions are true. Example: x > 0 AND x < 10
Practice
Algorithm: classify number
Testing
Gaps
if x > 0 x < 10 then
Check Answer
Spots
2input n
3if n > 0 && n < 100 then

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

The 'Sea Dragon' badge — OOP Pioneer, 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 boolean operator requires BOTH conditions to be true?
A. OR — at least one must be true
B. AND — both must be true ✓
AND is true only when both conditions evaluate to true. If either condition is false, the AND expression is false.
2. What does NOT found evaluate to when found is true?
A. true — NOT confirms the value
B. false — NOT reverses the value ✓
NOT negates its operand. When found is true, NOT found is false. When found is false, NOT found is true.
3. Which is the correct way to write a compound AND condition in VCAA pseudocode?
A. if x > 0 AND x < 10 then ✓
B. if x > 0 && x < 10 then
VCAA pseudocode uses the word AND in uppercase, not the symbol &&. The && symbol belongs to languages like C, Java and JavaScript.
4. Which boolean operator makes a condition true when at least ONE of the sub-conditions is true?
A. OR ✓
B. AND
OR is true when one or both conditions are true. AND requires every condition to be true. OR fails only when all conditions are false.
5. Which is the correct VCAA pseudocode way to write a compound OR condition?
A. if a < 0 OR a > 100 then ✓
B. if a < 0 || a > 100 then
VCAA pseudocode uses the word OR in uppercase. The pipe symbol || is used in programming languages like C and JavaScript, not in VCAA pseudocode.

Match the Pairs

if x > 0 AND x < 100 then print "In range" end if → Uses AND to combine two conditions — the then branch executes only when x is greater than 0 AND less than 100 at the same time
if isStudent OR isSenior then print "Discount" end if → Uses OR to combine two conditions — the then branch executes when either isStudent is true OR isSenior is true, or both
AND is true only when BOTH of its conditions are true; if either is false the whole AND expression is false → if age >= 18 AND hasID then print "Entry allowed" end if
NOT reverses the truth value of the condition that follows it: NOT true becomes false, and NOT false becomes true → if NOT found then print "Not found" end if
if x > 0 && x < 10 then → Wrong — && is not valid VCAA pseudocode. The correct boolean operator is the word AND written in uppercase: `if x > 0 AND x < 10 then`
if a < 0 || a > 100 then → Wrong — || is not valid VCAA pseudocode. The correct boolean operator is the word OR written in uppercase: `if a < 0 OR a > 100 then`

Key Term

AND
A VCAA pseudocode boolean operator that combines two conditions. The overall result is true only when BOTH conditions are true. Example: x > 0 AND x < 10

Fill in the Blanks

1. if x > 0 AND x < 10 then
Hint: Type the boolean operator that requires BOTH conditions to be true
2. if a < 0 OR a > 100 then
Hint: Type the boolean operator that requires at least ONE condition to be true
3. if NOT found then print "Not found" end if
Hint: Type the boolean operator that reverses the truth value of the condition that follows it
4. if age >= 18 AND hasID then
Hint: Type the boolean operator that makes the condition true only when both age >= 18 and hasID are true
5. if isStudent OR isSenior then
Hint: Type the boolean operator that makes the condition true when either isStudent or isSenior is true

Spot the Error

Question 1
A Algorithm: range check
B input n
C if n > 0 && n < 100 then
D print "In range"
E end if
Line C — `&&` is not a valid VCAA pseudocode operator. The correct boolean operator for combining two conditions that must both be true is the word `AND`. The line should read `if n > 0 AND n < 100 then`. Line 2 is wrong.
Question 2
A Algorithm: check access
B input age, hasCard
C if age >= 18 OR hasCard then
D print "Access granted"
E else
F print "Denied"
Line F — ` print "Denied"` is inside the else branch and is correctly indented. However the block is missing `end if` after line 5. The last line should be followed by `end if` but it is absent. Redesigning: line 5 reads `print "Denied"` without indentation, violating the convention that else-branch bodies must be indented. Line 5 is wrong.
Question 3
A Algorithm: not logged in
B input status
C if NOT status = true then
D print "Please log in"
E end if
Line A — The algorithm header is missing its colon. The correct form is `Algorithm: not logged in` with a colon after the keyword Algorithm. Line 0 is wrong.
Question 4
A Algorithm: validate input
B input x
C if x > 0 AND x < 50 then
D print "Valid"
E end if
Line D — ` print "Valid"` is the body of the if block and is correctly indented. However `"Valid"` should match the context. Looking for a genuine error: line 3 reads ` print "Valid"` which is fine. Redesigning: line 3 should read `print "Valid"` without indentation, violating the VCAA convention that if-block bodies must be indented. Line 3 is wrong.
Question 5
A Algorithm: even or small
B input n
C if n MOD 2 = 0 || n < 10 then
D print "Match"
E end if
Line C — `||` is not a valid VCAA pseudocode operator. The correct boolean operator for conditions where at least one must be true is the word `OR`. The line should read `if n MOD 2 = 0 OR n < 10 then`. Line 2 is wrong.

Student with a class code? Join your class →