Find the truth table for the function of and represented in the following figure.
- Option A: Table A
- Option B: Table B
- Option C: Table C
- Option D: Table D
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 , a NOT gate gives and an OR gate adds its inputs. The sum of a variable's complement and a product containing the variable reduces:
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.
Approach. Write the output expression and evaluate it for each pair of inputs.
Step 1: Expression for the output
The AND gate gives and the NOT gate gives . The OR gate adds them:
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.
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. .
More on Semiconductors
- The output Y for the given inputs A and B to the circuit is:
- The maximum rated power of the LED is 2 mW and it is used in the circuit with input voltage of 5 V as shown…
- Refer to the logic circuit given below. For two inputs (A = 1, B = 1) and (A = 0, B = 1), output (Y) will be…
- All 145 on Semiconductors ›