UGC-NET Jun 2014 · Propositional Logic

MCQ · 2 marks · Problem AI-LOGIC-0006

Give a compound proposition involving propositions $p, q$ and $r$ that is true when exactly two of $p, q$ and $r$ are true and is false otherwise
  1. A
    $(p\vee q \wedge \neg r) \wedge (p \wedge \neg q \wedge r) \wedge (\neg p \wedge q \wedge r)$
  2. B
    $(p \wedge q \wedge \neg r) \wedge (p \vee q \wedge \neg r) \wedge (\neg p \wedge q \wedge r)$
  3. C
    $(p \wedge q \wedge \neg r) \vee (p \wedge \neg q \wedge r) \wedge (\neg p \wedge q \wedge r)$
  4. D
    $(p \wedge q \wedge \neg r) \vee (p \wedge \neg q \wedge r) \vee (\neg p \wedge q \wedge r)$

Solve it on GATE DA practice →More Logic problems

Show the worked solution"Exactly two true" means one of three disjoint cases: only \(r\) false, only \(q\) false, or only \(p\) false. Each case is a minterm, and the cases are joined by OR:\[\boxed{(p\wedge q\wedge\neg r)\vee(p\wedge\neg q\wedge r)\vee(\neg p\wedge q\wedge r)}\](A), (B) join the cases with \(\wedge\); two distinct minterms can never be true together, so these are never true — incorrect.(C) mixes \(\vee\) and \(\wedge\); the last two minterms ANDed are always false, so it is true only for \(p,q\) true, \(r\) false — incorrect.(D) — correct.Answer: D

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com