Discrete Math Lab 1 With Answer
Discrete Math Lab 1 With Answer
2
Compound Propositions, constructed from logical connectives and other propositions
T F
F T
a) Mai has an MP3 player.
“Mai does not have an MP3 player”
b) There is no pollution in New Jersey.
“There is pollution in New Jersey”
c) 2 + 1 = 3. “2 + 1 not equal 3”
d) The summer in Italy is hot and sunny.
“The summer in Italy is not hot and sunny”
7
8) Suppose that
Smartphone A has 256 MB RAM and 32 GB ROM, and the resolution of its
camera is 8 MP;
Smartphone B has 288 MB RAM and 64 GB ROM, and the resolution of its
camera is 4 MP;
Smartphone C has 128 MB RAM and 32 GB ROM, and the resolution
of its camera is 5 MP.
Determine the truth value(T/F) of each of these propositions.
b) p ∨ q “I bought a lottery ticket this week OR I won the million dollar jackpot.”
c) p → q “if I bought a lottery ticket this week, then I won the million dollar jackpot. ”
d) p ∧ q
e) p ↔ q “I bought a lottery ticket this week if and only if I won the million dollar jackpot”
f ) ¬p → ¬q “if I didn’t buy a lottery ticket this week, then I didn’t win the million dollar jackpot”
g) ¬p ∧ ¬q
h) ¬p ∨ (p ∧ q)
“I didn’t buy a lottery ticket this week OR I bought a lottery ticket this week AND I won the
million dollar jackpot “ 10
18) Determine whether these bi-conditionals are
true or false.
a) 2 + 2 = 4 if and only if 1 + 1 = 2. “T ↔T = T”
b) 1 + 1 = 2 if and only if 2 + 3 = 4. “T ↔F = F”
c) 1 + 1 = 3 if and only if monkeys can fly. “F ↔ F= T”
d) 0 > 1 if and only if 2 > 1. “F ↔ T = F”
p q p↔q
T T T
T F F
F T F
F F T
11
21) For each of these sentences, determine whether
an inclusive or, or an exclusive.
Inclusive OR Exclusive OR
p q p∨q p q p⊕q
T T T T T F c and d, Assignment
T F T T F T
F T T F T T
F F F F F F 12
29) State the converse, contrapositive, and inverse of
each of these conditional statements.
q →p ,is the converse of p →q
¬q → ¬p ,is the contrapositive of p →q
¬p → ¬q ,is the inverse of p →q
B, Assignment
13
14
33) Construct a truth table for each of these
compound propositions.
a) p ∧ ¬p
b) p ∨ ¬p
c) (p ∨ ¬q) → q
d) (p ∨ q) → (p ∧ q)
e) (p → q) ↔ (¬q → ¬p)
f ) (p → q) → (q → p)
E and F
Assignment
15
a) p ∧ ¬p b) p ∨ ¬p
p ¬p p ∧ ¬p P ¬p p ∨ ¬p
T F F T F T
F T F F T T
c) (p ∨ ¬q) → q
p q ¬q p ∨ ¬q (p ∨ ¬q) → q
T T F T T
T F T T F
F T F F T
F F T T F
d) (p ∨ q) → (p ∧ q)
p q p∨q p∧q (p ∨ q) → (p ∧ q)
T T T T T
T F T F F
F T T F F
F F F F T 16