OR versus XOR: the row where both inputs are 1
Exclusive OR: outputs 1 when exactly one input is 1. When A and B are both 1 it outputs 0, but OR outputs 1 in that row. XOR means one or the other, but not both.
Understanding OR versus XOR: the row where both inputs are 1 in IGCSE Computer Science Paper 2
What it does: This row shows OR giving 1 and XOR giving 0, while all other rows have the same outputs. The phrase 'but not both' excludes the both-1 row, so the gate is XOR rather than OR. OR outputs 1 when at least one input is 1, so the row 1 and 1 gives 1. XOR means one or the other but not both. With both inputs 1, the output is 0. The OR and XOR columns match in every row except A = 1, B = 1. OR gives 1 and XOR gives 0. 'At least one' describes OR (inclusive). XOR is exclusive: exactly one input must be 1.
Common mistakes: The results show X=0 when both inputs are 1, which is XOR behaviour. OR would output 1 in that row. The line should be X = A XOR B. When A and B are both 1, OR outputs 1 but XOR outputs 0, because XOR means one or the other but not both. The row should be 1 1 | 1 | 0.
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
XORFill in the Blanks
Spot the Error
Student with a class code? Join your class →