9618/32/M/J/24 question 6: worked solution (May/June 2024, paper 32)
Show as plain textHide 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. Q26 9618/32/M/J/24 original Q6 Structured · 10 marks Worked solution (a) P, Q and R are NOT A, NOT B and NOT C. S is the OR gate output and T is the AND gate output. Then Z = S XOR T. A B C P Q R S T Z 0 0 0 1 1 1 1 1 0 0 0 1 1 1 0 1 0 1 0 1 0 1 0 1 1 0 1 0 1 1 1 0 0 1 0 1 1 0 0 0 1 1 0 0 0 1 0 1 0 1 0 1 0 1 1 1 0 0 0 1 1 0 1 1 1 1 0 0 0 1 0 1 Working columns P, Q, R, S and T all correct [1] Z correct for the first four rows [1] Z correct for the last four rows [1] (b) Write a product for each row where Z = 1 (rows 001, 010, 011, 101, 110, 111). A 0 input gets NOT. Z = NOT A . NOT B . C + NOT A . B . NOT C + NOT A . B . C + A . NOT B . C + A . B . NOT C + A . B . C All six terms correct and no others (any three correct terms scores [1] ) [2] (c)(i) Put a 1 in the cell for each term in the expression (the cells in the BC = 01 column are 0). A \ BC 00 01 11 10 0 1 0 1 1 1 1 0 1 1 All cells correct (one error scores 1) [2] (c)(ii) Loop 1: the 2 × 2 block in columns BC = 11 and 10 (four 1s) [1] Loop 2: the 2 × 2 block in columns BC = 00 and 10 (four 1s, wrapping round the edge of the map) [1] (c)(iii) First loop: B = 1 stays the same, so the term is B. Second loop: C = 0 stays the same, so the term is NOT C. Write: Z = B + NOT C [1] KEY IDEA Loops on a K-map may wrap round the edges, and each loop keeps only the inputs that stay the same inside it. TOTAL 10 marks Official mark scheme VIDEO ▶ Starts at Q6 (37:50) Starts at Q6 (37:50) · by Pseudocode Pro. Tap the picture to open it on YouTube.