The XOR (EOR) gate
The XOR (exclusive OR, or EOR) gate has two inputs and outputs 1 only when the inputs are different. Its truth table output is 0 1 1 0. Its symbol is the OR shape with an extra curve at the input.
Understanding The XOR (EOR) gate in IGCSE Computer Science Paper 2
What it does: XOR gives 0 when the inputs are the same (00 and 11) and 1 when they are different (01 and 10), so the column reads 0 1 1 0. The expression A XOR B means one input or the other, but not both, which is why 1 and 1 gives 0. The inputs are the same, so XOR outputs 0. This is the row that differs from a normal OR gate. XOR gives 0 for 00, 1 for 01, 1 for 10 and 0 for 11. 0 1 1 1 is the OR gate. The expression for the exclusive OR gate is X = A XOR B. XNOR is not a gate in the 0478 syllabus.
Common mistakes: The inputs 0 and 1 are different, so an XOR gate outputs 1. The row should be 0 1 1. XOR outputs 1 when the inputs are different. A and B differ here, so the line should be X ← 1.
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 552–561) 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 XOR BFill in the Blanks
Spot the Error
Student with a class code? Join your class →