A truth table will need how many rows if there are n variables.
- (A)
2 * n
- (B)
n
- (C)
2^n
- (D)
None of the above
A truth table will need how many rows if there are n variables.
2 * n
n
2^n
None of the above
ANSWER
A truth table on variables needs rows, option (c).
Official answer: C or DSource: ISRO's revised and final answer key of 16 February 2024
Each of the propositional variables can independently take one of two truth values, true or false.
A truth table lists every distinct assignment of values to the variables, one row per assignment.
By the multiplication rule, the number of assignments is ( factors) .
Check: gives 2 rows, gives 4 rows, gives 8 rows. The formula would give 2, 4, 6, so it fails at . The formula gives 1, 2, 3, so it fails already at .
So option (c), , is correct. Option (d) cannot be right because a correct option is listed.
KEY IDEA
Every variable doubles the number of possible assignments, so variables give rows.
WATCH OUT FOR
Writing or by extrapolating from the one-variable case, where 2 rows happen to equal . Test : there are 8 rows, not 6 or 3.
From the ISRO CS 2023 paper. Every question of this paper · The full paper (PDF, ISRO) · All 1 ISRO Mathematical logic question, with notes