Pick the data type

Complete the previous lesson to unlock this one.

Back to the path

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