Answer: B. Applying Y = ¬(A·B) to all four rows gives Y = 0 only for A = 1, B = 1, so exactly one combination yields 0, consistent with the NAND table on NCERT Class 12 Physics, Chapter 14, page 340.
Why A is wrong: A is wrong because a gate whose output is never 0 would be a constant-1 source, not a NAND; the row A = 1, B = 1 does give 0.
Why C is wrong: C is wrong because two zero-rows corresponds to XOR, which outputs 0 for A = B = 0 and for A = B = 1.
Why D is wrong: D is wrong because three zero-rows is the AND gate's count — this is the answer obtained when the NAND's output bubble is missed and the table is written for AND (trap: gate symbol misread).