Exam-style question
Try this first
Which Boolean expression is true when exactly one of A and B is true?.
- A.A AND B
- B.A OR B
- C.(A OR B) AND NOT (A AND B)
- D.NOT A AND NOT B
Model answer
What a good answer should say
- (A OR B) AND NOT (A AND B)
Explanation
Why this works
A OR B requires at least one input to be true. NOT (A AND B) prevents both inputs from being true, leaving exactly one true input.
Common mistake
No common mistake is linked to this question yet.
