Boolean relation at the output stage-Y for the following circuit is :

From the JEE Main 2020 · 8 Jan · Shift 1 paper. Try it, check your answer, then read the worked solution below.
Boolean relation at the output stage-Y for the following circuit is :

Try it yourself first, then check your working against this.
Worked solution
Diode stage. The two diodes from switches A and B form an OR gate.
Transistor stage. It is a common-emitter switch, which inverts.
.
(D)
Concepts used: diode OR plus transistor NOT
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.