What is the action of the logic gates: AND, OR, NAND, NOR, NOT (inverter)

1 Answer | Add Yours

justaguide's profile pic

justaguide | College Teacher | (Level 2) Distinguished Educator

Posted on

A logic gate takes two or more inputs and produces a logic output. The input and output of logic gates is represented in the form of 1s and 0s.

For the AND operator the truth table is:

`[[i nput 1, i nput 2, output],[0,0,0],[0,1,0],[1,0,0],[1,1,1]]`

For the OR operator the truth table is:

`[[i nput 1, i nput 2, output],[0,0,0],[0,1,1],[1,0,1],[1,1,1]]`

The truth table of the NAND operator is:

`[[i nput 1, i nput 2, output],[0,0,1],[0,1,1],[1,0,1],[1,1,0]]`

The truth table of the NOR operator is:

`[[i nput 1, i nput 2, output],[0,0,1],[0,1,0],[1,0,0],[1,1,0]]`

The truth table of the NOT operator is:

`[[i nput, output],[0,1],[1,0]]`

Sources:

We’ve answered 318,915 questions. We can answer yours, too.

Ask a question