9618/31/O/N/23 question 6: worked solution (October/November 2023, paper 31)
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. Q23 9618/31/O/N/23 original Q6 Structured · 6 marks Worked solution (a) The three inputs A, B and C go into one NAND gate, giving P. P is 0 only when A, B and C are all 1. Then Q = P AND D, and Z = P XOR Q. A B C D P Q Z 0 0 0 0 1 0 1 0 0 0 1 1 1 0 0 0 1 0 1 0 1 0 0 1 1 1 1 0 0 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 1 0 1 0 1 0 1 1 1 1 1 0 1 0 0 0 1 0 1 1 0 0 1 1 1 0 1 0 1 0 1 0 1 1 0 1 1 1 1 0 1 1 0 0 1 0 1 1 1 0 1 1 1 0 1 1 1 0 0 0 0 1 1 1 1 0 0 0 Z correct for rows 0000 to 0100 [1] Z correct for rows 0101 to 1001 [1] Z correct for rows 1010 to 1111 [1] (b) Take NOT A . NOT D out of every term, then use B and C in all four combinations. Y = NOT A . NOT D . (NOT B . NOT C + NOT B . C + B . NOT C + B . C) [1] = NOT A . NOT D . (NOT B . (NOT C + C) + B . (NOT C + C)) = NOT A . NOT D . (NOT B . 1 + B . 1) using NOT C + C = 1 [1] = NOT A . NOT D . (NOT B + B) = NOT A . NOT D . 1 Write: Y = NOT A . NOT D [1] KEY IDEA Factor out what the terms share, then use the rule X + NOT X = 1 to remove inputs that do not matter. TOTAL 6 marks Official mark scheme VIDEO ▶ Topic lesson A lesson on this topic · by Craig'n'Dave. Tap the picture to open it on YouTube.