Easy1 markStructured
AQA GCSE · Question 03.1 · Computer systems
Complete the truth table for the XOR logic gate.
Complete the truth table for the XOR logic gate.
How to approach this question
The XOR (Exclusive OR) gate outputs True (1) only when the inputs are different.
1. Look at the first row: A=0, B=0. Inputs are the same, so output is 0.
2. Look at the second row: A=0, B=1. Inputs are different, so output is 1.
3. Look at the third row: A=1, B=0. Inputs are different, so output is 1.
4. Look at the fourth row: A=1, B=1. Inputs are the same, so output is 0.
Fill these values into the table.
Full Answer
The completed column for A XOR B should be:
0
1
1
0
An XOR (Exclusive OR) gate is a digital logic gate that gives a true (1 or HIGH) output when the number of true inputs is odd. In the case of a two-input XOR gate, the output is true only when the inputs are different.
- **A=0, B=0:** Inputs are the same. Output is 0.
- **A=0, B=1:** Inputs are different. Output is 1.
- **A=1, B=0:** Inputs are different. Output is 1.
- **A=1, B=1:** Inputs are the same. Output is 0.
The completed truth table is:
| A | B | A XOR B |
|---|---|---------|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
Common mistakes
✗ Confusing XOR with OR (which outputs 1 if A, B, or both are 1).
✗ Confusing XOR with AND (which only outputs 1 if both A and B are 1).
Practice the full AQA GCSE Computer Science Paper 2
46 questions · hints · full answers · grading
More questions from this exam
Q01.1Convert the binary number 11010100 into decimal.EasyQ01.2Convert the binary number 10111001 into hexadecimal. You should show your working.MediumQ01.3State the largest decimal number that can be represented using 6 bits.EasyQ02.1Add together the following three binary numbers and give your answer in binary.
00110110
1001...MediumQ02.2Apply a binary shift three places to the right on the bit pattern 10101000. Give the result using...Easy
Expert