QlarIITy

PhysicsJEE Main 2026 · 4 AprilSingle correct

Two 4 bits binary numbers, A=1101A = 1101 and B=1010B = 1010 are given in the inputs of a logic circuit shown in figure below. The output (Y)(Y) will be :

Input A passes through a NOT gate into a NAND gate together with input B, giving the output Y
  1. Option A: Y=1101Y = 1101
  2. Option B: Y=0010Y = 0010
  3. Option C: Y=0111Y = 0111
  4. Option D: Y=1000Y = 1000
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. Reduce the circuit to one Boolean expression before putting in the bits.

Concept refresher. A NOT gate gives A‾\overline{A}, and a NAND gate gives the inverse of AND, X⋅Y‾\overline{X \cdot Y}. De Morgan's law turns an inverted product into a sum:

X⋅Y‾=X‾+Y‾\overline{X \cdot Y} = \overline{X} + \overline{Y}

and a double inversion cancels, A‾‾=A\overline{\overline{A}} = A.

Picture the situation. Working bit by bit, from the inputs through the NOT and the AND to the final inversion:

A table of the four bits of A, B, NOT A, NOT A AND B, and Y

Approach. Write the circuit's Boolean expression, simplify it, and apply it to each of the four bit positions.

  1. Step 1: Expression of the circuit

    The NAND gate receives A‾\overline{A} and BB, so its output is

    Y=A‾⋅B‾=A‾‾+B‾=A+B‾Y = \overline{\overline{A} \cdot B} = \overline{\overline{A}} + \overline{B} = A + \overline{B}
  2. Step 2: Apply it bit by bit

    Inverting B=1010B = 1010 gives B‾=0101\overline{B} = 0101. Taking OR with A=1101A = 1101 position by position:

    Y=1101+0101=1101Y = 1101 + 0101 = 1101

    (each position is 11 if either bit is 11).

Answer. (A) Y=1101Y = 1101

Sanity check. The direct route gives the same: A‾=0010\overline{A} = 0010, A‾⋅B=0010\overline{A} \cdot B = 0010, and inverting gives 11011101.

Why the other options are wrong

  • (B) 00100010 is A‾⋅B\overline{A} \cdot B, the AND before the output bubble; the NAND gate inverts it to 11011101.
  • (C) 01110111 is A⊕BA \oplus B, which an exclusive OR gate would give; the circuit has a NOT gate and a NAND gate, not an XOR gate.
  • (D) 10001000 is A⋅BA \cdot B, the plain AND of the inputs; it ignores both the NOT gate on AA and the output bubble.

Key takeaway

The trap. Overlooking the output bubble of the NAND gate, which leaves A‾B=0010\overline{A}B = 0010.

How toppers think. They use De Morgan's law to get A+B‾A + \overline{B} and read the answer off in seconds.

Remember. A‾⋅B‾=A+B‾\overline{\overline{A} \cdot B} = A + \overline{B}.

More on Semiconductors