Text data: character and string
Text made of a sequence of characters (single letters, digits or symbols), written in quotes, like 'Sam' or '0412345678'. Phone numbers are strings.
Understanding Text data: character and string in VCE Data Analysis
What it does: Phone numbers are identifiers, not values you do sums with. Storing them as text in quotes keeps the leading 0. A character can be a letter, a digit or a symbol. The # is one symbol, so it is a single character. A string is a sequence of characters stored as text. 'Sam' has three characters, so it is a string. A lone S is just one character. Quotes show that the digits are stored as text. Without quotes, 2025 is a number. An integer would remove the leading 0 and give 800. A string keeps all four characters exactly as written.
Common mistakes: A phone number is a string, so it must be in quotes: phone = "0412345678". Without quotes it is treated as a number and the leading 0 is lost. The string is missing its closing quote. It should be mobile = "0412 345 678".
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 15–24) and word search (Modules 3–24).
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 →