A truth table will need how many rows if there are n variables.

2023

A truth table will need how many rows if there are n variables.

  1. A.

    2*n

  2. B.

    n

  3. C.

    2n

  4. D.

    none of these

Attempted by 340 students.

Show answer & explanation

Correct answer: C

A truth table lists all possible combinations of truth values for the given variables. Since each variable can have 2 states (True or False), a table with n variables requires 2^n rows to cover every unique combination.

Explore the full course: Isro