GATE CS 2017 · Set-1 · Propositional Logic

MCQ · 2 marks · Problem AI-LOGIC-0078

Let p, q, and r be propositions and the expression (p\(\rightarrow\)q)\(\rightarrow\)r be a contradiction. Then, the expression (r\(\rightarrow\)p)\(\rightarrow\)q is
  1. A
    a tautology
  2. B
    a contradiction
  3. C
    always TRUE when p is FALSE
  4. D
    always TRUE when q is TRUE

Solve it on GATE DA practice →More Logic problems

Show the worked solution\[\boxed{a\rightarrow b \text{ is false only when } a \text{ is true and } b \text{ is false}}\]Since \((p\rightarrow q)\rightarrow r\) is false, \(p\rightarrow q\) is true and \(r\) is false.With \(r\) false, \(r\rightarrow p\) is true, so \((r\rightarrow p)\rightarrow q\) has the same value as \(q\).(A), (B) Incorrect: the value is \(q\), which can be true or false.(C) Incorrect: \(p\) false allows \(q\) false (then \(p\rightarrow q\) is still true), and the expression is false.(D) Correct: whenever \(q\) is true, the expression is true.Answer: D

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