Logic & truth tables
Math · Discrete Math
Question 1 of 10
0The value of F ∨ F is:
Stuck? Read the explanation
Unlocks at a streak of 5 correct answers in a row.
Embed this practice on your site or class page
Paste this HTML into your page. Students practise right there; it is free and needs no account.
Logic & truth tables explained
A truth table lists every possible combination of true (T) and false (F) values for the parts of a logical statement, then shows whether the whole statement is true for each combination. It is a systematic way to check when a statement holds.
The basic connectives are:
- AND: true only when both parts are true.
- OR: true when at least one part is true. In logic, OR includes the case where both parts are true.
- NOT: reverses the value.
- Implication (if p then q): false only when p is true and q is false.
With two statements there are rows, and with three there are . Each extra statement doubles the number of rows.
Worked example
Build a truth table for NOT (p AND q), then compare it with (NOT p) AND (NOT q).
The rows, in order, are (p, q) = (T, T), (T, F), (F, T) and (F, F).
- p AND q gives T, F, F, F.
- NOT (p AND q) gives F, T, T, T.
- NOT p gives F, F, T, T, and NOT q gives F, T, F, T.
- (NOT p) AND (NOT q) gives F, F, F, T.
The two results differ in rows 2 and 3, so the statements are not equivalent.
A common mistake is applying NOT to each part without changing the connective. NOT (p AND q) is not (NOT p) AND (NOT q). The correct rule, De Morgan's law, gives (NOT p) OR (NOT q).
What you will practise
100 multiple-choice questions (Easy, Medium, Hard). Each answer is followed by an explanation.
Example questions
- The statement p AND q is true when:
- The statement p OR q is false when:
- The implication p → q is false only when:
- NOT p is true when p is:
- Two statements are logically equivalent when:
- Which one of these statements is logically equivalent to p ⊕ q?
- Which one of these statements is logically equivalent to p → q?
- Suppose p is True and q is True. Which one of these statements is true?
…and 92 more.