Text (strings) as a data type
A string is text: a row of characters such as letters, digits, symbols and spaces, written inside quote marks like "cat". Even "5" is a string.
Understanding Text (strings) as a data type in ACARA Digital Technologies Years 5–6
What it does: The quote marks make 5 a string, so the computer treats it as a character, like a letter. The letter a, the space and the letter b are three characters. A space is a character too. Spaces count as characters. h, i, space, m, u, m makes 6. Strings are rows of characters. Characters can be letters, digits, symbols or spaces, like "Room 4!". A is a letter and 1 is a digit. Both are characters, so the string has 2.
Common mistakes: Pieces of text are joined with +. The + is missing before pet. It should be print(name + " has a " + pet). A string needs a quote mark at both ends. The closing quote is missing. It should be phrase = "hi there".
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.
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
stringFill in the Blanks
Spot the Error
Student with a class code? Join your class →