9618/32/M/J/25 question 7: worked solution (May/June 2025, 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. Q32 9618/32/M/J/25 original Q7 Structured · 8 marks Worked solution (a) Work out each gate one at a time (P, Q, R, S), then Z, for every row. P is NOT C, and Z is the final output. A B C D P Q R S Z 0 0 0 0 1 0 0 1 0 0 0 0 1 1 0 0 1 0 0 0 1 0 0 1 0 1 0 0 0 1 1 0 1 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 1 1 0 0 1 0 0 1 1 0 0 0 0 0 1 0 1 1 1 0 0 1 0 0 1 0 0 0 1 0 0 1 0 1 0 0 1 1 0 0 1 0 1 0 1 0 0 0 0 0 1 1 0 1 1 0 0 0 0 1 1 1 0 0 1 0 0 1 0 1 1 0 1 1 0 0 1 0 1 1 1 0 0 0 0 0 1 1 1 1 1 0 0 1 0 0 Working columns P, Q, R and S all correct [1] Z correct for the first eight rows [1] Z correct for the last eight rows [1] (b) Write a product for each row where Z = 1 (rows 0110, 1010, 1011, 1110). Z = NOT A . B . C . NOT D + A . NOT B . C . NOT D + A . NOT B . C . D + A . B . C . NOT D [1] The terms may be in any order. (c) The expression is NOT(A + B) . (NOT(A . B) + NOT(B . C)). Apply De Morgan's law to each bar, then tidy up, one law per line. NOT(A + B) . (NOT(A . B) + NOT(B . C)) (NOT A . NOT B) . (NOT A + NOT B + NOT B + NOT C) (NOT A . NOT B) . (NOT A + NOT B + NOT C) (NOT A . NOT A + NOT A . NOT B + NOT A . NOT C) . (NOT B . NOT A + NOT B . NOT B + NOT B . NOT C) (NOT A + NOT A . NOT B + NOT A . NOT C) . (NOT A . NOT B + NOT B + NOT B . NOT C) (NOT A + NOT A . NOT C) . (NOT B + NOT B . NOT C) NOT A . NOT B Line 2 uses De Morgan's laws on each bar [1] Line 3 uses the idempotent law (NOT B + NOT B = NOT B), or line 4 the distributive law : one correct step [1] Lines 5 and 6 use the idempotent and absorption laws: a second correct step [1] Final answer NOT A . NOT B (also accepted: NOT(A + B)) [1] KEY IDEA Break each bar with De Morgan's law, then tidy with idempotent, distributive and absorption laws until nothing more can be removed. TOTAL 8 marks Official mark scheme VIDEO ▶ Topic lesson A lesson on this topic · by Craig'n'Dave. Tap the picture to open it on YouTube.