How many rows are there in a truth table having 'n' variables?
Show answerHide answer
Correct answer: (D) 2ⁿ
Explanation
Each of the n variables can be 0 or 1, giving 2ⁿ input combinations, so the truth table has 2ⁿ rows.
Correct answer: (D) 2ⁿ
Explanation
Each of the n variables can be 0 or 1, giving 2ⁿ input combinations, so the truth table has 2ⁿ rows.
This is question 28 of DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.