Given : A and B are input terminals.
Logic 1 = > 5 V
Logic 0 = < 1 V
Which logic gate operation, the following circuit does ?

From the JEE Main 2014 · 19 Apr · Shift 1 paper. Try it, check your answer, then read the worked solution below.
Given : A and B are input terminals.
Logic 1 = > 5 V
Logic 0 = < 1 V
Which logic gate operation, the following circuit does ?

Try it yourself first, then check your working against this.
Worked solution
If either input is at logic 0, its diode is forward biased and pulls down to about the input level (low). Only when both inputs are high are both diodes reverse biased, and is pulled up to . Output high only for A = B = 1: an AND gate.
Concepts used: diode-resistor logic
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.