Q1 - Practice Questions (Propositional Logic)
Q1 - Practice Questions (Propositional Logic)
Which of these sentences are propositions? What are the truth values of those
that are propositions?
2 + 3 = 5.
5 + 7 = 10.
x + 2 = 11.
4 + x = 5.
2n ≥ 100.
Page |1
Discrete Structures Practice Questions
Suppose that during the most recent fiscal year, the annual revenue of Acme
Computer was 138 billion dollars and its net profit was 8 billion dollars, the
annual revenue of Nadir Software was 87 billion dollars and its net profit was 5
billion dollars, and the annual revenue of Quixote Media was 111 billion dollars
and its net profit was 13 billion dollars. Determine the truth value of each of
these propositions for the most recent fiscal year.
Nadir Software had the lowest net profit and Acme Computer had the
largest annual revenue.
Acme Computer had the largest net profit or Quixote Media had the largest
net profit.
If Quixote Media had the smallest net profit, then Acme Computer had the
largest annual revenue.
Nadir Software had the smallest net profit if and only if Acme Computer
had the largest annual revenue.
Let p and q be the propositions “Swimming at the New Jersey shore is allowed”
and “Sharks have been spotted near the shore,” respectively. Express each of
these compound propositions as an English sentence.
a) ¬𝑞𝑞
c) ¬𝑝𝑝 ∨ 𝑞𝑞
Page |2
Discrete Structures Practice Questions
d) 𝑝𝑝 → ¬𝑞𝑞
e) ¬𝑞𝑞 → 𝑝𝑝
f ) ¬𝑝𝑝 → ¬𝑞𝑞
g) 𝑝𝑝 ↔ ¬𝑞𝑞
p : It is below freezing.
q : It is snowing.
Page |3
Discrete Structures Practice Questions
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.
Topic: Propositional Logic
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.
Page |4
Discrete Structures Practice Questions
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.
Converse:
Contrapositive:
Inverse:
Converse:
Contrapositive:
Inverse:
A positive integer is a prime only if it has no divisors other than 1 and itself.
Topic: Propositional Logic
Converse:
Contrapositive:
Inverse:
Converse:
Page |5
Discrete Structures Practice Questions
Contrapositive:
Inverse:
Converse:
Contrapositive:
Inverse:
Converse:
Contrapositive:
Inverse:
Translate the given statement into propositional logic using the propositions
provided.
Express your answer in terms of m: “You can see the movie,” e: “You are
over 18 years old,” and p: “You have the permission of a parent.”
Page |6
Discrete Structures Practice Questions
3. You can graduate only if you have completed the requirements of your
major and you do not owe money to the university and you do not have an
overdue library book.
Express your answer in terms of g: “You can graduate,” m: “You owe money
to the university,” r: “You have completed the requirements of your
major,” and b: “You have an overdue library book.”
4. To use the wireless network in the airport you must pay the daily fee
unless you are a subscriber to the service.
Express your answer in terms of w: “You can use the wireless network in
the airport,” d: “You pay the daily fee,” and s: “You are a subscriber to the
service.”
5. You are eligible to be President of the U.S.A. only if you are at least 35
years old, were born in the U.S.A, or at the time of your birth both of your
parents were citizens, and you have lived at least 14 years in the country.
Page |7
Discrete Structures Practice Questions
Show that ¬(𝒑𝒑 ∨ (¬𝒑𝒑 ∧ 𝒒𝒒)) and ¬𝒑𝒑 ∧ ¬𝒒𝒒 are logically equivalent by
developing a series of logical equivalences.
a) (𝑝𝑝 ∧ 𝑞𝑞) → 𝑝𝑝
b) 𝑝𝑝 → (𝑝𝑝 ∨ 𝑞𝑞)
e) ¬(𝑝𝑝 → 𝑞𝑞) → 𝑝𝑝
Page |8
Discrete Structures Practice Questions
Express these system specifications using the propositions 𝒑𝒑 “The user enters a
valid password”, 𝒒𝒒 “Access is granted”, and 𝒓𝒓 “The user has paid the
subscription fee” and logical connectives (including negations).
“The user has paid the subscription fee, but does not enter a valid
password.”
“Access is granted whenever the user has paid the subscription fee and
enters a valid password.”
“Access is denied if the user has not paid the subscription fee.”
“If the user has not entered a valid password but has paid the subscription
fee, then access is granted.”
Topic: Propositional Logic
Page |9
Discrete Structures Practice Questions
f) When you buy a newcar fromAcme Motor Company, you get $2000 back
in cash or a 2% car loan.
g) Dinner for two includes two items from column A or three items from
column B.
h) School is closed if more than 2 feet of snow falls or if the wind chill is
below −100.
P a g e | 10
Discrete Structures Practice Questions
f ) If you drive more than 400 miles, you will need to buy gasoline.
g) Your guarantee is good only if you bought your CD player less than 90
days ago.
P a g e | 11