Cambridge O Level Computer Science 2210 · 8.1 Programming concepts

Q31 · 2210/22/M/J/24 Q5

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

Q312210/22/M/J/24original Q5Structured · 6 marks
Question 5 from 2210/22/M/J/24

Worked solution

Arithmetic, Boolean and logical

Write what each type is used for, then one pseudocode example.

Arithmetic: used in calculations [1]

Example: A ← B + C [1]

Boolean: used with values that are TRUE or FALSE [1]

Example: IF B AND C [1]

Logical: used to compare values in conditions or selection statements [1]

Example: IF B > C [1]

KEY IDEAArithmetic calculates, logical compares, Boolean combines true or false values.
TOTAL 6 marks

Official mark scheme

Mark scheme for 2210/22/M/J/24 question 5
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.