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

Show as plain text

Cambridge O Level Computer Science 2210 · 10.3 Logic circuits, truth tables and logic expressions Worked solution from the Boolean logic Paper 2 Algorithms, Programming and Logic booklet, Part 3 of 3. Q18 2210/22/O/N/23 original Q9 Structured · 8 marks Worked solution (a) Draw one gate for each operator in the expression, using only two inputs per gate. Work from the inside out. Gate 1: NAND with inputs A and B [1] Gate 2: XOR with inputs B and C [1] Gate 3: NOT with the output of the XOR gate as its input [1] Gate 4: OR with the output of the NAND gate and the output of the NOT gate as its inputs; its output is Z [1] (b) Work out A NAND B, then B XOR C, then NOT (B XOR C), then combine with OR. A B C A NAND B B XOR C NOT (B XOR C) Z 0 0 0 1 0 1 1 0 0 1 1 1 0 1 0 1 0 1 1 0 1 0 1 1 1 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 0 1 1 1 0 0 1 0 0 1 1 1 0 0 1 1 Outputs for the first two rows correct [1] Outputs for the third and fourth rows correct [1] Outputs for the fifth and sixth rows correct [1] Outputs for the last two rows correct [1] Marks are given by how many of the 8 outputs are right: 8 correct = 4 marks, 6 or 7 = 3, 4 or 5 = 2, 2 or 3 = 1. KEY IDEA Draw one gate per operator and join them from the inside of the expression outwards. TOTAL 8 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by Paper solver.. Tap the picture to open it on YouTube.