Cambridge AS Level Computer Science 9618 · 3.2 Logic Gates and Logic Circuits

Q53 · 9618/12/O/N/23 Q4

Worked solution from the Hardware Paper 1 Theory Fundamentals booklet, Part 2 of 2.

Q539618/12/O/N/23original Q4Structured · 5 marks
Question 4 from 9618/12/O/N/23

Worked solution

(a)

Read the circuit gate by gate. A and B go into a NAND gate. B and C go into an XOR gate, and its output goes through a NOT gate. The NAND output and the NOT output go into a final NAND gate.

First NAND gate written: A NAND B [1]

NOT of the XOR written: NOT (B XOR C) [1]

Final NAND joins them: X = (A NAND B) NAND (NOT (B XOR C)) [1]

(b)

Work out B AND (A NAND B) AND NOT C first, then XOR it with A.

ABCB AND (A NAND B) AND NOT CX
00000
00100
01011
01100
10001
10101
11001
11101

First four rows of X (0, 0, 1, 0) correct [1]

Last four rows of X (1, 1, 1, 1) correct [1]

KEY IDEAWrite each gate's output on the circuit, then join them into one expression; for truth tables, work out the inner brackets first.
TOTAL 5 marks

Official mark scheme

Mark scheme for 9618/12/O/N/23 question 4
VIDEO
▶ Starts at Q4 (43:49)

Starts at Q4 (43:49) · by Pseudocode Pro. 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.