Skip to content
Official PYQ · 1992

GATE CS 1992 Q02-i — Boolean Algebra

Explain with AI

The operation which is commutative but not associative is:

Choose one option
View worked solution

Answer: D

To determine which operation is commutative but not associative, let's analyze each option:

  1. AND (⋅\cdot):
    • Commutative: A⋅B=B⋅AA \cdot B = B \cdot A (True)
    • Associative: (A⋅B)⋅C=A⋅(B⋅C)(A \cdot B) \cdot C = A \cdot (B \cdot C) (True)
  2. OR (++):
    • Commutative: A+B=B+AA + B = B + A (True)
    • Associative: (A+B)+C=A+(B+C)(A + B) + C = A + (B + C) (True)
  3. EX-OR (⊕\oplus):
    • Commutative: A⊕B=B⊕AA \oplus B = B \oplus A (True)
    • Associative: (A⊕B)⊕C=A⊕(B⊕C)(A \oplus B) \oplus C = A \oplus (B \oplus C) (True)
  4. NAND (↑\uparrow):
    • Commutative: A↑B=A⋅B‾=B⋅A‾=B↑AA \uparrow B = \overline{A \cdot B} = \overline{B \cdot A} = B \uparrow A (True)
    • Associative: Let's evaluate (A↑B)↑C(A \uparrow B) \uparrow C and A↑(B↑C)A \uparrow (B \uparrow C):
      LHS=(A↑B)↑C=A⋅B‾⋅C‾=(A⋅B)+C‾\text{LHS} = (A \uparrow B) \uparrow C = \overline{\overline{A \cdot B} \cdot C} = (A \cdot B) + \overline{C}
      RHS=A↑(B↑C)=A⋅B⋅C‾‾=A‾+(B⋅C)\text{RHS} = A \uparrow (B \uparrow C) = \overline{A \cdot \overline{B \cdot C}} = \overline{A} + (B \cdot C)
      Since LHS≠RHS\text{LHS} \neq \text{RHS} (for instance, when A=1,B=1,C=0A = 1, B = 1, C = 0, we get LHS=1⋅1+1=1\text{LHS} = 1 \cdot 1 + 1 = 1 and RHS=0+1⋅0=0\text{RHS} = 0 + 1 \cdot 0 = 0), the NAND operation is not associative.

Therefore, the NAND operation is commutative but not associative.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Boolean Algebra questions