Cambridge O Level Computer Science 2210 · 10.3 Logic circuits, truth tables and logic expressions

Q22 · 2210/23/O/N/24 Q8

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

Q222210/23/O/N/24original Q8Structured · 4 marks
Question 8 from 2210/23/O/N/24

Worked solution

The window opens (W = 1) only when T = 1 (too high), H = 0 (heater off) and A = 0 (air conditioning off). So W = T AND NOT H AND NOT A.

ATHNOT ANOT HW
000110
001100
010111
011100
100010
101000
110010
111000

Outputs for the first two rows correct [1]

Outputs for the third and fourth rows correct [1]

Outputs for the fifth and sixth rows correct [1]

Outputs for the last two rows correct [1]

Marks are given by how many of the 8 outputs are right: 8 correct = 4 marks, 6 or 7 = 3, 4 or 5 = 2, 2 or 3 = 1.

KEY IDEAWrite the rule as a logic expression first, using NOT where an input must be 0, then work out each row.
TOTAL 4 marks

Official mark scheme

Mark scheme for 2210/23/O/N/24 question 8
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.