Writing a logic expression from a logic circuit: one gate
Name the gate, then write X = with the input letters and the gate name, e.g. an AND gate with inputs A and B is X = A AND B. NOT has one input: X = NOT A.
Understanding Writing a logic expression from a logic circuit: one gate in IGCSE Computer Science Paper 2
What it does: Recognise the OR symbol, then write X = with both input letters and the gate name OR between them. NOT has only one input, so there is no B. The expression is X = NOT A. The gate name in the expression must match the gate in the circuit. An OR gate gives X = A OR B. The small circle on the output means the output is inverted. AND with a circle is NAND, so X = A NAND B. The correct expression is X = A AND B, because every expression begins with the output letter and an equals sign.
Common mistakes: An AND gate has two inputs, so the line should read 'Inputs: A and B'. The expression X = A AND B uses both letters. A flat-backed, D-shaped symbol with no bubble is an AND gate, not an OR gate. The line should be 'Gate: AND'.
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 BFill in the Blanks
Spot the Error
Student with a class code? Join your class →