Logic circuits
How many rows does the truth table of a 3-input logic circuit have?
- A6
- B9
- C8
Show answer and explanation
Answer: C. 8
Each input is either 0 or 1, so three inputs have 2³ = 8 combinations and the truth table has eight rows. With n inputs it grows exponentially to 2ⁿ rows; a 32-bit adder (64 inputs) would need 2⁶⁴ rows, which is impractical. Large circuits are therefore built from small blocks and described and verified with Boolean expressions or HDL.
- A. 6 is 3 × 2, which is not how combinations are counted.
- B. 9 is 3², not the number of combinations of binary inputs.
- C. Correct. 2³ = 8 rows.