Pick the data type
Level 2: Values. The syllabus names five types. Using REAL for a count, or STRING for TRUE/FALSE, is a common Paper 2 slip.
Cambridge types:
- INTEGER — whole numbers
- REAL — decimals
- CHAR — one character in single quotes
- STRING — text in double quotes
- BOOLEAN — TRUE or FALSE
- Previous: DECLARE a variable
- Next: INTEGER vs REAL
- IGCSE & O Level Paper 2 Path