Professional Documents
Culture Documents
1. Which of these sentences are propositions? What are the truth values of those that are proposition?
a) Malaysia is the biggest century in Asia.
b) 2 + 3 = 5.
c) Do not pass go.
d) 5 + 7 < 10
e) 4 + x = 5.
f) Polytechnic Ungku Omar is the Polytechnic Premier.
6. Construct a truth table for each of these compound propositions and determine whether these
compound propositions are a tautology.
a) (p → q) ↔ (¬q → ¬p)
b) (p ∧ q) ⨁ (p ∨ q)
c) (p → q) ∨ (¬p → r)
d) ¬(p ∨ ¬q) → ¬p
e) [(p → q) ∧ (q → r)] → (p → r)
7. Find the bitwise OR, bitwise AND, and bitwise XOR of each of these pairs of bit strings.
a) 101 1110, 010 0001
b) 1111 0000, 1010 1010
c) 00 0111 0001, 10 0100 1000
b)
c)
d)
1. Let P(x) be the statement “the word x contains the letter a”. What are the truth values?
a) P(Discrete)
b) P(Mathematics)
c) P(True)
d) P(False)
2. Let Q(x, y) denote the statement “x2 > y”. What are the truth values?
a) Q(1, 2)
b) Q(-3, 8)
c) Q(√2, 3)
3. Let P(x) be the statement “x likes subject mathematics,” where the domain for x consists of all
students. Express each of these quantifications in English.
a) ∃𝑥𝑃(𝑥) Some students like subject mathematics.
b) ∀𝑥𝑃(𝑥) All students like subject mathematics.
c) ∀𝑥¬𝑃(𝑥) All students don't like subject mathematics.
d) ∃𝑥¬𝑃(𝑥) Some students don't like subject mathematics.
4. Let Q(x) denote the statement “x + 1 = 2x”. If the universe of discourse is all integers, what are these
truth values?
a) Q(0)
b) Q(-1)
c) Q(1)
d) ∃𝑥𝑄(𝑥)
e) ∀𝑥𝑄(𝑥)
f) ¬∀𝑥𝑄(𝑥)
g) ∃x¬Q(x)
5. Let C(x, y) be the statement “x is a friend of y,” where the domain for x and y consists of all people.
Use quantifications to express each of the following statements.
a) Everyone is a friend of everyone.
b) Not everyone is a friend of someone.
c) Someone is not a friend of someone.
d) There is a friend of John.
e) Mary is not a friend of everyone.
6. Let P(x, y) be the statement “x dislike y”, where the domain for x is all students and the domain for y
consists of all subjects. Express each of these quantifications in English.
a) ∀x∃y P(x, y) All students dislike some subjects.
b) ∃x∃y ¬P(x, y) Some students like some subjects.
c) ¬∀x∀y P(x, y) Not all students dislike all subjects.
d) ∀x P(x, Mathematics) All students dislike Mathematics
e) ∃y ¬ P(Maria, y) Maria likes some subjects.
7. Let H(x) be the statement “x is hardworking”, N(x) be the statement “x is naughty” and C(x) be the
statement “ x is clever”, where the domain for x consists of all students. Use quantifications to
express each of the following statements.
a) Some students are clever but naughty.
b) Not all students are clever and hardworking.
c) Some students are clever, hardworking and not naughty.
d) All students are clever, or hardworking or naughty.
2. Explain the rules of inference used to show that the hypotheses lead to the desired conclusion.
a) “Cindy works hard.” If Cindy works hard, then she is a hardworking girl.” “If Cindy is a
hardworking girl, then she will get the job.” “Therefore, Cindy will get the job.”
b) “I am either lucky or clever.” “I am not lucky.” “If I am clever, then I will get a good result in
SPM.” “I will get a good result in SPM.”
c) “If Mary has free times, then she will go shopping.” “Mary buys a new skirt if she goes shopping.”
“Mary does not buy a new skirt.” “Therefore, Mary does not have free times.”