9618/32/O/N/24 question 6: worked solution (October/November 2024, paper 32)

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. Q29 9618/32/O/N/24 original Q6 Structured · 9 marks Worked solution (a) Pick every row where X = 1 and write a product for each (NOT for inputs that are 0). Rows: 0001, 0010, 0101, 0110, 1001, 1010, 1101, 1110 X = NOT A . NOT B . NOT C . D + NOT A . NOT B . C . NOT D + NOT A . B . NOT C . D + NOT A . B . C . NOT D + A . NOT B . NOT C . D + A . NOT B . C . NOT D + A . B . NOT C . D + A . B . C . NOT D Three or four correct products [1] Five, six or seven correct products [1] All eight correct products and no extra products [1] (b) Fill the K-map from the truth table (Gray code order 00, 01, 11, 10). CD \ AB 00 01 11 10 00 0 0 0 0 01 1 1 1 1 11 0 0 0 0 10 1 1 1 1 Rows CD = 00 and CD = 01 correct [1] Rows CD = 11 and CD = 10 correct [1] (c) Loop the two rows of 1s. Loop 1: the whole row CD = 01 (four cells) [1] Loop 2: the whole row CD = 10 (four cells) [1] (d) In row CD = 01, C = 0 and D = 1. In row CD = 10, C = 1 and D = 0. A and B do not matter. X = NOT C . D + C . NOT D One correct term [1] Both terms joined with + and no other terms [1] KEY IDEA A loop only keeps the inputs that do not change inside it, so a whole row of the K-map depends only on C and D. 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.