Try it yourself · Class 12 Physics · Semiconductor Electronics
Logic gates: pick NOT, AND, OR, NAND, NOR or XOR and toggle inputs A and B
This simulation shows a logic gate with its symbol, its Boolean expression and its truth table. A gate takes inputs that are either 0 or 1 and gives one output . You choose the gate and set the inputs, and the row of the table that matches your inputs lights up.
Every output is computed from the Boolean expression shown. The row of the truth table that matches the inputs is lit.
The simulation needs JavaScript; everything it shows is explained below.
What to change
- Pick a gate: NOT, AND, OR, NAND, NOR or XOR. NOT has one input; the others have two.
- Press Toggle A and Toggle B to switch each input between 0 and 1.
What to watch
- AND gives 1 only when both inputs are 1; OR gives 1 when either input is 1.
- NAND and NOR are AND and OR followed by NOT, so every output in their tables is flipped.
- XOR gives 1 only when the inputs differ, which is .
- With A and B equal, a NAND gate gives the opposite of A: joining its two inputs turns it into a NOT gate.
The formula
A dot means AND, a plus sign means OR and a bar means NOT. NAND is and NOR is .
Try these questions
Work each one out with the simulation, tap to see the answer, then try the chapter quiz.
-
Our question
The two inputs of a NAND gate are joined together and a single signal is applied to them. The gate then behaves as a- NOT gate
- AND gate
- OR gate
- NOR gate
Show the answer
(A) NOT gate -
CBSE
An X-OR gate has the following truth table:(A, B) = (0,0) gives 0; (0,1) gives 1; (1,0) gives 1; (1,1) gives 0.
Logic relation:
Build this gate using AND, OR and NOT gates.Show the answer
Two NOT gates give , ; two AND gates give and ; an OR gate combines them: . -
JEE Main 2021
Given below are two statements :Statement I : A two input OR gate and a two input AND gate have similar inputs. but outputs may be same or different.
Statement II : An AND gate has inputs A and B. The input B is always low, the state of input A can effect the output.
In the light of the above statements, choose the correct answer from the options given below :
- Both Statement I and Statement II are true.
- Both Statement I and Statement II are false.
- Statement I is true but Statement II is false.
- Statement I is false but Statement II is true.
Show the answer
(C) Statement I is true but Statement II is false.
