9618/11/O/N/21 question 3: worked solution (October/November 2021, paper 11)

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. Q42 9618/11/O/N/21 original Q3 Structured · 8 marks Worked solution (a) Follow the circuit from the inputs: A and B go into an AND gate, its output and C go into an XOR gate, and that output goes into an OR gate with NOT B. Write: A AND B [1] Write: XOR C on that result [1] Write the final OR with NOT B: X = ((A AND B) XOR C) OR NOT B [1] (b) Work out each stage: A B C A AND B (A AND B) XOR C NOT B X 0 0 0 0 0 1 1 0 0 1 0 1 1 1 0 1 0 0 0 0 0 0 1 1 0 1 0 1 1 0 0 0 0 1 1 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 0 0 0 First four rows of X correct (1, 1, 0, 1) [1] Last four rows of X correct (1, 1, 1, 0) [1] (c) The circuit uses AND, XOR, OR and NOT. Choose a gate it does not use, for example NOR . Logic gate: NOR [1] Symbol: an OR gate shape with a small circle at the output, two inputs A and B [1] A B Output 0 0 1 0 1 0 1 0 0 1 1 0 Truth table correct for the gate chosen [1] NAND is also accepted: AND shape with a circle, output 1, 1, 1, 0. KEY IDEA Write the expression gate by gate from the inputs, then build the truth table with a working column for each stage. TOTAL 8 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by qiphyedu. Tap the picture to open it on YouTube.