Boolean algebra operates on binary values: 1 (TRUE) and 0 (FALSE). Logic gates are the physical hardware implementations of Boolean operations. Every digital circuit — from a simple alarm to a CPU — is built from combinations of these fundamental gates.
Inverts the input. One input, one output. Symbol: ¬A or A̅ or NOT A
| A | NOT A (¬A) |
|---|---|
| 0 | 1 |
| 1 | 0 |
Output is 1 only when ALL inputs are 1. Symbol: A · B or A AND B
| A | B | A AND B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Output is 1 when AT LEAST ONE input is 1. Symbol: A + B or A OR B
| A | B | A OR B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
Output is 0 only when ALL inputs are 1 (inverse of AND). Symbol: ¬(A · B)
| A | B | A NAND B |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
NAND is universal — any logic gate (NOT, AND, OR, XOR, etc.) can be built from NAND gates alone. NAND gates are cheaper to manufacture.
Output is 1 only when ALL inputs are 0 (inverse of OR). Symbol: ¬(A + B)
| A | B | A NOR B |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 0 |
NOR is also universal — any logic function can be built from NOR gates alone.
Output is 1 when inputs are DIFFERENT. Symbol: A ⊕ B or A XOR B
| A | B | A XOR B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
Output is 1 when inputs are THE SAME (inverse of XOR). Symbol: ¬(A ⊕ B)
| A | B | A XNOR B |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
A truth table lists all possible input combinations and the corresponding output. For n inputs: 2ⁿ rows.
Example: Complete the truth table for X = (A AND B) OR (NOT C)
| A | B | C | A AND B | NOT C | X = (A AND B) OR (NOT C) |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 1 |
| 0 | 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 0 | 0 | 1 | 1 |
| 0 | 1 | 1 | 0 | 0 | 0 |
| 1 | 0 | 0 | 0 | 1 | 1 |
| 1 | 0 | 1 | 0 | 0 | 0 |
| 1 | 1 | 0 | 1 | 1 | 1 |
| 1 | 1 | 1 | 1 | 0 | 1 |
Method: Work left to right — compute each intermediate column before the final output. Evaluate brackets/NOT first, then AND, then OR.
| Gate | Symbol description | Boolean notation |
|---|---|---|
| NOT | Triangle with bubble at output | ¬A, A̅, NOT A |
| AND | Flat on left, curved D on right | A · B, A AND B |
| OR | Curved on both sides (like shield) | A + B, A OR B |
| NAND | AND symbol with bubble at output | ¬(A · B) |
| NOR | OR symbol with bubble at output | ¬(A + B) |
| XOR | OR symbol with extra curved line at input | A ⊕ B |
| XNOR | XOR symbol with bubble at output | ¬(A ⊕ B) |
8 questions · 20 marks · instantly marked
| Term | Definition |
|---|