Cambridge O Level Computer Science 2210 · 8.1 Programming concepts

Q11 · 2210/21/M/J/22 Q2

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

Q112210/21/M/J/22original Q2Structured · 4 marks
Question 2 from 2210/21/M/J/22

Worked solution

(a)

Tick one box in each row:

DescriptionBooleanCharIntegerRealString
a single character from the keyboard✓
multiple characters from the keyboard✓
only one of two possible values✓
only whole numbers✓
any number✓

All five rows correct [4]

Four correct rows score 3 marks, three correct rows 2 marks and two correct rows 1 mark.

KEY IDEAMatch each description to its data type: one character is char, text is string, true or false is Boolean, whole is integer and any number is real.
TOTAL 4 marks

Official mark scheme

Mark scheme for 2210/21/M/J/22 question 2
VIDEO
▶ 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.