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

Q19 · 2210/21/M/J/24 Q8

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

Q192210/21/M/J/24original Q8Structured · 9 marks
Question 8 from 2210/21/M/J/24

Worked solution

(a)

Z = (R OR NOT T) XOR (NOT S AND T). Draw one gate for each operator, working from the inside out.

NOT gate with input T [1]

OR gate with inputs R and the output of NOT T [1]

NOT gate with input S [1]

AND gate with inputs the output of NOT S and T [1]

XOR gate with the output of the OR gate and the output of the AND gate as its inputs; its output is Z [1]

(b)

Work out R OR NOT T and NOT S AND T, then combine them with XOR.

RSTR OR NOT TNOT S AND TZ
000101
001011
010101
011000
100101
101110
110101
111101

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 IDEABreak the expression into small gates, draw each one, then join the two brackets with the final gate.
TOTAL 9 marks

Official mark scheme

Mark scheme for 2210/21/M/J/24 question 8
VIDEO
▶ Whole paper

Video solution of the whole paper · by ZAINEMATICS. 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.