Worked solution from the Hardware Paper 1 Theory Fundamentals booklet, Part 2 of 2.
Follow each wire from the inputs to the output, one gate at a time. X: NOT P and R go into an OR gate; its output and Q go into an AND gate.
Write: X = Q AND (NOT P OR R) [1]
Y: Q and R go into a NOR gate; its output and S go into an XOR gate.
Write: Y = S XOR (Q NOR R) [1]
Work out each gate for every row. The first gate is an XOR (A, B) followed by a NOT; the AND gate takes B and C; an OR gate joins the two.
| A | B | C | NOT (A XOR B) | B AND C | X |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 0 | 1 |
| 0 | 0 | 1 | 1 | 0 | 1 |
| 0 | 1 | 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 | 1 | 1 |
| 1 | 0 | 0 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 | 0 | 0 |
| 1 | 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 | 1 |
X column correct for the first four rows [1]
X column correct for the last four rows [1]
▶ Starts at Q1 (0:24)
Starts at Q1 (0:24) · 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.