AND, OR and NOT Gates with Truth Tables

Physics · Semiconductor Electronics : Materials, Devices And Simple Circuits · NEET

A logic gate takes 1 or 0 inputs and gives one output. AND gives 1 only when ALL inputs are 1 (Y = A.B). OR gives 1 when ANY input is 1 (Y = A+B). NOT flips the input (Y = A-bar). Memory hook: AND is strict "all must agree", OR is generous "one is enough", NOT is the "opposite" button.
Three Basic Logic Gates and Their Truth TablesANDY = A.B1 only if ALL 100-0 01-010-0 11-1ORY = A+B1 if ANY 100-0 01-110-1 11-1NOTY = A-barflips input0 - 11 - 0
The three basic gates: AND outputs 1 only when all inputs are 1, OR outputs 1 when any input is 1, and NOT flips a single input. The small bubble on the NOT gate means inversion.

Your doubts, answered

When does an AND gate give output 1?

An AND gate gives Y = 1 only when every input is 1. If even one input is 0, the output is 0. Rule: Y = A.B, and the dot acts like multiplication (0.anything = 0, 1.1 = 1). Truth table for inputs (A B): 00 to 0, 01 to 0, 10 to 0, 11 to 1. So out of 4 rows, only the last is 1.

When does an OR gate give output 1?

An OR gate gives Y = 1 when at least one input is 1. It is 0 only when all inputs are 0. Rule: Y = A+B, but this plus is logical OR, not normal addition: 1+1 = 1 (not 2). Truth table (A B): 00 to 0, 01 to 1, 10 to 1, 11 to 1. Only the first row is 0.

What does the NOT gate do?

A NOT gate (inverter) has only ONE input. It simply flips the value: input 0 gives output 1, input 1 gives output 0. It is written Y = A-bar (A with a bar on top). The small bubble (circle) on a symbol always means inversion.

Is the AND gate the same as multiplication and OR the same as addition?

Almost. AND behaves exactly like multiplication of 0s and 1s: 0.0=0, 0.1=0, 1.1=1. OR behaves like addition EXCEPT 1+1 = 1 (there is no 2 in Boolean logic, outputs are only 0 or 1). This is the one place beginners slip: 1 OR 1 stays 1.

How do I read a truth table quickly?

List all input combinations (2 inputs give 4 rows: 00, 01, 10, 11). Then apply the gate rule to each row. For AND look for the single 1 (bottom row). For OR look for the single 0 (top row). If the output column is exactly the opposite of a known gate, a NOT (bubble) is involved.

⚠️ The NEET trap
Reading Y = A + B for an OR gate as ordinary addition, so 1 + 1 = 2.
In Boolean logic the plus sign means OR, and 1 + 1 = 1. Outputs can only ever be 0 or 1, never 2.
🧠 OR gate: '+' is a switch, not a sum. One 1 is enough, extra 1s change nothing.

Real NEET questions

2024

A logic circuit gives the output Y as per the truth table: for inputs (A B) = 00 Y=1, 01 Y=0, 10 Y=1, 11 Y=0. The expression for the output Y is:

A · A-bar.B + A
B · B-bar
C · B
D · A.B-bar + A
Solution: Step 1: Look only at how Y depends on each input. Compare Y with A: when A=0,B=0 Y=1; when A=1,B=0 Y=1. So changing A does not change Y. Y is independent of A. Step 2: Compare Y with B: when B=0 (rows 00 and 10) Y=1; when B=1 (rows 01 and 11) Y=0. So Y is always the opposite of B. Step 3: Opposite of B is written B-bar. Therefore Y = B-bar, which is option B (a NOT gate acting on input B).
2019

An output Y (an LED) is driven so that it glows (logic 1) when either input A or input B is 1, and stays off (logic 0) only when both A and B are 0. The Boolean operation represented is:

A · AND
B · OR
C · NAND
D · NOR
Solution: Step 1: Y = 1 when any input is 1. That is the definition of the OR operation, Y = A + B. Step 2: Check the off case: Y = 0 only when A = 0 and B = 0, matching the OR truth table (00 to 0; 01, 10, 11 to 1). Step 3: AND would need both inputs 1, NAND and NOR would invert the output, so they do not fit. Answer: OR gate, option B.

Solved Semiconductor Electronics : Materials, Devices And Simple Circuits NEET PYQs

Try the real previous-year questions from this chapter — each with the answer and a full solution.

See all 34 Semiconductor Electronics : Materials, Devices And Simple Circuits NEET PYQs ›
Next concept: NAND and NOR Gates as Universal GatesKeep learning — 2 minFeeling ready? Solve the Semiconductor Electronics : Materials, Devices And Simple Circuits NEET PYQs ›Or practice on your phone — get the free MedicNEET app ›

Frequently asked

How many rows does a two-input truth table have?

Four. With n inputs there are 2^n rows because each input can be 0 or 1. Two inputs give 2^2 = 4 rows: 00, 01, 10, 11. Three inputs would give 8 rows.

What are the symbols for AND, OR and NOT gates?

AND is a flat-back D shape. OR is a curved-back shield shape with a pointed nose. NOT is a triangle with a small circle (bubble) at its tip. The bubble always means inversion.

What is the Boolean expression for each gate?

AND: Y = A.B. OR: Y = A + B. NOT: Y = A-bar. Here the dot means AND, the plus means OR, and the bar on top means NOT (inversion).

Which gate has only one input?

The NOT gate. AND and OR need at least two inputs to combine, but NOT works on a single input and just reverses it (0 becomes 1, 1 becomes 0).

Why are logic gates important for NEET?

NEET asks 1 question almost every year from Semiconductor Electronics on gates: identifying a gate from a circuit, completing a truth table, or writing the Boolean output. Knowing the three basic gates plus NAND and NOR covers all of them.