Creating a logic circuit from a truth table
To draw a circuit from a truth table, write the expression that gives the X output column, then draw one gate for each operator in it. Do not simplify the expression.
Understanding Creating a logic circuit from a truth table in IGCSE Computer Science Paper 2
What it does: An output column of 0, 1, 1, 1 matches OR, so the whole circuit is one OR gate. The AND part covers the rows where A and B are both 1, and the OR joins it to C. Draw one gate per operator. Write the expression for the X column first. Here only A = 1 and B = 1 gives X = 1, so the expression is X = A AND B. Then draw an AND gate. NOR gives 1 only when both inputs are 0. NAND gives 1, 1, 1, 0 for the same rows, so it does not match.
Common mistakes: The expression X = A AND B gives 1 only when both inputs are 1. The row 0 1 must therefore give X = 0, so the line should be '0 1 | 0'. Without brackets, NOT applies only to A. The NOT must apply to the result of A OR B, so the line should be 'X = NOT (A OR B)'.
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
X = (A AND B) OR CFill in the Blanks
Spot the Error
Student with a class code? Join your class →