Worked solution from the Hardware and Virtual Machines Paper 3 Advanced Theory booklet, Part 2 of 2.
Work out P (NOT B), Q, R and S for each row, then Z = Q OR R OR S.
| A | B | C | P | Q | R | S | Z |
|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 |
| 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 |
| 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 |
| 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
| 1 | 0 | 1 | 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 |
| 1 | 1 | 1 | 0 | 1 | 0 | 1 | 1 |
Working columns P, Q, R and S all correct [1]
Z correct for the first four rows [1]
Z correct for the last four rows [1]
Write a product for each row where Z = 1 (rows 000, 001, 101, 110, 111). A 0 input gets NOT.
Z = NOT A . NOT B . NOT C + NOT A . NOT B . C + A . NOT B . C + A . B . NOT C + A . B . C
All five terms correct and no extra terms (any three correct terms scores [1]) [2]
Put a 1 in the cell for each term in the expression.
| A \ BC | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 0 | 1 | 1 | 0 | 0 |
| 1 | 1 | 1 | 1 | 1 |
All cells correct (one error scores 1) [2]
Loop 1: the whole bottom row (A = 1) of four 1s [1]
Loop 2: the 2 × 2 block with A = 0 or 1 and BC = 00 or 01 (four 1s) [1]
Bottom row: A = 1 stays the same, so the term is A. The 2 × 2 block: B = 0 stays the same, so the term is NOT B.
Write: Z = A + NOT B [1]
▶ Starts at Q6 (38:35)
Starts at Q6 (38:35) · 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.