Identify the correct Logic Gate for the following output (Y) of two inputs A and B.

From the JEE Main 2022 · 27 Jun · Shift 1 paper. Try it, check your answer, then read the worked solution below.
Identify the correct Logic Gate for the following output (Y) of two inputs A and B.

Try it yourself first, then check your working against this.
Worked solution
Truth table from the waveforms. Y is 0 only when A and B are both 1: a NAND gate (AND followed by NOT).
(B)
Concepts used: truth table from waveforms
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.