The diode D C at the collector-base junction is forward biased. When both the inputs A and B are high, both the diodes at the emitter-base junction will be reverse biased. The same operation will take place as explained above. When any one input, either A or B is low, the diode with low input will be forward biased. Since Q 3 is an emitter follower, the output at the terminal will also be HIGH, which is at logic 1. With Q 2 open, the transistor Q 4 will also cut off. The supply voltage gets dropped in the resistor R 1 and it will not be sufficient to turn ON the transistor Q 2. So the current due to the supply voltage +V CC = 5 V will go to the ground through R 1 and the two diodes D A and D B. When both inputs A and B are low, both the diodes are forward biased. Diode D C represents the collector-base junction of transistor Q 2.
In the figure, diodes, D A and D B represent the 2-input emitter junction of transistor Q 1.