Basic data types in pseudocode
The five basic pseudocode data types: whole numbers, decimals, a single character, text of any length, and TRUE or FALSE. A phone number should be a STRING.
Understanding Basic data types in pseudocode in IGCSE Computer Science Paper 2
What it does: Phone numbers are identifiers, not quantities. STRING keeps the leading 0 and any + or spaces. REAL stores numbers with a fractional part. INTEGER would lose the pence. CHAR holds exactly one character. It is written in single quotes in pseudocode. BOOLEAN has only two values: TRUE and FALSE. Do not store them as text. This is the mistake because a CHAR variable cannot store text longer than one character. STRING is the type for text of any length.
Common mistakes: Age is an INTEGER, so it can only hold whole numbers. 15.5 has a fractional part. Use a whole number such as 15, or declare Age as REAL. Price is a REAL, so it needs a number. Quotes make "4.99" a STRING. It should be Price ← 4.99.
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 136–145) and word search (Modules 123–145).
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 →