Step 1: Understanding the Concept
The circuit has a NAND gate and an OR gate on the same inputs A and B, and their outputs go into an AND gate.
Step 2: Boolean expression
\(Y = \overline{A\cdot B}\cdot(A + B)\).
Step 3: Truth table
\(A=0,B=0\): \(1\cdot0 = 0\)
\(A=0,B=1\): \(1\cdot1 = 1\)
\(A=1,B=0\): \(1\cdot1 = 1\)
\(A=1,B=1\): \(0\cdot1 = 0\)
Step 4: Identify
The output is 1 only when the inputs differ, so this is an XOR gate.
Final Answer:
The circuit works as an X-OR gate.
\[ \boxed{\text{(D) }\text{X-OR gate}} \]