Creating a logic circuit from an expression
Draw one gate per operator: the bracket (A AND B) becomes an AND gate first, and its output feeds the final OR gate along with C to give X.
Understanding Creating a logic circuit from an expression in IGCSE Computer Science Paper 2
What it does: This expression has two operators, OR and AND, so the circuit has an OR gate feeding an AND gate. NOT only acts on A, so a NOT gate sits on input A and its output goes into the AND gate with B. Work out the bracketed part first. The AND gate comes first and its output then feeds the final OR gate. Draw one gate for each operator, not one for each input. There are two operators (AND, OR), so there are two gates. NOT C is an operator too, so it needs its own gate. The AND and NOT outputs both feed the final OR gate.
Common mistakes: The bracket (A AND B) must become an AND gate. Line 2 should read 'Gate 1: AND, inputs A and B'. The final gate (the AND gate, Gate 2) produces X. Gate 1 only feeds into Gate 2. Line 4 should read 'Gate 2 output is X'.
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 →