84 84 votes Which one of the following propositional logic formulas is TRUE when exactly two of $p,q$ and $r$ are TRUE? $(( p \leftrightarrow q) \wedge r) \vee (p \wedge q \wedge \sim r)$ $( \sim (p \leftrightarrow q) \wedge r)\vee (p \wedge q \wedge \sim r)$ $( (p \to q) \wedge r) \vee (p \wedge q \wedge \sim r)$ $(\sim (p \leftrightarrow q) \wedge r) \wedge (p \wedge q \wedge \sim r) $ Mathematical Logic gatecse-2014-set1 mathematical-logic normal propositional-logic + – go_editor 24.6k views answer comment Share Follow Print See all 8 Comments 8 8 Comments reply Show 5 previous comments Franz Kafka commented Oct 4, 2024 i edited by Deepak Poonia Mar 27, 2025 reply Follow flag Propositional Logic - GATE PYQs Part 2 | Discrete Mathematics | GO Classes | Deepak Poonia (youtube.com)Timestamp : 1:13:52 14 14 replyShare Sudo_404_Div commented Mar 26, 2025 reply Follow flag @ritiksri8Yes, that would be a nice and quick approach to answer this question, but if there were more variables or more cases possible, then the method that @Deepak Poonia sir taught would be much better. 2 2 replyShare Vaishnav 1 commented Mar 12 reply Follow flag Exactly 2 can be true among threeso I took P,Q as True , then obviously R becomes Falsein this ((p bi-implies q) ^ r) part will become false but the q ^ q ^ !r => this will become true, so the whole equatoin becomes trye and in this part also the ( p ^ q ^ !r) becomes correc -> so the whole equatoin becomes correct in this too, ( p ^ q ^ !r) becomes correc -> so the whole equatoin becomes correct here both become false so why is option A, B and C, three of them not correct ? 0 0 replyShare Please log in or register to add a comment.
Best answer 65 65 votes $A.$ will be true if $P,Q,R$ are true, $((p ↔q) ∧ r)$ will return true. So "exactly two" is false $C.$ if only $r$ is true and $p$ and $q$ are false, first part of implication itself will result in true $D.$ if $r$ is true or false, this returns false due to $r$ and $\neg r$ present in conjunction. So, this is a CONTRADICTION. B is the answer. B is true if $p$ is TRUE and $q$ is FALSE or vice verse, and $r$ is true or if $p$ and $q$ are TRUE and $r$ is FALSE. PS: Actually the question should have been "TRUE ONLY when exactly two of $p,q$ and $r$ are TRUE" Manu Thakur answered Oct 17, 2014 • edited Jun 7, 2018 by Arjun Manu Thakur comment Share Follow See all 17 Comments 17 17 Comments reply Show 14 previous comments Ritika_Upadhyay commented Feb 5, 2025 reply Follow flag https://www.youtube.com/live/7jYCu5n2zkM?si=080T933utW4PSzNE 0 0 replyShare GATE 5 commented Nov 21, 2025 reply Follow flag In option A, won't (p∧q∧∼r) give true if p and q are true, and r is false? 3 3 replyShare pavansan commented Nov 28, 2025 reply Follow flag @GATE 5 now i got it actually in question saying that exactly two of p,q,r should be true.Actually there will be three cases for exactly two of three should be true:1)p=T,q=T,r=F 2)p=T,q=F,r=T 3)p=F,q=T,r=Tso in remaining options there is atleast one of these three cases not satisfying but in option B all of these cases are satisfying so option B is correct. 4 4 replyShare Please log in or register to add a comment.
51 51 votes the proposition logic formula is required to be true when any two of the p q r are true .so let's make truth table taking any two of p q r as true P Q R 0 1 1 1 1 0 1 0 1 now write down the POS for above truth table i.e. P'QR+PQR'+PQ'R . option B will satisfy the above POS expression hence answer. preetam answered Apr 19, 2016 preetam comment Share Follow See all 9 Comments 9 9 Comments reply Show 6 previous comments TanayH commented Dec 25, 2025 reply Follow flag Yes its SOP 0 0 replyShare Baki Hanma commented May 13 reply Follow flag I did the same... 0 0 replyShare Adithya 7 commented Aug 6 reply Follow flag why not saying how does it satisfy that...All top answers will be so vague...Pls atleast try to make us understand 0 0 replyShare Please log in or register to add a comment.
35 35 votes propositional logic formulas is TRUE when exactly two of p,q and r are TRUE means possibilities are pq or qr or pr to be TRUE option A) ((p↔q)∧r)∨(p∧q∧∼r) =((T↔T)∧r)∨(T∧T∧∼r) ( take p=T and q=T) =((T)∧r)∨(T∧∼r) =(r)∨(∼r) =T It doesn't depend upon the value of r, so, if the value of r is T then it also to be T so the condition exactly 2 are T is false. Hence option A is FALSE. option B) (∼(p↔q)∧r)∨(p∧q∧∼r) =(∼(T↔T)∧r)∨(T∧T∧∼r) ( take p=T and q=T) =(∼(T)∧r)∨(T∧∼r) =(F∧r)∨(T∧∼r) =(F)∨(∼r) =∼r so if r=F then this is T so condition exactly 2 are T is true (∼(p↔q)∧r)∨(p∧q∧∼r) =(∼(T↔q)∧T)∨(T∧q∧∼T) ( take p=T and r=T) =(∼(q)∧T)∨(F) =∼(q)∨(F) =∼q so if q=F then this is T so condition exactly 2 are T is true (∼(p↔q)∧r)∨(p∧q∧∼r) =(∼(p↔T)∧T)∨(p∧T∧∼T) ( take q=T and r=T) =(∼(p)∧T)∨(F) =∼(p)∨(F) =∼p so if p=F then this is T so condition exactly 2 are T is true Hence option B is CORRECT. option C) ((p→q)∧r)∨(p∧q∧∼r) =((T→T)∧r)∨(T∧T∧∼r) ( take p=T and q=T) =((T)∧r)∨(T∧∼r) =(r)∨(∼r) =T It doesnt depend upon value of r , so , if value of r is T then it also to be T so the condition exactly 2 are T is false . Hence option C is FALSE. option D) (∼(p↔q)∧r)∧(p∧q∧∼r) =(∼(T↔T)∧r)∧(T∧T∧∼r) ( take q=T and r=T) =(∼(T)∧r)∧(T∧∼r) =(F∧r)∧(T∧∼r) =F∧(∼r) =F It doesnt depend upon value of r , so , if value of r is F then it also to be F so the condition exactly 2 are T is false . Hence option D is FALSE. Gate Ranker18 answered Jun 18, 2017 Gate Ranker18 comment Share Follow 0 reply Please log in or register to add a comment.
8 8 votes Correct answer is option B. Mostafize Mondal answered Dec 3, 2018 Mostafize Mondal comment Share Follow 0 reply Please log in or register to add a comment.
5 5 votes Answer is (B) here any two propositional variables can be true and any one of p,q and r can be false .So let's start with elimination: D is eliminated as D won't be true if p ,q will be true and r is false since there is an and between two expressions. In C if q is false and p and r is true then the expression:(~p or q)AND r becomes false which doesn't satisfy the condition . Coming to B it seems to be the right answer even when p is false ,q and r is true and when q is false and p and r is true. A won't satisfy the condition if anyone p or q is false. The key is : p<->q is actually (p->q)AND(q->p). P->q is ~p or q.you just need to substitute T and F and check for condition. smedha answered Sep 23, 2017 smedha comment Share Follow 0 reply Please log in or register to add a comment.
3 3 votes Consider 4,6,7 cases and check options. $B)\\ (\sim (p\leftrightarrow q)\wedge r) \vee (p \wedge q \wedge \sim r)\\$ $4^{th}$ case $=(\sim (F\leftrightarrow T)\wedge T) \vee (F \wedge T \wedge \sim T)\\ =(\sim F\wedge T) \vee F\\ =(T\wedge T) \vee F\\ =T \vee F\\ =T$ Similarly Check $6^{th} \&\ 7^{th}$ cases. Correct Answer: B KUSHAGRA गुप्ता answered Jul 2, 2020 KUSHAGRA गुप्ता comment Share Follow See 1 comment 1 1 comment reply DKDriftKing commented Nov 19, 2025 reply Follow flag nice approach 0 0 replyShare Please log in or register to add a comment.