40 40 votes Let $\#$ be the binary operator defined as $X\#Y = X'+Y'$ where $X$ and $Y$ are Boolean variables. Consider the following two statements. $(S_1)$ $(P\#Q)\#R = P\#(Q\#R)$ $(S_2)$ $Q\#R = (R\#Q)$ Which are the following is/are true for the Boolean variables $P, Q$ and $R$? Only $S_1$ is true Only $S_2$ is true Both $S_1$ and $S_2$ are true Neither $S_1$ nor $S_2$ are true Set Theory & Algebra gatecse-2015-set3 set-theory&algebra binary-operation normal + – go_editor 10.8k views answer comment Share Follow Print See all 6 Comments 6 6 Comments reply Show 3 previous comments JashanArora commented Oct 5, 2019 reply Follow flag NAND, NOR are commutative but not associative. i.e. you can switch the order but brackets would matter. (Layman's terms) XOR, XNOR are both commutative and associative. 3 3 replyShare Deepak Poonia commented May 26, 2024 reply Follow flag Detailed Video Solution: https://www.youtube.com/watch?v=yEbVqvRbzO0&list=PLIPZ2_p3RNHi0XVjX565f6vRfT1nRS-X0&index=11 2 2 replyShare mv_ind commented Feb 1 reply Follow flag Similar qn - https://gateoverflow.in/39629/gate-cse-2016-set-1-question-06 0 0 replyShare Please log in or register to add a comment.
Best answer 43 43 votes Answer: B $(P\#Q)\#R=(P'+Q')\#R$ $\quad \quad =P.Q+R'$ whereas, $P\#(Q\#R)=P'+(Q\#R)'$ $\quad \quad=P'+(Q'+R')'$ $\quad \quad=P'+QR$ overtomanu answered Feb 15, 2015 • edited Jun 8, 2018 by Arjun overtomanu comment Share Follow See all 4 Comments 4 4 Comments reply Ayush Upadhyaya commented Jul 5, 2018 reply Follow flag This is NAND operation which is commutative but not associative 11 11 replyShare Lakshman Bhaiya commented Oct 29, 2018 i edited by Lakshman Bhaiya Jan 21, 2020 reply Follow flag $\implies \text{NAND, NOR}$ are commutative but notassociative. $\implies \text{EXOR, EXNOR}$ are both commutative and associative. 20 20 replyShare MohanK commented Jan 21, 2021 i edited by MohanK Jan 21, 2021 reply Follow flag @Lakshman Patel RJIT Sir, @Ayush Upadhyaya Sir So, whenever we have a boolean operator, should we always try to map to the Truth Table of already known similar operator(Like NAND was mapped here) ? There was also a similar question here (https://gateoverflow.in/8226/gate2015-1-28) So, Will this method work out for all such cases ? 0 0 replyShare Deepak Poonia commented May 14, 2022 i edited by Deepak Poonia Jul 16, 2022 reply Follow flag $\color{red}{\text{Find Video Solution Below:}}$Detailed Video Solution 4 4 replyShare Please log in or register to add a comment.
20 20 votes X#Y=X'+Y' =(XY)' (DEMORGAN'S LAW) so this # operatoe is nand operator Nand is commutative but not associative. So B is the answer Pooja Palod answered Aug 10, 2015 Pooja Palod comment Share Follow 0 reply Please log in or register to add a comment.
6 6 votes It is given that X#Y = X'+Y' where X and Y are Boolean variables. Consider the following two statements. (S1) is (P#Q)#R = P#(Q#R) L.H.S is (P#Q)#R =(P'+Q')#R (Using given relation) =(P'+Q')'#R=> P.Q+R' (Using Demorgans theorem ) R.H.S is P#(Q#R) =P#(Q'+R') =P'+(Q'+R')' => P'+Q.R L.H.S !=R.H.S So S1 is not true. (S2) is Q#R = (R#Q) L.H.S Q#R=Q'+R' and R.H.S is R#Q=R'+Q' so L.H.S=R.H.S So S2 is true. rpdhakad answered Jul 20, 2015 rpdhakad comment Share Follow See 1 comment 1 1 comment reply chalam121 commented Apr 4, 2018 reply Follow flag Understanding You Explanation Good 0 0 replyShare Please log in or register to add a comment.
0 0 votes ANSWER: B only S2 is true S1 : (P#Q)#R = P#(Q#R) (P'+Q')#R = P#(Q'#R') (P'+Q')'+R' != P'+(Q'+R')' S1 is not true (it is not associative) S2 : Q#R = R#Q Q'+R' = R'+Q' S2 is true (it is commutative) DKDriftKing answered Nov 20, 2025 DKDriftKing comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes S1 : (P#Q)#R = (P'+Q')#R = (P'+Q')'+R' P#(Q#R) = P#(Q'+R') = P'+(Q'+R')' It clearly sees that it is not true. S2 : Q#R = Q'+R' R#Q = R'+Q' clearly sees that Q'+R' == R'+Q' . so only S2 TRUE.thank you Anirban_Bhattacharya answered Jul 30 Anirban_Bhattacharya comment Share Follow 0 reply Please log in or register to add a comment.