STRING data type
The data type for text: zero or more characters written between double quotes, such as "This is a string". "" is the empty string and "123" is text, not a number.
Understanding STRING data type in IGCSE Computer Science Paper 2
What it does: The double quotes mark the start and end of the STRING value being assigned. The Cambridge data type for text is STRING. TEXT is not a Cambridge pseudocode data type. A STRING can hold zero or more characters, so "" is a valid STRING called the empty string. 4096 without quotes is an INTEGER, which doesn't match a STRING variable. "4096" is a STRING.
Common mistakes: A STRING literal must start and end with double quotes. The closing quote is missing after Hi. It should be OUTPUT "Hi ", Name. TEXT is not a Cambridge pseudocode data type. The data type for text is STRING, so the line should be DECLARE Pet : STRING.
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 317–326) and word search (Modules 317–336).
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 →