Worked solution from the Hardware and Virtual Machines Paper 3 Advanced Theory booklet, Part 2 of 2.
Work out each gate one at a time (P, Q, R, S), then Z, for every row. P is NOT C, and Z is the final output.
| A | B | C | D | P | Q | R | S | Z |
|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 |
| 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 |
| 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 |
| 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
| 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 |
| 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
| 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 |
| 1 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 |
Working columns P, Q, R and S all correct [1]
Z correct for the first eight rows [1]
Z correct for the last eight rows [1]
Write a product for each row where Z = 1 (rows 0110, 1010, 1011, 1110).
Z = NOT A . B . C . NOT D + A . NOT B . C . NOT D + A . NOT B . C . D + A . B . C . NOT D [1]
The terms may be in any order.
The expression is NOT(A + B) . (NOT(A . B) + NOT(B . C)). Apply De Morgan's law to each bar, then tidy up, one law per line.
NOT(A + B) . (NOT(A . B) + NOT(B . C)) (NOT A . NOT B) . (NOT A + NOT B + NOT B + NOT C) (NOT A . NOT B) . (NOT A + NOT B + NOT C) (NOT A . NOT A + NOT A . NOT B + NOT A . NOT C) . (NOT B . NOT A + NOT B . NOT B + NOT B . NOT C) (NOT A + NOT A . NOT B + NOT A . NOT C) . (NOT A . NOT B + NOT B + NOT B . NOT C) (NOT A + NOT A . NOT C) . (NOT B + NOT B . NOT C) NOT A . NOT B
Line 2 uses De Morgan's laws on each bar [1]
Line 3 uses the idempotent law (NOT B + NOT B = NOT B), or line 4 the distributive law: one correct step [1]
Lines 5 and 6 use the idempotent and absorption laws: a second correct step [1]
Final answer NOT A . NOT B (also accepted: NOT(A + B)) [1]
▶ Topic lesson
A lesson on this topic · by Craig'n'Dave. 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.