The truth table of the given circuit diagram is:

From the JEE Main 2024 · 27 Jan · Shift 2 paper. Try it, check your answer, then read the worked solution below.
The truth table of the given circuit diagram is:

Try it yourself first, then check your working against this.
Worked solution
The upper AND gets A and , the lower AND gets and B, and they are ORed: (XOR). Y = 0, 1, 1, 0.
(B)
Concepts used: XOR from AND, OR, 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.