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

Q23 · 2210/21/M/J/25 Q7

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

Q232210/21/M/J/25original Q7Structured · 8 marks
Question 7 from 2210/21/M/J/25

Worked solution

(a)

X = (A AND B) XOR (B OR NOT C). Draw one gate for each operator, working from the inside out.

AND gate with inputs A and B [1]

NOT gate with input C [1]

OR gate with inputs B and the output of NOT C [1]

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

(b)

Work out A AND B and B OR NOT C, then combine them with XOR.

ABCA AND BB OR NOT CX
000011
001000
010011
011011
100011
101000
110110
111110

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 IDEADraw one gate per operator, and XOR is 1 only when its two inputs are different.
TOTAL 8 marks

Official mark scheme

Mark scheme for 2210/21/M/J/25 question 7
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.