JEE Mains Physics · Semiconductor Electronics
Logic Gates: Truth Tables, Waveforms and Input Conditions
Reduce the network to one expression for Y, then evaluate it: for every input row of a truth table, for every interval of a waveform, or backwards, for the inputs that give a required output.
Why this matters
Thirty-two PYQs, every one multiple choice, and eight from 2026: the largest page in the chapter and the one asked most recently. Sixteen ask for the truth table or the output of a drawn network. Eight ask which inputs make an LED or bulb glow, or make the output go low. Eight give the inputs as waveforms and ask for the output waveform, or for the gate that made it. All of them are the same skill applied three ways, so one careful method is worth more than any shortcut.
Concept 1 of 3: Truth tables of the basic gates
Definition
- For a network, write Y gate by gate, simplify, then evaluate it for every input row.
- Read the row order the options use before matching. (0,0), (0,1), (1,1), (1,0) is a common order, not only (0,0), (0,1), (1,0), (1,1).
- One row is rarely enough: (0,0) → 1 fits NAND, NOR and XNOR alike. Check a second row.
- Multi-bit inputs, such as two 4-bit numbers, are evaluated bit by bit, place by place.
| Gate | Output Y | Y for (0,0), (0,1), (1,0), (1,1) | Y is 1 when |
|---|---|---|---|
| AND | 0, 0, 0, 1 | both inputs are 1 | |
| OR | 0, 1, 1, 1 | at least one input is 1 | |
| NOT | 1 for A = 0; 0 for A = 1 | the input is 0 | |
| NAND | 1, 1, 1, 0 | at least one input is 0 | |
| NOR | 1, 0, 0, 0 | both inputs are 0 | |
| XOR | 0, 1, 1, 0 | the inputs differ | |
| XNOR | 1, 0, 0, 1 | the inputs are equal |
Practice this conceptself-check · 4 quick reps
The same idea in a real exam question:
Example 1 · Semiconductor Electronics · Logic Gates: Truth Tables, Waveforms and Input Conditions
Check the row order
One row fits several gates
Invert the right input
Concept 2 of 3: Finding the inputs that give a required output
Definition
- Write the expression for every output the question names: Y, or the outputs driving each LED.
- An AND gate's output is 1 only if all its inputs are 1; an OR gate's output is 0 only if all its inputs are 0. A NAND output is 0 only if all its inputs are 1; a NOR output is 1 only if all its inputs are 0.
- An LED from a gate output to earth glows when that output is 1. An LED between two outputs glows only when its anode side is 1 and its cathode side is 0.
- A wire from an input can run to a later gate as well. Trace every wire from each input before writing the expression.
- An input that does not appear in the simplified expression is free: either value works.
Worked example
Practice this conceptself-check · 4 quick reps
The same idea in a real exam question:
Example 2 · Semiconductor Electronics · Logic Gates: Truth Tables, Waveforms and Input Conditions
Trace every wire from each input
An LED between two outputs needs a difference
Do not over-constrain a free input
Concept 3 of 3: Output waveforms of a gate network
Definition
- Reduce the network to one expression for Y first.
- Mark every instant where either input switches. Between two marks, A and B are constant.
- Evaluate Y for each interval and draw it. Y can change only at an input edge.
- The reverse question gives A, B and Y: read the triple (A, B, Y) in each interval and match the rows to a gate's truth table.
Worked example
Practice this conceptself-check · 4 quick reps
The same idea in a real exam question:
Example 3 · Semiconductor Electronics · Logic Gates: Truth Tables, Waveforms and Input Conditions
Mark the edges of both inputs
Reduce first, then read the waveforms
Name the gate from all the intervals
Summary — formulas & gotchas at a glance
A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.
Reference tables (1)
Truth tables of the basic gates7 rows
| Gate | Output Y | Y for (0,0), (0,1), (1,0), (1,1) | Y is 1 when |
|---|---|---|---|
| AND | 0, 0, 0, 1 | both inputs are 1 | |
| OR | 0, 1, 1, 1 | at least one input is 1 | |
| NOT | 1 for A = 0; 0 for A = 1 | the input is 0 | |
| NAND | 1, 1, 1, 0 | at least one input is 0 | |
| NOR | 1, 0, 0, 0 | both inputs are 0 | |
| XOR | 0, 1, 1, 0 | the inputs differ | |
| XNOR | 1, 0, 0, 1 | the inputs are equal |
Watch out for (9)
- Check the row order→ Truth tables of the basic gates
- One row fits several gates→ Truth tables of the basic gates
- Invert the right input→ Truth tables of the basic gates
- Trace every wire from each input→ Finding the inputs that give a required output
- An LED between two outputs needs a difference→ Finding the inputs that give a required output
- Do not over-constrain a free input→ Finding the inputs that give a required output
- Mark the edges of both inputs→ Output waveforms of a gate network
- Reduce first, then read the waveforms→ Output waveforms of a gate network
- Name the gate from all the intervals→ Output waveforms of a gate network
Test yourself on Semiconductor Electronics
20 past JEE Mains questions from this chapter, timed at 48 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.