Exam-style question
Try this first
Which statement correctly describes XOR?.
- A.It produces True only when both inputs are True
- B.It produces True when at least one input is True
- C.It produces True when exactly one input is True
- D.It always produces the opposite of the first input
Model answer
What a good answer should say
- It produces True when exactly one input is True
Explanation
Why this works
Exclusive OR, or XOR, is True when the two input values are different: one is True and the other is False.
Common mistake
No common mistake is linked to this question yet.
