QlarIITy

PhysicsJEE Main 2026 · 28 JanuarySingle correct

Two p-n junction diodes D1D_1 and D2D_2 are connected as shown in figure. AA and BB are input signals and CC is the output. The given circuit will function as a ______.

Inputs A and B each joined through a diode to a common node, which a resistor R joins to a 5 V supply; the node is the output C
  1. Option A: AND Gate
  2. Option B: OR Gate
  3. Option C: NOR Gate
  4. Option D: NAND Gate
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. With cathodes facing the inputs and a pull-up resistor, any low input wins and drags the output low.

Concept refresher. An ideal diode conducts like a plain wire when its anode is at a higher potential than its cathode, and is an open switch otherwise.

Vanode>Vcathode⇒conductsV_{anode} > V_{cathode} \Rightarrow \text{conducts}

An AND gate gives Y=A⋅BY = A \cdot B: the output is 1 only when every input is 1.

Picture the situation. Both cathodes face the inputs and both anodes meet at the output node, which the resistor joins to 5 V5\ \text{V}. When an input is low, current flows from the supply through the resistor and that diode.

Diode circuit with input A low, showing current through R and D1 and the output held low

Approach. Check the output for the four combinations of inputs, then match the truth table with a gate.

  1. Step 1: One input low

    Take A=0 VA = 0\ \text{V}. The node is pulled up towards 5 V5\ \text{V}, so the anode of D1D_1 is above its cathode and D1D_1 conducts. The node, and so CC, is held near 0 V0\ \text{V}:

    A=0⇒C=0A = 0 \Rightarrow C = 0

    The same happens when B=0B = 0, whatever the other input is.

  2. Step 2: Both inputs high

    With A=B=5 VA = B = 5\ \text{V}, neither anode is above its cathode, so no current flows through RR. The output sits at the supply voltage:

    A=B=1⇒C=1A = B = 1 \Rightarrow C = 1
  3. Step 3: Name the gate

    The output is 1 only when both inputs are 1, so the truth table is that of an AND gate, C=A⋅BC = A \cdot B.

Answer. (A) AND Gate

Sanity check. Turning both diodes round and joining the resistor to ground instead would make any high input pull the output high, an OR gate; the direction of the diodes decides the gate.

Why the other options are wrong

  • (B) An OR gate needs a high output when one input is high, but with AA high and BB low the diode D2D_2 conducts and holds CC low.
  • (C) A NOR gate would give a high output when both inputs are low, but then both diodes conduct and CC is low; diodes alone also cannot invert.
  • (D) A NAND gate would give a low output only for both inputs high, but then both diodes are off and CC sits at 5 V5\ \text{V}, which is high.

Key takeaway

The trap. Calling every pair of diodes joined at one node an OR gate without looking at their direction.

How toppers think. They test the single input pattern that separates AND from OR, one input high and one low, and read the output.

Remember. Diodes from the inputs to a pull-up node give C=A⋅BC = A \cdot B; diodes towards a grounded resistor give C=A+BC = A + B.

More on Semiconductors