Step 1: Understanding the Concept
From the figure, \(P=A\cdot B\) (AND gate) and \(Y=\overline{P\cdot C}\) (NAND gate).
Step 2: All inputs 0
\(P=0\cdot0=0\), so \(Y=\overline{0\cdot 0}=\overline{0}=1\).
Step 3: All inputs 1
\(P=1\cdot1=1\), so \(Y=\overline{1\cdot 1}=\overline{1}=0\).
Step 4: Compare the options
The outputs are \(1\) and then \(0\), that is \(1,0\).
Final Answer:
The output is 1 for all inputs 0 and 0 for all inputs 1.
\[ \boxed{\text{(D) }1,0} \]