Exam practice
Every question from the end of every unit, with hints and answers to open. After you check an answer, mark how you did, and come back to the ones you didn’t get.
5 questions
Unit 1 · Logic and Set
Printable PDFs
- Study notes 2 pages
- Worksheet 4 pages Answer key
- Harder practice questions 1 page Answer key
Short questions
p: “Pokhara is in Gandaki Province” and q: “”.
- a.Write and in words. (2 marks)
- b.Find the truth value of each. (1 mark)
- c.Construct the truth table of . What kind of statement is it? (2 marks)
Hint
b. Work out first. c. Make a column for each side, then compare them row by row.
Answer
- a.: “If Pokhara is in Gandaki Province, then .” : “Pokhara is not in Gandaki Province, or .”
- b.p is T and q is F (). is T → T, true; is F ∨ F, false.
c.
| p | q | |||
|---|---|---|---|---|
| T | T | F | F | T |
| T | F | T | T | T |
| F | T | T | T | T |
| F | F | T | T | T |
True in every row: a tautology (De Morgan’s law).
Using truth tables, prove that
- a.; (3 marks)
- b.p → q and its converse are not equivalent. (2 marks)
Hint
b. One row where the two columns differ is enough.
Answer
a.
| p | q | p → q | q → p | ||
|---|---|---|---|---|---|
| T | T | T | T | T | T |
| T | F | F | T | F | F |
| F | T | T | F | F | F |
| F | F | T | T | T | T |
The last two columns agree in every row. ✓
b. The columns of p → q (T, F, T, T) and q → p (T, T, F, T) differ in rows 2 and 3, so they are not equivalent. For example, “if x = 2 then ” is true, its converse “if then x = 2” false (x = −2).
Show that is a tautology. (5 marks)
Hint
Eight rows. Or argue: the whole is false only if p → r is false, so p is T and r F; what does that force?
Answer
| p | q | r | p → q | q → r | p → r | whole | |
|---|---|---|---|---|---|---|---|
| T | T | T | T | T | T | T | T |
| T | T | F | T | F | F | F | T |
| T | F | T | F | T | F | T | T |
| T | F | F | F | T | F | F | T |
| F | T | T | T | T | T | T | T |
| F | T | F | T | F | F | T | T |
| F | F | T | T | T | T | T | T |
| F | F | F | T | T | T | T | T |
True in every row: a tautology. ✓
What it means: “if p then q, and if q then r; so if p then r” is always valid, the chain rule of reasoning (hypothetical syllogism). A long proof is a chain of such links.
For any sets A, B and C, prove that
- a.A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C); (3 marks)
- b.A − (A − B) = A ∩ B. (2 marks)
Hint
Start from “x is in the left side”, write what each operation means as and, or, not, and use the matching law of logic at each step.
Answer
a. or (x ∈ B and x ∈ C) (union, intersection)
(x ∈ A or x ∈ B) and (x ∈ A or x ∈ C) ()
and . ✓
b. and x ∉ A − B (difference)
and not (x ∈ A and x ∉ B) (difference again)
and (x ∉ A or x ∈ B) (De Morgan, double negation)
(x ∈ A and x ∉ A) or (x ∈ A and x ∈ B) (distributive)
and x ∈ B (the first part can never hold) . ✓
Long question
- a.Using the laws of logic, not a truth table, show that , naming the law at each step. (4 marks)
- b.Prove that A ∩ B = A ∪ B, and show it with Venn diagrams. (4 marks)
Hint
a. Work on the inside first: the distributive law turns into something with in it.
Answer
a. (distributive)
(complement: is always true)
(identity).
So (De Morgan). ✓
What it means: “p, or else not p but q” says no more than “p or q”. The same steps with sets prove A ∪ (A ∩ B) = A ∪ B.
b. (complement)
not (x ∈ A and x ∈ B) (intersection)
or x ∉ B (De Morgan’s law of logic)
or . ✓
