Discrete Math HW 1
Discrete Math HW 1
Homework #1
26.05.2025
4. A compound proposition (p ∧ q) → p is
A. Tautology
B. Contradiction
C. Contingency
D. Equivalent
1
5. Let p be a proposition. Then p ∨ ¬p is logically equivalent to
A. True
B. False
C. p
D. q
6. Express the statement “Every student in your class has taken a course in
computer”. Let P (x) be “x has taken a course in computer”, where the
domain of x is the set of students in your class.
A. ∀xP (x)
B. ∃xP (x)
C. ∀x¬P (x)
D. P (x)
7. Find the output of the following combinatorial circuit.
A. ¬(p ∧ q)
B. ¬p ∧ ¬q
C. ¬(p ∨ q)
D. p ∧ q
a) ¬p ∨ ¬q
b) ¬(p ∨ p ∧ q)
c) (¬p ∧ q) ∨ p
d) ¬p ∧ (p ∨ ¬q)
2
9. Let p be a proposition and T stands for True. Then p ∨ T is logically
equivalent to
A. True
B. False
C. p
D. q
10. If p is true and q is false, then p ⊕ q is
a) False
b) True
c) Neither true nor false
d) Both true and false
11. Let p and q be the propositions:
p: The automated reply can be sent.
q: The file system is full.
Express the following statement using p and q and logical connectives:
“The automated reply cannot be sent when the file system is full.”
a) p → q
b) q → ¬p
c) q → p
d) p → ¬q
12. Let p be a proposition and F stands for False, then p ∨ F is logically
equivalent to
a) True
b) False
c) p
d) q
3
14. Let p and q be two propositions, then p → q is logically equivalent to
a) p ∨ q
b) p ∧ q
c) ¬p ∨ q
d) q → p
15. Express the statement “Every student in UCAS has an email”. Where
P (x) is “x in UCAS”, F (x) is “x has an email”. The domain of x is the
set of all students in Palestine.
a) ∀xF (x)
b) ∀xP (x)
c) ∀x(P (x) ∧ F (x))
d) ∀x(P (x) → F (x))
16. True or False
# Statement T F
(a) ¬q
(b) p ∧ q
(c) ¬p ∨ q
4
(d) p → ¬q
(e) ¬q → p
(f) ¬p → ¬q
(a) You get an A in this class, but you do not do every exercise in this
book.
(b) You get an A on the final, you do every exercise in this book, and
you get an A in this class.
(c) To get an A in this class, it is necessary for you to get an A on the
final.
(d) You get an A on the final, but you don’t do every exercise in this
book; nevertheless, you get an A in this class.
(e) Getting an A on the final and doing every exercise in this book is
sufficient for getting an A in this class.
(f) You will get an A in this class if and only if you either do every
exercise in this book or you get an A on the final.
(a) The user has paid the subscription fee, but does not enter a valid
password.
(b) Access is granted whenever the user has paid the subscription fee and
enters a valid password.
(c) Access is denied if the user has not paid the subscription fee.
(d) If the user has not entered a valid password but has paid the sub-
scription fee, then access is granted.
5
20. Show that each of these conditional statements is a tautology by using
truth tables:
(a) (p ∧ q) → p
(b) p → (p ∨ q)
(c) ¬p → (p → q)
(d) (p ∧ q) → (p → q)
(a) p ∨ (p ∧ q) ≡ p
(b) p ∧ (p ∨ q) ≡ p
22. Use De Morgan’s laws to find the negation of each of the following state-
ments:
23. Let C(x) be the statement “x has a cat,” let D(x) be the statement “x
has a dog,” and let F (x) be the statement “x has a ferret.” Express each
of these statements in terms of C(x), D(x), F (x), quantifiers, and logical
connectives. Let the domain consist of all students in your class.
24. Let P (x) be the statement “x = x2 .” If the domain consists of the integers,
what are these truth values?
(a) P (0)
(b) P (1)
(c) P (2)
(d) P (−1)
(e) ∃xP (x)
(f) ∀xP (x)
6
25. Determine the truth value of each of these statements if the domain con-
sists of all real numbers.
26. Translate each of these statements into logical expressions using predi-
cates, quantifiers, and logical connectives.
28. Let M (x, y) be “x has sent y an e-mail message” and T (x, y) be “x has
telephoned y,” where the domain consists of all students in your class.
Use quantifiers to express each of these statements.
7
29. Let Q(x, y) be the statement “x + y = x − y.” If the domain for both
variables consists of all integers, what are the truth values?
(a) Q(1, 1)
(b) Q(2, 0)
(c) ∀yQ(1, y)
(d) ∃xQ(x, 2)
(e) ∃x∃yQ(x, y)
(f) ∀x∃yQ(x, y)
(g) ∃y∀xQ(x, y)
(h) ∀y∃xQ(x, y)
(i) ∀x∀yQ(x, y)
1. If it does not rain or if it is not foggy, then the sailing race will be
held and the lifesaving demonstration will go on.
2. If the sailing race is held, then the trophy will be awarded.
3. The trophy was not awarded.
It rained.