Data type keywords: INTEGER, REAL, CHAR, STRING, BOOLEAN
The five data types, in order: whole number, number with a fractional part, one character, zero or more characters, TRUE or FALSE. A phone number is a STRING.
Understanding Data type keywords: INTEGER, REAL, CHAR, STRING, BOOLEAN in IGCSE Computer Science Paper 2
What it does: Phone numbers and postcodes are identifiers, not quantities, so they are STRING values. An INTEGER would drop a leading 0. REAL holds numbers with a fractional part. INTEGER can only hold whole numbers, so it cannot store 3.75. CHAR holds a single character. A STRING holds zero or more characters, so it is used for longer text. BOOLEAN holds only TRUE or FALSE. It is the right type for yes/no values. A type check confirms the input is the expected data type. A whole number age is an INTEGER, so a value like 14.5 would fail.
Common mistakes: Age is an INTEGER, so it can only hold a whole number. 15.5 has a fractional part. It should be a whole number such as 15, or Age should be declared as REAL. The Cambridge keyword for a single character is CHAR, not CHARACTER. It should be DECLARE Initial : CHAR.
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 17–26) and word search (Modules 1–26).
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
INTEGER, REAL, CHAR, STRING, BOOLEANFill in the Blanks
Spot the Error
Student with a class code? Join your class →