Answer: D
To determine which operation is commutative but not associative, let's analyze each option:
- AND (⋅):
- Commutative: A⋅B=B⋅A (True)
- Associative: (A⋅B)⋅C=A⋅(B⋅C) (True)
- OR (+):
- Commutative: A+B=B+A (True)
- Associative: (A+B)+C=A+(B+C) (True)
- EX-OR (⊕):
- Commutative: A⊕B=B⊕A (True)
- Associative: (A⊕B)⊕C=A⊕(B⊕C) (True)
- NAND (↑):
- Commutative: A↑B=A⋅B=B⋅A=B↑A (True)
- Associative: Let's evaluate (A↑B)↑C and A↑(B↑C):
LHS=(A↑B)↑C=A⋅B⋅C=(A⋅B)+C
RHS=A↑(B↑C)=A⋅B⋅C=A+(B⋅C)
Since LHS=RHS (for instance, when A=1,B=1,C=0, we get LHS=1⋅1+1=1 and RHS=0+1⋅0=0), the NAND operation is not associative.
Therefore, the NAND operation is commutative but not associative.