Question:

The truth table for the system of four NAND gates as shown in the figure is

Show Hint

Write the output of each NAND gate in terms of A and B and evaluate for all four input combinations.
Updated On: Nov 12, 2026
  • ABY
    001
    011
    100
    110
  • ABY
    001
    010
    100
    111
  • ABY
    000
    011
    101
    110
  • ABY
    000
    010
    101
    111
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

Step 1: Understanding the Concept
A NAND gate gives output 0 only when both inputs are 1.
In the figure the first gate takes A and B, and its output goes to two more gates along with A and B respectively.

Step 2: Gate Outputs
Let \(P=\overline{A\cdot B}\).
Second gate: \(Q=\overline{A\cdot P}\). Third gate: \(S=\overline{B\cdot P}\).
Final gate: \(Y=\overline{Q\cdot S}\).

Step 3: Evaluate
For \(A=0,B=0\): \(P=1,Q=1,S=1,Y=0\).
For \(A=0,B=1\): \(P=1,Q=1,S=0,Y=1\).
For \(A=1,B=0\): \(P=1,Q=0,S=1,Y=1\).
For \(A=1,B=1\): \(P=0,Q=1,S=1,Y=0\).

Step 4: Compare the options
The outputs are 0, 1, 1, 0, which is an XOR gate. This is option (C).

Final Answer:
The circuit behaves as an XOR gate with outputs 0, 1, 1, 0. \[ \boxed{\text{(C) }\text{Y = 0, 1, 1, 0 for AB = 00, 01, 10, 11}} \]
Was this answer helpful?
0
0