Docsity

Exam Questions on Logic and Propositional Calculus, Exams of Computer Science

Toggle sidebar
bg1
name:
Exam 1
CS 1050A
Spring 2001
Please do your own work on this test, write your answers clearly and concisely on the test paper, and
do
not use a calculator
. Explain all answers to the best of your ability. Good luck!
1. Given the propositions
๎˜
p
:Ihave pork chops.
๎˜
q
:Ihave sauerkraut.
๎˜
r
: I will make Hungarian food.
Consider the statement "If I have pork chops and sauerkraut, then I will make Hungarian food."
(a) Write the statement in symbolic form using the indicated letters to represent the component state-
ments.
(b) Write the truth table for this statement.
(c) Write the negation of the statementinsymbolic form.
(d) Write the contapositive of the statement in plain English.
pf3
pf4

Partial preview of the text

Download Exam Questions on Logic and Propositional Calculus and more Exams Computer Science in PDF only on Docsity!

name:

Exam 1

CS 1050A

Spring 2001

Please do your own work on this test, write your answers clearly and concisely on the test pap er, and do not use a calculator. Explain all answers to the b est of your ability. Go o d luck!

  1. Given the prop ositions  p: I have p ork chops.  q : I have sauerkraut.  r : I will make Hungarian fo o d. Consider the statement "If I have p ork chops and sauerkraut, then I will make Hungarian fo o d." (a) Write the statement in symb olic form using the indicated letters to represent the comp onent state- ments.

(b) Write the truth table for this statement.

(c) Write the negation of the statement in symb olic form.

(d) Write the contap ositive of the statement in plain English.

  1. Use Theorem 1.1.1 to verify that  (p_  q ) _ ( p^  q )  p.
  2. Use a truth table to verify that p! q _ r  p^  q! r.
  3. Decide (and write down) whether or not the following argument is valid. If it is valid, name the typ e of argument. If it is invalid, name the typ e of error.

If that mo ckingbird don't sing, Mama's going to buy you a diamond ring.

That mo ckingbird sings.

Mama won't buy you a diamond ring.

  1. Decide (and write down) whether or not the following argument is valid. Use diagrams to justify your answers. All p o ets are romantic. All songwriters are p o ets. All songwriters are romantic.