2210/22/O/N/24 question 9: worked solution (October/November 2024, 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. Q21 2210/22/O/N/24 original Q9 Structured · 8 marks Worked solution (a) X = (NOT P OR Q) NAND (Q XOR R). Draw one gate for each operator, working from the inside out. NOT gate with input P [1] OR gate with the output of NOT P and Q as its inputs [1] XOR gate with inputs Q and R [1] NAND gate with the output of the OR gate and the output of the XOR gate as its inputs; its output is X [1] (b) Work out NOT P OR Q and Q XOR R, then combine them with NAND. P Q R NOT P OR Q Q XOR R X 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 0 0 1 1 1 0 1 1 0 0 0 0 1 1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 0 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 NAND is AND followed by NOT, so it is 0 only when both of its inputs are 1. TOTAL 8 marks Official mark scheme VIDEO ▶ Topic lesson A lesson on this topic · by Mr Bulmer's Learning Zone. Tap the picture to open it on YouTube.