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

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 1 Computer Systems booklet, Part 2 of 2. Q7 2210/12/M/J/21 original Q3 Structured · 10 marks Worked solution (a) Build the circuit from the inside of the brackets outwards. Every gate has at most two inputs. Draw these gates: NOT gate with input A [1] AND gate with inputs B and the output of the NOT gate [1] OR gate whose inputs are the output of that AND gate and C [1] AND gate whose inputs are the output of that OR gate and B [1] OR gate with inputs B and C [1] NOR gate whose inputs are the output of the second AND gate and the output of the second OR gate; its output is X [1] (b) Work out the correct X for every row. The working columns are: NOT A AND B, then OR C, then AND B, then B OR C. A B C NOT A AND B OR C AND B B OR C X 0 0 0 0 0 0 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 1 1 0 0 1 1 1 1 1 1 0 1 0 0 0 0 0 0 1 1 0 1 0 1 0 1 0 1 1 0 0 0 0 1 0 1 1 1 0 1 1 1 0 Compare with the given outputs: Row A B C Correct X Given X Match? 1 0 0 0 1 1 yes 2 0 0 1 0 1 NO 3 0 1 0 0 1 NO 4 0 1 1 0 0 yes 5 1 0 0 1 1 yes 6 1 0 1 0 0 yes 7 1 1 0 0 1 NO 8 1 1 1 0 1 NO Write: Row 2 , Row 3 , Row 7 , Row 8 (one mark for each correct row) [4] Any order is accepted. KEY IDEA To find errors in a truth table, work out the correct column yourself and compare row by row. TOTAL 10 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by Level Up with Aqeel Ahmed: CS Edition. Tap the picture to open it on YouTube.