Creating a logic circuit from a problem statement
Turn the problem statement into a logic expression first, then draw one gate for each operator to build the circuit. Use inputs A, B, C (up to three) and one output X. Do not simplify.
Understanding Creating a logic circuit from a problem statement in IGCSE Computer Science Paper 2
What it does: 'Both on' means AND, 'or' means OR. The statement becomes this expression, which is then drawn as an AND gate feeding an OR gate. 'A and B both on' is grouped in brackets and joined to 'or C' with OR. Writing the expression first makes the circuit easy to draw. Draw one gate for each operator in the expression. There are two operators, AND and OR, so there are two gates. Inputs are not gates. The bracket (A AND B) is worked out by the AND gate first. Its output is then one of the two inputs to the OR gate, and C is the other.
Common mistakes: The statement says A and B must both be on, so the expression uses AND. The gate drawn must be an AND gate, not an OR gate. The statement says A or C, so the expression must use OR. It should be X = A OR C.
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) and definitions worksheet (Modules 562–580) and word scramble (Modules 562–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
▶ Run these on the board — two answers, the class points left or right, you reveal why. No devices.
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 →
Classroom tools: Hangman · Bingo · Heads or Tails · Higher or Lower · Name Picker · Team Generator · Seating Plan