Truth tables

  • A truth table is a chart used to show all possible truth values of a logical expression.
  • It helps in understanding how logical operators (AND, OR, NOT) affect the result.

  • True (T) = 1
  • False (F) = 0

OperatorSymbolMeaning
NOT¬ or ~Reverses the truth value
ANDTrue only if both values are true
ORTrue if at least one is true

A. NOT (¬A)

A¬A
TF
FT

B. AND (A ∧ B)

ABA ∧ B
TTT
TFF
FTF
FFF

C. OR (A ∨ B)

ABA ∨ B
TTT
TFT
FTT
FFF

  • Step 1: List all possible combinations of truth values for variables (A, B, etc.)
  • Step 2: Apply logical operators step by step.
  • Step 3: Show the final result for each row.

  • They help visualize and verify logical expressions.
  • Useful in math, computer science, and digital circuits.
  • Helps determine if a statement is always true (tautology), always false (contradiction), or sometimes true (contingency).

ABA ∨ B¬A(A ∨ B) ∧ ¬A
TTTFF
TFTFF
FTTTT
FFFTF

Learn with an example

pqp∨q
TT
TF
FT
FFF
  • Fill in the third column. Determine if the value of either p or q is true.
pqp∨q
TTT
TFT
FTT
FFF
qrr∧q
TT
TFF
FT
FF
  • Fill in the third column. Determine if the values of both r and q are true.
qrr∧q
TTT
TFF
FTF
FFF
qrr∧q
TTT
TF
FT
FF
  • Fill in the third column. Determine if the values of both r and q are true.
qrr∧q
TTT
TFF
FTF
FFF

Let’s practice!🖊️

This image has an empty alt attribute; its file name is Worksheet-1-3-153.png