PYQ Vault

NEET Physics · Semiconductor Electronics

Logic Gates

The five basic gates OR, AND, NOT, NAND and NOR with their truth tables, and how to reduce a circuit of gates to one expression, one truth table or one equivalent gate.

Why this matters

Eight NEET questions from 2021 to 2025, four of them from 2024, and none in the two 2026 papers. Six give a circuit of gates and ask for its output, its truth table or the single gate it equals; one of these, in 2021, gives the inputs as waveforms. One asks for the expression behind a truth table, and one for the gate made by an OR gate followed by a NOT gate.

Concept 1 of 3: The basic gates and their truth tables

A logic gate works with only two levels: high, written 1, and low, written 0. Each two-input gate has one input pair whose output is different from the other three. AND gives 1 only for (1, 1); OR gives 0 only for (0, 0). NAND and NOR are AND and OR with every output flipped. Learn those single rows and you can write any table in seconds.

Definition

  • OR: Y=A+BY = A + B. AND: Y=A⋅BY = A\cdot B. NOT: Y=A‾Y = \overline{A}, one input.
  • NAND is an AND gate followed by a NOT gate: Y=A⋅B‾Y = \overline{A\cdot B}.
  • NOR is an OR gate followed by a NOT gate: Y=A+B‾Y = \overline{A + B}.
  • NAND and NOR are called universal gates: OR, AND and NOT can all be built from NAND gates alone, or from NOR gates alone.
  • A truth table lists the output for every input combination: 4 rows for two inputs, 8 rows for three.
GateOutput YY for inputs 00, 01, 10, 11Y is 1 when
ORA+BA + B0, 1, 1, 1at least one input is 1
ANDA⋅BA\cdot B0, 0, 0, 1both inputs are 1
NOTA‾\overline{A}1 for A = 0, 0 for A = 1the input is 0
NANDA⋅B‾\overline{A\cdot B}1, 1, 1, 0at least one input is 0
NORA+B‾\overline{A + B}1, 0, 0, 0both inputs are 0Q
Re-NEET 2024: an OR gate whose output feeds a NOT gate acts as a NOR gate.
The one row that differs from the other three names each two-input gate.
Practise this conceptself-check · 4 quick reps

The same idea in a real exam question:

NEET · 2024 · Re-NEET (UG) 2024 — 23 Jun 2024 · Q29Easy

Example 1 · Semiconductor Electronics · Logic Gates

When the output of an OR gate is applied as input to a NOT gate, then the combination acts as a

NAND and NOR are easy to swap

NAND is the NOT of AND, so it is 0 only for (1, 1). NOR is the NOT of OR, so it is 1 only for (0, 0). Check the row that differs.

One row fits several gates

An output of 1 for inputs (0, 0) is true of both NAND and NOR. Use a second row, such as (0, 1), to tell them apart.

Concept 2 of 3: Reducing a circuit with Boolean algebra

Most gate questions draw three or four gates joined together and ask what the whole circuit does. Write the output of each gate in turn, from the inputs to the last gate, and you have one expression for Y. A few rules then shrink it, often to a single basic gate. If you can't see the rule, evaluate Y for each input row and read off the table instead.

Definition

  • Work from the inputs to the output, writing each gate's output in terms of A and B.
  • Rules: A+A‾=1A + \overline{A} = 1, A⋅A‾=0A\cdot\overline{A} = 0, A+1=1A + 1 = 1, A⋅1=AA\cdot 1 = A, A+A=AA + A = A, A⋅A=AA\cdot A = A, and A‾‾=A\overline{\overline{A}} = A.
  • De Morgan's theorems: A+B‾=A‾⋅B‾\overline{A + B} = \overline{A}\cdot\overline{B} and A⋅B‾=A‾+B‾\overline{A\cdot B} = \overline{A} + \overline{B}.
  • Two results worth knowing: NOT gates on both inputs of a NAND make an OR gate, A‾⋅B‾‾=A+B\overline{\overline{A}\cdot\overline{B}} = A + B; NOT gates on both inputs of a NOR make an AND gate, A‾+B‾‾=A⋅B\overline{\overline{A} + \overline{B}} = A\cdot B.
  • Reading a truth table: if Y does not change when A changes (with B held), Y does not depend on A.

De Morgan's theorems

A+B‾=A‾⋅B‾,A⋅B‾=A‾+B‾\overline{A + B} = \overline{A}\cdot\overline{B}, \qquad \overline{A\cdot B} = \overline{A} + \overline{B}

Worked example

A and B go into an AND gate. A also goes through a NOT gate. The AND output and A‾\overline{A} are the two inputs of an OR gate. Find Y and its truth table.
Practise this conceptself-check · 4 quick reps

The same idea in a real exam question:

NEET · 2024 · NEET (UG) 2024 — 05 May 2024 · Q1Moderate

Example 2 · Semiconductor Electronics · Logic Gates

A logic circuit provides the output YY as per the following truth table:
ABY
001
010
101
110
The expression for the output YY is:

Break a bar only with De Morgan

A+B‾\overline{A + B} is not A‾+B‾\overline{A} + \overline{B}. When the bar is split, the sign changes too: A+B‾=A‾⋅B‾\overline{A + B} = \overline{A}\cdot\overline{B}.

Invert the right input

A NOT gate on one input changes only that input. Writing A‾\overline{A} where the circuit inverts B gives a mirror-image table, and that table is usually one of the options.

Check one row in the original circuit

After simplifying, put one input pair through the circuit as drawn and compare. A slip in the algebra shows up at once.

Concept 3 of 3: Joined inputs and waveform inputs

Two set-ups come up again and again. A NAND or NOR gate with its two inputs joined together gets the same signal twice, and it simply inverts it, so it is a NOT gate in disguise. And when the inputs are drawn as waveforms, each stretch of time between changes is just one row of a truth table.

Definition

  • A NAND gate with its inputs joined: A⋅A‾=A‾\overline{A\cdot A} = \overline{A}. A NOR gate with its inputs joined: A+A‾=A‾\overline{A + A} = \overline{A}. Both act as NOT gates.
  • So a NAND followed by a NAND with joined inputs is an AND gate, and a NOR followed by a NOR with joined inputs is an OR gate.
  • Waveforms: a high level (such as 5 V) is 1 and 0 V is 0. Mark every instant where any input changes. In each interval read the inputs, find Y, then draw Y interval by interval.

Joined inputs

A⋅A‾=A‾,A+A‾=A‾\overline{A\cdot A} = \overline{A}, \qquad \overline{A + A} = \overline{A}

Worked example

The output of a NAND gate with inputs A and B is fed to both inputs of a second NAND gate. Which single gate does the pair make?
Practise this conceptself-check · 4 quick reps

The same idea in a real exam question:

NEET · 2024 · NEET (UG) 2024 — 05 May 2024 · Q26Moderate

Example 3 · Semiconductor Electronics · Logic Gates

The output (YY) of the given logic gate is similar to the output of an/a

Joined inputs make a NOT gate

A NAND or NOR gate with both inputs tied to the same signal inverts it. It does not pass the signal through unchanged.

Cut the time axis at every change

In a waveform question, an interval ends whenever any one input changes, not only when the first input changes. Missing a change merges two rows and gives a wrong output pulse.

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.

Formulas (2)

  • Reducing a circuit with Boolean algebra

    De Morgan's theorems

    A+B‾=A‾⋅B‾,A⋅B‾=A‾+B‾\overline{A + B} = \overline{A}\cdot\overline{B}, \qquad \overline{A\cdot B} = \overline{A} + \overline{B}
  • Joined inputs and waveform inputs

    Joined inputs

    A⋅A‾=A‾,A+A‾=A‾\overline{A\cdot A} = \overline{A}, \qquad \overline{A + A} = \overline{A}

Reference tables (1)

The basic gates and their truth tables5 rows
GateOutput YY for inputs 00, 01, 10, 11Y is 1 when
ORA+BA + B0, 1, 1, 1at least one input is 1
ANDA⋅BA\cdot B0, 0, 0, 1both inputs are 1
NOTA‾\overline{A}1 for A = 0, 0 for A = 1the input is 0
NANDA⋅B‾\overline{A\cdot B}1, 1, 1, 0at least one input is 0
NORA+B‾\overline{A + B}1, 0, 0, 0both inputs are 0Q
Re-NEET 2024: an OR gate whose output feeds a NOT gate acts as a NOR gate.
The one row that differs from the other three names each two-input gate.

Watch out for (7)

Test yourself on a real paper

Sit a past NEET paper, timed and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.

Sit a NEET past paper