← ACARA Digital Technologies Years 5–6

True or false values

A data type with only two possible values: true or false. It stores the answer to a yes/no question, like 'is the light on?', just like on and off in binary.

Understanding True or false values in ACARA Digital Technologies Years 5–6

What it does: true and false are the only two Boolean values, just as a binary switch is only on or off. On means yes, so the answer to 'Is the light on?' is true. The door is not open, so the yes/no answer is no, which is false. The Boolean value false means no, so this variable says it is not raining. Booleans have only two possible values, so 'maybe' does not match the broken code's data type. Text "true" is a string. A real Boolean value true has no quote marks.

Common mistakes: A Boolean can only be True or False, and Falce is a typo. Line 2 should be door_open = False. A Boolean can only be True or False. Yes is not a Boolean value, so line 3 should be has_pet = True.

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 73–84) and word search (Modules 73–104).

Take this worksheet further — free with Cloodit

Each concept is reinforced from every angle — learned, then applied, then tested.

Learning
Duo
Which value is a true/false (Boolean) value?
truemaybe
Matches
lightOn = maybe
↓
A Boolean can only be true or false. 'maybe' is a third value, so it is not allowed. Use true or false.
Applying
Meanings
Term
Boolean
Meaning
A data type with only two possible values: true or false. It stores the answer to a yes/no question, like 'is the light on?', just like on and off in binary.
Practice
is_light_on = True
Testing
Gaps
light =
Check Answer
Spots
1light_on = True
2door_open = Falce

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

The 'Cosmic Dragon' badge — Orbit Master, 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 value is a true/false (Boolean) value?
A. maybe
B. true ✓
A Boolean can only be true or false. There is no 'maybe' value.
2. Which question can be answered with a Boolean?
A. Is the light on? ✓
B. What is your favourite colour?
A Boolean stores the answer to a yes/no question. 'Is the light on?' is yes (true) or no (false).
3. How many different values can a Boolean have?
A. As many as you like
B. Two: true and false ✓
A Boolean has only two possible values, true or false.
4. A light switch is on. Which Boolean value shows this for 'Is the light on?'
A. true ✓
B. false
On means yes, so the answer to 'Is the light on?' is true.
5. A Boolean is most like which pair of binary ideas?
A. On and off ✓
B. Red, green and blue
Like binary, a Boolean has just two states. True is like on and false is like off.

Match the Pairs

lightOn = true → Stores the answer yes to the question 'is the light on?'
isRaining = false → Stores the answer no to the question 'is it raining?'
A Boolean can only ever be one of two values, like on and off in binary → true or false
A Boolean stores the answer to a yes/no question → doorOpen = true
lightOn = maybe → A Boolean can only be true or false. 'maybe' is a third value, so it is not allowed. Use true or false.
isSunny = "true" → The quote marks make it text, not a Boolean. Write true without quotes.

Key Term

Boolean
A data type with only two possible values: true or false. It stores the answer to a yes/no question, like 'is the light on?', just like on and off in binary.

Fill in the Blanks

1. light = True
Hint: Type the Boolean value that answers yes to the question 'is the light on?'
2. raining = False
Hint: Type the Boolean value that answers no to the question 'is it raining?'
3. bigger = 5 > 3
Hint: Type the comparison operator that checks whether the first number is greater than the second. The result is true or false.
4. light = True print(light)
Hint: Type the name of the variable that stores the yes/no answer.
5. same = 7 == 7
Hint: Type the operator that checks whether two values are equal. The result is a true or false value.

Spot the Error

Question 1
A light_on = True
B door_open = Falce
C print(light_on)
Line B — A Boolean can only be True or False, and Falce is a typo. Line 2 should be door_open = False.
Question 2
A is_raining = False
B print(is_raining)
C has_pet = Yes
Line C — A Boolean can only be True or False. Yes is not a Boolean value, so line 3 should be has_pet = True.
Question 3
A switch_on = True
B if switch_on
C print("Light is on")
Line B — An if line needs a colon at the end. Line 2 should be if switch_on:
Question 4
A is_open = True
B is_full = False
C print(is_open)
D print(is full)
Line D — A variable name cannot have a space in it. The name is is_full with an underscore, so line 4 should be print(is_full).
Question 5
A is_day = True
B is_night = not is_day
C print(is_day)
D print(is_nigth)
Line D — The variable name is misspelled. The Boolean was made as is_night, so line 4 should be print(is_night).

Student with a class code? Join your class →