Completing a truth table from a logic circuit
Follow one row of input values through each gate in the circuit, write each gate's output in an extra column, then copy the final value of X into the truth table.
Understanding Completing a truth table from a logic circuit in IGCSE Computer Science Paper 2
What it does: Three inputs give 2 x 2 x 2 = 8 combinations, so each one must appear once and be traced through the circuit. The extra column D holds the output of the AND gate, which is then the input to the NOT gate that produces X. Work row by row: pass the input values through each gate in turn and write down the result. A AND B = 1 AND 0 = 0. Then 0 OR C = 0 OR 0 = 0, so X is 0. NOT reverses its input, so NOT 1 = 0. A AND B = 1. The NOT gate then reverses it, so X = 0.
Common mistakes: The circuit has an AND gate feeding the OR gate, so the expression must be X = (A AND B) OR C. Line 1 uses OR, which does not match the intermediate column P = A AND B. The gate in the middle needs its own column. The table should have an extra column P (A, B, P, X) so the output of the OR gate can be written down before the NOT gate.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 562–580) and word search (Modules 539–580).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
trace each rowFill in the Blanks
Spot the Error
Student with a class code? Join your class →