The data type decides what you can do
The kind of value something is. It decides what you can do with it: calculate with numbers, join text together, or test true and false values.
Understanding The data type decides what you can do in ACARA Digital Technologies Years 5–6
What it does: Adding is an operation for numbers. 10 + 5 gives the number 15. Testing a value gives true or false. 9 > 4 is true, and it is a true/false value. Numbers can be calculated with. Multiplying two names makes no sense because text is not a number. Text (strings) can be joined together. You cannot divide one word by another. True/false values are tested to decide what happens next. A name is text, so you join it rather than test it.
Common mistakes: The quote marks make "12" text, and text cannot be added to the number 8. It should be score = 12 so it stays a number. Here last is a number, so it cannot be joined to the other text values. A surname is text, so it should be last = "Chen".
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 85–104) 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.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
data typeFill in the Blanks
Spot the Error
Student with a class code? Join your class →