MCQEasyJEE 2025Logic Gates

JEE Physics 2025 Question with Solution

Consider the following logic circuit.

Logic circuit with inputs A and B feeding an AND gate, B also passing through a NOT gate into an OR gate, and outputs combining into a final NAND gate producing Y.

The output is Y=0Y = 0 when :

  • A

    A=1A = 1 and B=1B = 1

  • B

    A=0A = 0 and B=1B = 1

  • C

    A=1A = 1 and B=0B = 0

  • D

    A=0A = 0 and B=0B = 0

Answer

Correct answer:A

Step-by-step solution

Standard Method

Given: Inputs are AA and BB for the shown logic circuit.

Find: The input combination for which Y=0Y = 0.

From the solution working, the circuit is analyzed as follows:

  • Let the output of the first AND gate be XX.
  • The NOT gate gives B\overline{B}.
  • Let the OR gate output be ZZ.
  • The final gate is a NAND gate producing YY.

Thus,

X=ABX = A \cdot B B=NOT(B)\overline{B} = \text{NOT}(B) Z=A+BZ = A + \overline{B} Y=XZ=(AB)(A+B)Y = \overline{X \cdot Z} = \overline{(A \cdot B) \cdot (A + \overline{B})}

Now evaluate the options.

For A=1A = 1 and B=1B = 1:

X=11=1X = 1 \cdot 1 = 1 B=0\overline{B} = 0 Z=1+0=1Z = 1 + 0 = 1 Y=11=1=0Y = \overline{1 \cdot 1} = \overline{1} = 0

For A=0A = 0 and B=1B = 1:

X=01=0X = 0 \cdot 1 = 0 B=0\overline{B} = 0 Z=0+0=0Z = 0 + 0 = 0 Y=00=0=1Y = \overline{0 \cdot 0} = \overline{0} = 1

For A=1A = 1 and B=0B = 0:

X=10=0X = 1 \cdot 0 = 0 B=1\overline{B} = 1 Z=1+1=1Z = 1 + 1 = 1 Y=01=0=1Y = \overline{0 \cdot 1} = \overline{0} = 1

For A=0A = 0 and B=0B = 0:

X=00=0X = 0 \cdot 0 = 0 B=1\overline{B} = 1 Z=0+1=1Z = 0 + 1 = 1 Y=01=0=1Y = \overline{0 \cdot 1} = \overline{0} = 1

Therefore, the output is Y=0Y = 0 only for A=1A = 1 and B=1B = 1. The correct option is A.

Truth Table Evaluation

Given: A logic circuit with inputs AA and BB.

Find: Which input pair makes Y=0Y = 0.

A direct way is to compute the output for each option using the Boolean expression obtained in the solution:

Y=(AB)(A+B)Y = \overline{(A \cdot B) \cdot (A + \overline{B})}

A NAND gate gives output 00 only when its input product is 11. So we need

(AB)(A+B)=1(A \cdot B) \cdot (A + \overline{B}) = 1

This requires both factors to be 11.

First,

AB=1A=1,  B=1A \cdot B = 1 \Rightarrow A = 1,\; B = 1

Now check the second factor for A=1,B=1A = 1, B = 1:

A+B=1+0=1A + \overline{B} = 1 + 0 = 1

So the NAND input becomes 11, hence

Y=1=0Y = \overline{1} = 0

No other input pair can make AB=1A \cdot B = 1, so no other option can give Y=0Y = 0.

Therefore, the correct option is A.

Common mistakes

  • Treating the final gate as an AND gate instead of a NAND gate is incorrect because the small bubble at the output denotes inversion. Always check for the inversion bubble before writing the final Boolean expression.

  • Using ABA \cdot \overline{B} as the first gate output is incorrect for this circuit because the first gate in the valid solution takes inputs AA and BB directly. Trace each wire carefully before forming expressions.

  • Assuming Y=0Y = 0 whenever any input is 00 is wrong because gate outputs depend on the full Boolean combination, not on one input alone. Evaluate the intermediate gate outputs step by step.

Practice more Logic Gates questions

Get unlimited AI-adaptive practice, mastery tracking, and an AI tutor that explains every step — free to start.

Related questions