Cambridge O Level Computer Science · Syllabus 2210 · Boolean Logic
XOR Gate
What is XOR Gate?
A two-input logic gate, also written EOR and read as exclusive OR, whose output is 1 when the two inputs are different and 0 when they are the same; for two inputs this is the same as saying exactly one input is 1. Its symbol is the OR shield with a second curved line just outside the back, and it is written X = A XOR B.
This definition is part of the Boolean Logic chapter in Cambridge O Level Computer Science.
XOR Gate in context
The XOR gate — also written EOR, and read as exclusive OR — has two inputs and outputs 1 when the two inputs are different. For two inputs, “different” is the same as “exactly one of them is 1”. When the inputs are the same, whether both 0 or both 1, the output is 0.
Reviewed by Academiq Edu Instructor PanelLast reviewed Syllabus 2026-2028

