The Lumenary · Grades 9–12
Propositional logic and truth tables
Name: ______________________
Date: ______________________
You will learn to
- Build truth tables for compound statements and classify formulas as tautologies, contradictions or contingent
- Test logical equivalence with truth tables, and prove De Morgan's laws and
- Distinguish an implication from its converse, inverse and contrapositive, and explain why only the contrapositive is equivalent to it
- Negate compound and quantified statements, including implications
- Recognise valid argument forms such as modus ponens and modus tollens, and the fallacy of affirming the consequent
- 1.
Is the statement “If is even, then is divisible by ” true or false?
- A.True
- B.False, because is not divisible by
- C.Neither: it is meaningless because is odd
- 2.
Which statement is the contrapositive of “If a shape is a square, then it is a rectangle”?
- A.If a shape is not a rectangle, then it is not a square.
- B.If a shape is a rectangle, then it is a square.
- C.If a shape is not a square, then it is not a rectangle.
- D.A shape is a square and it is not a rectangle.
- 3.
Which statement is the negation of “If it is a public holiday, then the bakery is closed”?
- A.It is a public holiday and the bakery is open.
- B.If it is a public holiday, then the bakery is open.
- C.If it is not a public holiday, then the bakery is open.
- D.It is not a public holiday and the bakery is open.
- 4.
What is the negation of “Amara speaks Hausa and Yoruba”?
- A.Amara does not speak Hausa or she does not speak Yoruba.
- B.Amara speaks neither Hausa nor Yoruba.
- C.Amara speaks exactly one of Hausa and Yoruba.
- 5.
How many rows does the truth table of have?
- 6.
Which of these formulas are tautologies? (Choose all that apply.)
- A.
- B.
- C.
- D.
- E.
- 7.
Each card has a letter on one side and a whole number on the other. You see E, M, 6 and 3. Rule: “If a card has a vowel on one side, then it has an even number on the other.” Which cards must you turn over to check the rule? (Choose all that apply.)
- A.E
- B.M
- C.6
- D.3
- 8.
Which statement is the negation of “Every whole number divisible by is divisible by ”?
- A.Some whole number is divisible by but not by .
- B.Every whole number divisible by is not divisible by .
- C.Every whole number divisible by is divisible by .
- D.No whole number divisible by is divisible by .
- 9.
Which Lean statement says that a conditional is equivalent to its contrapositive (for all propositions
pandq)?- A.
(p → q) ↔ (¬q → ¬p) - B.
(p → q) ↔ (q → p) - C.
(p → q) ↔ (¬p → ¬q) - D.
¬(p → q) ↔ (p ∧ q)
- A.
- 10.
Write
is_tautology(f, n), which returnsTrueexactly when the Python functionfofnboolean arguments returnsTruefor every combination of arguments. Then writeequivalent(f, g, n)using it. (Hint:itertools.product([True, False], repeat=n)lists all rows.)Computational — Practice