9618/31/O/N/22 question 7: worked solution (October/November 2022, 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. Q19 9618/31/O/N/22 original Q7 Structured · 7 marks Worked solution (a) Write a 1 in each cell for a term of the expression, 0 in all others. Rows are CD and columns are AB. Every term has NOT C and NOT D or NOT C and D, so only rows CD = 00 and 01 can hold 1s. CD \ AB 00 01 11 10 00 0 1 1 1 01 0 1 1 1 11 0 0 0 0 10 0 0 0 0 Fully correct map [2] One error in the map scores 1 mark instead. (b) Group all the 1s into the biggest blocks. Two blocks of four cover all the 1s, and they share the two cells in the AB = 11 column. Loop the block AB = 01 and 11, CD = 00 and 01 [1] Loop the block AB = 11 and 10, CD = 00 and 01 [1] (c) First block: B stays 1 and C stays 0, so the term is B . NOT C. Second block: A stays 1 and C stays 0, so the term is A . NOT C. One correct term [1] Z = B . NOT C + A . NOT C, with no other terms [1] Take out the common NOT C: Z = NOT C . (A + B) [1] KEY IDEA Loop the biggest blocks of 1s on the K-map, then factor out any letter common to the terms. TOTAL 7 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by MAK CS. Tap the picture to open it on YouTube.