Key idea: The figure shows the standard four-NAND circuit: one NAND feeds both middle NANDs, and their outputs go into a final NAND. This circuit is an XOR gate.
- The first gate gives X=AB.
- The middle gates give P=A⋅X and Q=B⋅X.
- The output is Y=P⋅Q=AX+BX=(A+B)AB=ABˉ+AˉB, which is XOR.
- Truth table: 00→0, 01→1, 10→1, 11→0. This matches the table in option (A).
Answer: (A)