BOOLEAN data type
A data type with only two possible values, TRUE or FALSE, written without quotes. Used for yes/no information, e.g. DECLARE GameOver : BOOLEAN
Understanding BOOLEAN data type in IGCSE Computer Science Paper 2
What it does: Yes/no information is stored in a BOOLEAN variable, which can only be TRUE (yes) or FALSE (no). Writing FALSE with no quotes assigns the BOOLEAN value. Quotes would make it a STRING instead. BOOLEAN is the Cambridge pseudocode data type for yes/no information. YESNO is not a data type.
Common mistakes: FALSE is a keyword, not a string. With quotes it becomes a STRING, which cannot be stored in a BOOLEAN. It should be GameOver ← FALSE. A BOOLEAN variable can only hold TRUE or FALSE. The number 1 is an INTEGER, so it must be Passed ← TRUE.
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 327–336) 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
BOOLEANFill in the Blanks
Spot the Error
Student with a class code? Join your class →