Worked solution from the Programming Paper 2 Algorithms, Programming and Logic booklet, Part 1 of 3.
Whole number, so the type is integer.
Data type name: Integer [1]
Data type description: a whole number (no decimal part) [1]
It is letters and digits together, so it is text.
Data type name: String [1]
Data type description: a group of characters (text) [1]
It has a decimal part.
Data type name: Real [1]
Data type description: a number that can have a fraction (decimal part) [1]
▶ Topic lesson
A lesson on this topic · by Mr Bulmer's Learning Zone. Tap the picture to open it on YouTube.
Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.