QlarIITy

PhysicsJEE Main 2026 · 23 JanuarySingle correct

For the given logic gate circuit, which of the following is the correct truth table?

Input n feeds a NAND gate directly and an OR gate through a branch; input m feeds the OR gate, whose output is the second NAND input; the NAND output is z
  1. Option A: (n,m,z)(n, m, z): (0,0,1)(0, 0, 1), (0,1,1)(0, 1, 1), (1,1,0)(1, 1, 0), (1,0,0)(1, 0, 0)
  2. Option B: (n,m,z)(n, m, z): (0,0,1)(0, 0, 1), (0,1,0)(0, 1, 0), (1,1,1)(1, 1, 1), (1,0,0)(1, 0, 0)
  3. Option C: (n,m,z)(n, m, z): (0,0,0)(0, 0, 0), (0,1,1)(0, 1, 1), (1,1,0)(1, 1, 0), (1,0,1)(1, 0, 1)
  4. Option D: (n,m,z)(n, m, z): (0,0,1)(0, 0, 1), (0,1,0)(0, 1, 0), (1,1,0)(1, 1, 0), (1,0,0)(1, 0, 0)
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. Write the output gate by gate, then simplify with Boolean rules before building the table.

Concept refresher. An OR gate gives n+mn + m; a NAND gate gives the inverse of AND, P⋅Q‾\overline{P \cdot Q}. Absorption in Boolean algebra says

n⋅(n+m)=nn \cdot (n + m) = n

because the product is 11 exactly when n=1n = 1.

Picture the situation. Working each row through the gates gives the table below.

Truth table of n, m, the OR output and z, where z is 1 when n is 0 and 0 when n is 1

Approach. Write the OR output, feed it with nn into the NAND gate, simplify, and compare with the four tables.

  1. Step 1: Gate outputs

    The OR gate receives nn (through the branch) and mm, and the NAND gate receives nn and the OR output, so

    z=n⋅(n+m)‾z = \overline{n \cdot (n + m)}
  2. Step 2: Simplify

    The product inside the bar can be simplified before any table is drawn. By absorption, n⋅(n+m)=n⋅n+n⋅m=n+nm=nn \cdot (n + m) = n \cdot n + n \cdot m = n + nm = n, so

    z=n‾z = \overline{n}
  3. Step 3: Fill the table

    zz is 11 whenever n=0n = 0 and 00 whenever n=1n = 1, whatever mm is: the rows are nmz=001n m z = 001, 011011, 110110 and 100100. This is table (A).

Answer. (A)

Sanity check. Check one row directly: for n=1n = 1, m=0m = 0, the OR gate gives 11, the NAND gate sees 11 and 11, and its output is 00, as in table (A).

Smart method. A NAND gate outputs 11 whenever any of its inputs is 00. With n=0n = 0 fed straight into it, z=1z = 1 for both values of mm; so the table must have z=1z = 1 in both rows with n=0n = 0. Tables (B), (C) and (D) each have a 00 in one of those rows, so only table (A) is left.

Why the other options are wrong

  • (B) This table has z=1z = 1 when nn and mm are equal, an XNOR gate; it gives z=0z = 0 for n=0,m=1n = 0, m = 1, where n⋅(n+m)=0n \cdot (n + m) = 0 makes the NAND output 11.
  • (C) This table has z=1z = 1 when nn and mm differ, an XOR gate; it gives z=0z = 0 for n=0,m=0n = 0, m = 0, where the NAND gate, with n=0n = 0 at one input, must output 11.
  • (D) This is z=n+m‾z = \overline{n + m}, a NOR of the inputs, which ignores the line taking nn straight to the NAND gate; for n=0,m=1n = 0, m = 1 the true output is 11.

Key takeaway

The trap. Missing the line that takes nn straight to the last gate.

How toppers think. They look for an input that decides a gate alone, such as a 00 into a NAND gate.

Remember. n⋅(n+m)=nn \cdot (n + m) = n, and a NAND gate outputs 11 if any input is 00.

More on Semiconductors