Skip to content
Official PYQ · 1998

GATE CS 1998 Q2.8 — Boolean Algebra

Explain with AI

Which of the following operations is commutative but not associative?

Choose one option
View worked solution

Answer: C

An operation ∗* is defined as:

  • Commutative if A∗B=B∗AA * B = B * A
  • Associative if (A∗B)∗C=A∗(B∗C)(A * B) * C = A * (B * C)

Let's evaluate the given operations:

  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. 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 compare the left-hand side (LHS) and right-hand side (RHS):
      • LHS=(A↑B)↑C=AB‾⋅C‾=AB+C‾\text{LHS} = (A \uparrow B) \uparrow C = \overline{\overline{AB} \cdot C} = AB + \overline{C}
      • RHS=A↑(B↑C)=A⋅BC‾‾=A‾+BC\text{RHS} = A \uparrow (B \uparrow C) = \overline{A \cdot \overline{BC}} = \overline{A} + BC
      Since LHS≠RHS\text{LHS} \neq \text{RHS} (for instance, with A=1,B=1,C=0A=1, B=1, C=0, we get LHS=1\text{LHS} = 1 and RHS=0\text{RHS} = 0), NAND is not associative.
  4. EXOR (⊕\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)

Thus, NAND is commutative but not associative.

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

Published
Report a correction
Keep exploringMore Boolean Algebra questions