Question

'When it is raining, peacocks dance.'

Based only on this sentence, which one of the following options is necessarily true?

Choose one option
Official answer and solution
Official answer
C
From
Official GATE 2026 answer key

Solution

Translate the conditional statement into propositional logic R→DR \rightarrow D and take its contrapositive ¬D→¬R\neg D \rightarrow \neg R.

Let RR denote 'it is raining' and DD denote 'peacocks dance'. The given statement is the implication R→DR \rightarrow D. An implication is logically equivalent to its contrapositive ¬D→¬R\neg D \rightarrow \neg R, which states: 'When peacocks are not dancing, it is not raining.' Converse (D→RD \rightarrow R) and inverse (¬R→¬D\neg R \rightarrow \neg D) are not necessarily true.

Final answer

Option (C)

Common trap

Confusing the converse ('When peacocks dance, it is raining') with the contrapositive.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2026 Computer Science and Information Technology - Session 2 (CS2)
Question
5 of 65
Section
General Aptitude

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.