Cambridge O Level Computer Science 2210 · 8.1 Programming concepts

Q3 · 2210/22/M/J/20 Q2

Worked solution from the Programming Paper 2 Algorithms, Programming and Logic booklet, Part 1 of 3.

Q32210/22/M/J/20original Q2Structured · 5 marks
Question 2 from 2210/22/M/J/20

Worked solution

(a)

Match each description to a data type from the list.

A number with a fractional part: Real [1]

A whole number: Integer [1]

A single number, symbol or letter: Char (String is also accepted) [1]

A sequence of characters: String [1]

Two values, True or False: Boolean [1]

KEY IDEAReal has a fractional part, integer is whole, char is one character, string is many, Boolean is True or False.
TOTAL 5 marks

Official mark scheme

Mark scheme for 2210/22/M/J/20 question 2
VIDEO
▶ Whole paper

Video solution of the whole paper · by Zafar Ali Khan (ZAK). 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.