The output for the given inputs and to the circuit is :

From the JEE Main 2026 · 8 Apr · Shift 2 paper. Try it, check your answer, then read the worked solution below.
The output for the given inputs and to the circuit is :

Try it yourself first, then check your working against this.
Worked solution
Circuit. .
Waveform. B is 1 from 0 to 2 s, 0 from 2 to 3 s, then 1 again; that is graph (B).
(B)
Concepts used: AB + ĀB = B
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.