GATE 2014 CS (CS1) – Question 63
Which propositional formula is TRUE exactly when two of p, q, r are TRUE?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (B) $(\neg(p\leftrightarrow q)\land r)\lor(p\land q\land\neg r)$
Explanation
When r is true, exactly one of p,q must be true, represented by¬(p↔q)∧r. When r is false, both p,q must be true, represented by p∧q∧¬r. Their disjunction is **B** and accepts precisely110,101,011.