Skip to content
GATEiit

GATE CSE 2017 Session 2 Q21: Translate an English statement about rain, cold and pleasant into logic

Syllabus topic: Propositional and first-order logic

Question

Let p, q, r denote the statements “It is raining”, “It is cold”, and “It is pleasant”, respectively. Then the statement “It is not raining and it is pleasant, and it is not pleasant only if it is raining and it is cold” is represented by

Try it: multiple choice: exactly one correct option

Select one option
Wrong answer costs 1/3 mark in GATE.
Show answer and explanation

Answer: A (official GATE 2017 final answer key)

Concept used: 'A only if B' translates to A→B, and the connective 'and' joining the two clauses is a conjunction.

Concept notes

Loading notes…

First step: Translate the two clauses separately: 'not raining and pleasant', then 'not pleasant only if raining and cold' as an implication.

Full step-by-step solution

Loading…

Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.

More questions on Propositional and first-order logic

Every PYQ on this topic →

Share this question

WhatsAppDownload image

Source: official GATE 2017 Session 2 CS question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key