← Quiz: Logic: all 10 questions
Quiz: Logic · Question 7 of 10
When is p ⊕ q (XOR) true?
When is p ⊕ q (XOR) true?
- A.When both are true
- B.When both are false
- C.When exactly one of them is true
- D.Always
Answer & explanation
Correct answer: When exactly one of them is true
XOR means "one or the other, but not both", like p != q in Python.
Can you get the rest right without peeking?
Take the timed Quiz: Logic quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →