Common mistakes with logic gates, expressions and truth tables
Mixing up NAND/AND or OR/XOR, rows out of binary order, NOT on the wrong part, missing brackets or columns, wrong input counts, or simplifying a circuit that must be drawn as given.
Understanding Common mistakes with logic gates, expressions and truth tables in IGCSE Computer Science Paper 2
What it does: The row where both inputs are 1 is the only row where OR and XOR differ, so check it carefully. Working out (A AND B) in its own column first means each gate is solved separately, so mistakes are less likely. The student has described AND. NAND is NOT AND, so its output is the opposite: 0 only when A = 1 and B = 1, and 1 for every other row. Rows must follow binary counting order: 00, 01, 10, 11. Rows out of order make the table hard to check and can lose marks. NOT (A AND B) inverts the whole result, which is a NAND. Writing NOT directly in front of A (with brackets) makes it apply only to A.
Common mistakes: NAND is the opposite of AND. It outputs 1 unless both inputs are 1, so the row 0 1 must give X = 1. Writing 0 treats the gate as AND. XOR outputs 1 only when the inputs are different. When both inputs are 1, XOR gives 0. Giving 1 is the OR gate's behaviour.
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
common logic mistakesFill in the Blanks
Spot the Error
Student with a class code? Join your class →