GATE / CS ARCHIVE

GATE CSE 2014 SET 1 / QUESTION 53

GATE CSE 2014 Set 1 Q53

Discrete Mathematics · Propositional & Predicate Logic · Full GATE CSE 2014 Set 1 paper

GATE 2014 Set 1, Q53 2 marks · MCQ
Report issue

Propositional & Predicate Logic

Question 53, GATE 2014: Which formula expresses exactly two of p,q,r being true? A: ((p↔q)∧r)∨(p∧q∧¬r). B: (¬(p↔q)∧r)∨(p∧q∧¬r). C: ((p→q)∧r)∨(p∧q∧¬r). D: (¬(p↔q)∧r)∧(p∧q∧¬r).
Tap to enlarge
Your answer
Answer & solution

Official answer: B

1. Method and setup. Split on the truth value of r. When r is true, exactly one of p,q must be true, which is exclusive-or, the negation of equivalence. When r is false, both must be true. Combine these alternative cases with OR; AND would require r and ¬r simultaneously.

2. Work through the result and its assumptions. If r is true, exactly two true variables requires exactly one of p, q, namely NOT(p↔q). If r is false, both p and q must be true. The disjoint alternatives combine as[NOT(p↔q) AND r] OR[p AND q AND NOT r], B.

Original paper, page 20 · Answer key