In the following circuit, the correct relation between output (Y) and inputs A and B will be :

From the JEE Main 2022 · 28 Jun · Shift 1 paper. Try it, check your answer, then read the worked solution below.
In the following circuit, the correct relation between output (Y) and inputs A and B will be :

Try it yourself first, then check your working against this.
Worked solution
Diode stage. With cathodes at the inputs and X pulled up, X is high only if both A and B are high: AND.
Transistor stage. A common-emitter switch inverts.
So (NAND).
(C)
Concepts used: diode AND plus inverter
Every past question tagged to the same part of the syllabus, with solutions.
Past questions on the same topic (Logic gates), each with a worked solution.
Timed, in the real format, and marked the moment you submit.