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
Answer and explanation
Concise answer
0110
Why this is correct
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.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
