9618/31/O/N/25 question 6: worked solution (October/November 2025, paper 31)

Show as plain text

Cambridge A2 Level Computer Science 9618 · 15.2 Boolean Algebra and Logic Circuits Worked solution from the Hardware and Virtual Machines Paper 3 Advanced Theory booklet, Part 2 of 2. Q34 9618/31/O/N/25 original Q6 Structured · 9 marks Worked solution (a) Work out P, Q, R and S gate by gate for each row, then Z (the output of the last AND gate). A B C P Q R S Z 0 0 0 1 1 1 1 0 0 0 1 1 0 1 0 0 0 1 0 1 1 1 1 1 0 1 1 1 0 1 1 1 1 0 0 0 1 1 1 0 1 0 1 0 0 0 1 0 1 1 0 0 1 1 1 1 1 1 1 0 0 1 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] (b)(i) Put a 1 in the cell for each product: 011, 010, 101, 110 (A, B, C). Columns are BC in Gray code order (00, 01, 11, 10). A \ BC 00 01 11 10 0 0 0 1 1 1 0 1 0 1 Row A = 0 correct [1] Row A = 1 correct [1] (b)(ii) Loop the groups of 1s. Loop 1: the two 1s in row A = 0, columns BC = 11 and BC = 10 [1] Loop 2: the two 1s in column BC = 10 (both rows) [1] Also circle the lone 1 at A = 1, BC = 01 on its own: it has no neighbour to join, and it gives the third term in part (iii). (b)(iii) Loop 1 has A = 0 and B = 1. Loop 2 has B = 1 and C = 0. The single 1 is A = 1, B = 0, C = 1. NOT A . B + B . NOT C + A . NOT B . C One correct term with a + sign [1] All terms and operators correct and no other terms [1] KEY IDEA Work through the circuit one gate at a time; in the K-map, loop neighbouring 1s and leave a lone 1 as a full three-input term. TOTAL 9 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by Zafar Ali Khan (ZAK). Tap the picture to open it on YouTube.