Exam-style question
Try this first
What is the result of the bitwise XOR operation on 1010 and 1100?.
- A.1000
- B.1110
- C.0110
- D.0000
Model answer
What a good answer should say
- 0110
Explanation
Why this works
XOR produces 1 when the corresponding bits are different and 0 when they are the same: 1 XOR 1 = 0, 0 XOR 1 = 1, 1 XOR 0 = 1, and 0 XOR 0 = 0.
Common mistake
No common mistake is linked to this question yet.
