In the circuit, the logical value of A = 1 or B = 1 when potential at A or B is 5 V and the logical value of A = 0 or B = 0 when potential at A or B is 0 V.
The truth table of the given circuit will be :

From the JEE Main 2022 · 25 Jul · Shift 1 paper. Try it, check your answer, then read the worked solution below.
In the circuit, the logical value of A = 1 or B = 1 when potential at A or B is 5 V and the logical value of A = 0 or B = 0 when potential at A or B is 0 V.
The truth table of the given circuit will be :

Try it yourself first, then check your working against this.
Worked solution
Diode AND gate. Y is high only when both inputs are high: Y = 0, 0, 0, 1.
(A)
Concepts used: diode AND gate
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.