Question

Let #\# be a binary operator defined as

X#Y=X′+Y′X \# Y = X' + Y'

where XX and YY are Boolean variables.

Consider the following two statements.
(S1) (P#Q)#R=P#(Q#R)(P \# Q) \# R = P \# (Q \# R)
(S2) Q#R=R#QQ \# R = R \# Q

Which of the following is/are true for the Boolean variables PP, QQ and RR?

Choose one option
Official answer and solution
Official answer
B
From
Official GATE 2015 answer key

Solution

Express the binary operator # in terms of standard Boolean logic operations and check commutativity and associativity.

The binary operator is defined as X#Y=X′+Y′X \# Y = X' + Y'.
By De Morgan's laws, X′+Y′=(XY)′X' + Y' = (XY)', which is the Boolean NAND operation.

Evaluate Statement (S2): Q#R=R#QQ \# R = R \# Q
Q#R=(QR)′=(RQ)′=R#QQ \# R = (QR)' = (RQ)' = R \# Q.
Since Boolean conjunction is commutative, the NAND operator is commutative. Thus, statement (S2) is true.

Evaluate Statement (S1): (P#Q)#R=P#(Q#R)(P \# Q) \# R = P \# (Q \# R)
Test with truth values P=0,Q=0,R=1P = 0, Q = 0, R = 1:

  • Left-hand side: (0#0)#1=(0′+0′)#1=1#1=1′+1′=0(0 \# 0) \# 1 = (0' + 0') \# 1 = 1 \# 1 = 1' + 1' = 0.
  • Right-hand side: 0#(0#1)=0#(0′+1′)=0#1=0′+1′=10 \# (0 \# 1) = 0 \# (0' + 1') = 0 \# 1 = 0' + 1' = 1.
    Since 0≠10 \ne 1, (P#Q)#R≠P#(Q#R)(P \# Q) \# R \ne P \# (Q \# R). Thus, statement (S1) is false.

Hence, only statement S2 is true (Option B).

Final answer

B

Common trap

Assuming that symmetrical operator definitions guarantee associativity, whereas NAND is strictly non-associative.

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

Source

Paper
GATE 2015 Computer Science and Information Technology (CS) Session 3
Question
12 of 65, printed as CS Q.2
Section
Computer Science and Information Technology

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.