QlarIITy

PhysicsJEE Main 2021 · 27 JulySingle correct

Find the truth table for the function YY of AA and BB represented in the following figure.

A logic circuit: inputs A and B feed an AND gate. Input B also passes through a NOT gate. The output of the AND gate and the inverted B are the two inputs of an OR gate, whose output is Y.
  1. Option A: Table A
    Truth table with columns A, B, Y: A = 0 B = 0 gives Y = 0, A = 0 B = 1 gives Y = 1, A = 1 B = 0 gives Y = 0, A = 1 B = 1 gives Y = 0.
  2. Option B: Table B
    Truth table with columns A, B, Y: A = 0 B = 0 gives Y = 1, A = 0 B = 1 gives Y = 0, A = 1 B = 0 gives Y = 1, A = 1 B = 1 gives Y = 1.
  3. Option C: Table C
    Truth table with columns A, B, Y: A = 0 B = 0 gives Y = 0, A = 0 B = 1 gives Y = 0, A = 1 B = 0 gives Y = 0, A = 1 B = 1 gives Y = 1.
  4. Option D: Table D
    Truth table with columns A, B, Y: A = 0 B = 0 gives Y = 0, A = 0 B = 1 gives Y = 1, A = 1 B = 0 gives Y = 1, A = 1 B = 1 gives Y = 1.
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. Write the expression gate by gate; here it reduces to A OR NOT-B, which is 0 for one row only.

Concept refresher. An AND gate gives ABAB, a NOT gate gives B‾\overline{B} and an OR gate adds its inputs. The sum of a variable's complement and a product containing the variable reduces:

B‾+AB=B‾+A\overline{B} + AB = \overline{B} + A

An OR output is 0 only when every term is 0.

Picture the situation. The OR gate is fed by two signals: A-and-B from above, and NOT-B from below. Whenever B is 0 the lower signal is 1 and so is the output. When B is 1 the lower signal is 0 and the output just follows A.

A truth table with the columns A, B, A and B, not B and Y: for the inputs 00, 01, 10 and 11 the output Y is 1, 0, 1 and 1.

Approach. Write the output expression and evaluate it for each pair of inputs.

  1. Step 1: Expression for the output

    The AND gate gives ABAB and the NOT gate gives B‾\overline{B}. The OR gate adds them:

    Y=AB+B‾=A+B‾Y = AB + \overline{B} = A + \overline{B}
  2. Step 2: The four rows

    The output is 0 only for A = 0, B = 1. For the inputs 00, 01, 10 and 11 the outputs are 1, 0, 1 and 1.

  3. Step 3: Matching

    This column of outputs is the one in Table B.

Answer. (B) Table B

Sanity check. Check the row 00: the NOT gate gives 1, so the OR gate gives 1, as Table B says.

Why the other options are wrong

  • (A) Its outputs 0, 1, 0, 0 are the inverse of what the circuit gives: the OR gate gives 1 whenever B is 0 or both inputs are 1.
  • (C) Its outputs 0, 0, 0, 1 are those of the AND gate alone, leaving out the inverted B.
  • (D) Its outputs 0, 1, 1, 1 are those of an OR gate fed with A and B directly; here B is inverted before the OR gate.

Key takeaway

The trap. A small inverter on one line changes three of the four rows.

How toppers think. They find the single row in which the OR output is 0 and fill the rest with 1.

Remember. AB+B‾=A+B‾AB + \overline{B} = A + \overline{B}.

More on Semiconductors