The output voltage in the following circuit is
(Consider ideal diode case)

From the JEE Main 2025 · 8 Apr · Shift 2 paper. Try it, check your answer, then read the worked solution below.
The output voltage in the following circuit is
(Consider ideal diode case)

Try it yourself first, then check your working against this.
Worked solution
D₂ has its anode at the output node and its cathode at ground, so the +5 V supply through the resistor forward biases it; an ideal diode then holds the node at 0 V. D₁ has its cathode at +5 V and anode at 0 V, so it stays reverse biased. V.
(B)
Concepts used: ideal diode circuit
Every past question tagged to the same part of the syllabus, with solutions.
Past questions on the same topic (Semiconductors and p-n junction), each with a worked solution.
Timed, in the real format, and marked the moment you submit.