9618/12/M/J/21 question 3: worked solution (May/June 2021, paper 12)

Show as 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. Q41 9618/12/M/J/21 original Q3 Structured · 6 marks Worked solution (a) Build the circuit from the expression S = (A AND B AND C) OR (B XOR C), reading left to right. Use only 2-input gates. Draw an AND gate with inputs A and B [1] Draw a second AND gate with inputs C and the output of the first AND gate [1] Draw an XOR gate with inputs B and C [1] Join the outputs of the second AND gate and the XOR gate to an OR gate , whose output is S [1] (b) Work out each bracket, then OR them. A B C A AND B AND C B XOR C S 0 0 0 0 0 0 0 0 1 0 1 1 0 1 0 0 1 1 0 1 1 0 0 0 1 0 0 0 0 0 1 0 1 0 1 1 1 1 0 0 1 1 1 1 1 1 0 1 First four rows of S correct (0, 1, 1, 0) [1] Last four rows of S correct (0, 1, 1, 1) [1] KEY IDEA Break an expression into small gates, draw them in order, then check the circuit with a truth table. TOTAL 6 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by O/Alevel CS by Wasiq. Tap the picture to open it on YouTube.