9618/12/O/N/23 question 4: worked solution (October/November 2023, paper 12)
Show as plain textHide plain text
Cambridge AS Level Computer Science 9618 · 3.2 Logic Gates and Logic Circuits Worked solution from the Hardware Paper 1 Theory Fundamentals booklet, Part 2 of 2. Q53 9618/12/O/N/23 original Q4 Structured · 5 marks Worked solution (a) Read the circuit gate by gate. A and B go into a NAND gate. B and C go into an XOR gate, and its output goes through a NOT gate. The NAND output and the NOT output go into a final NAND gate. First NAND gate written: A NAND B [1] NOT of the XOR written: NOT (B XOR C) [1] Final NAND joins them: X = (A NAND B) NAND (NOT (B XOR C)) [1] (b) Work out B AND (A NAND B) AND NOT C first, then XOR it with A. A B C B AND (A NAND B) AND NOT C X 0 0 0 0 0 0 0 1 0 0 0 1 0 1 1 0 1 1 0 0 1 0 0 0 1 1 0 1 0 1 1 1 0 0 1 1 1 1 0 1 First four rows of X (0, 0, 1, 0) correct [1] Last four rows of X (1, 1, 1, 1) correct [1] KEY IDEA Write each gate's output on the circuit, then join them into one expression; for truth tables, work out the inner brackets first. TOTAL 5 marks Official mark scheme VIDEO ▶ Starts at Q4 (43:49) Starts at Q4 (43:49) · by Pseudocode Pro. Tap the picture to open it on YouTube.