You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
The XOR gate (pronounced "exclusive OR") is an important logic gate that appears frequently in GCSE Computer Science exams. It is similar to the OR gate but with one key difference — the output is 1 only when the inputs are different.
XOR stands for Exclusive OR. For a two-input XOR gate:
The crucial difference between OR and XOR is what happens when both inputs are 1:
| Input A | Input B | Output (A ⊕ B) |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.