GATE 2017 CS (CS2) – Question 21
Let p,q,r mean “It is raining”, “It is cold”, “It is pleasant”. Represent: “It is not raining and it is pleasant, and it is not pleasant only if it is raining and it is cold.”
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (A) $(\neg p\land r)\land(\neg r\to(p\land q))$
Explanation
The first clause is ¬p∧r. “A only if B” translates A→B, so the second clause is ¬r→(p∧q). The word “and” joins the clauses by conjunction. This yields option A.
More Discrete Mathematics: Propositional and First Order Logic questions
- GATE 2012 CS (CS1) Q11
- GATE 2012 CS (CS1) Q23
- GATE 2013 CS (CS1) Q37
- GATE 2011 CS (CS1) Q40
- GATE 2010 CS (CS1) Q40
- GATE 2015 CS (CS2) Q11
All Discrete Mathematics: Propositional and First Order Logic questions →