The correct Boolean operation represented by the circuit diagram drawn is :
Answer: (C) NAND
Concept. Switches A and B are in series and connect the junction above the LED to earth. Position $1$ means closed. The LED glows (output $Y = 1$) whenever that junction is not shorted to earth.
Step 1. Only when both are closed. If $A = B = 1$, the series path is complete, the junction is at $0$ V and the LED gets no voltage: $Y = 0$.
Step 2. Any switch open. The path to earth is broken, current flows from $+6$ V through R, the LED and R: $Y = 1$.
Step 3. Truth table.
$$\begin{array}{|c|c|c|}\hline A & B & Y \\ \hline 0 & 0 & 1 \\ 0 & 1 & 1 \\ 1 & 0 & 1 \\ 1 & 1 & 0 \\ \hline\end{array}$$
$Y = \overline{A \cdot B}$, which is NAND.
Answer. NAND (Option C).
Solution by Sreeraj P, M.Sc Physics