2210/23/O/N/23 question 6: worked solution (October/November 2023, paper 23)

Show as plain text

Cambridge O Level Computer Science 2210 · 10.2 Functions of logic gates Worked solution from the Boolean logic Paper 2 Algorithms, Programming and Logic booklet, Part 2 of 3. Q15 2210/23/O/N/23 original Q6 Structured · 11 marks Worked solution (a) Output is 1 only when both inputs are 1: this is an AND gate. Write: AND [1] A B X 0 0 0 0 1 0 1 0 0 1 1 1 Truth table correct [1] (b) Output is 1 only when the inputs are different: this is an XOR gate (also called EOR). Write: XOR [1] A B X 0 0 0 0 1 1 1 0 1 1 1 0 Truth table correct [1] (c) Output is 1 only when both inputs are 0: this is a NOR gate. Write: NOR [1] A B X 0 0 1 0 1 0 1 0 0 1 1 0 Truth table correct [1] (d) X = (NOT A OR NOT B) OR NOT C. Draw one gate for each operator, with two inputs at most. NOT gate with input A [1] NOT gate with input B [1] OR gate with the outputs of the first two NOT gates as its inputs [1] NOT gate with input C [1] Final OR gate with the output of the first OR gate and the output of the NOT C gate as its inputs; its output is X [1] KEY IDEA Learn the output pattern of each gate: AND is 1 only for 1,1; XOR is 1 when inputs differ; NOR is 1 only for 0,0. TOTAL 11 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.