midterm 1 for cs301k fall 2013 - department of computer...

5

Click here to load reader

Upload: donga

Post on 06-Feb-2018

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Midterm 1 for CS301K Fall 2013 - Department of Computer ...schrum2/cs301k/oldtests/13t1/exam1.pdf · predicates. De ne your ... C. Analyze the logical form of the following statement

CS301KFall 2013J. Schrum

Name:EID:

Date:

Midterm 1 for CS301K Fall 2013

A. For each item below, circle either TRUE, FALSE, or NOT A PROPOSITION.(2 points each)

1. Some dogs bark.

TRUE FALSE NOT A PROPOSITION

2. Do well on this test!

TRUE FALSE NOT A PROPOSITION

3. ∃x ∈ Z∀y ∈ Z[x + y = y]

TRUE FALSE NOT A PROPOSITION

4. ∀x ∈ Z∃y ∈ Z[x + y = y]

TRUE FALSE NOT A PROPOSITION

B. Analyze the logical forms of the following statements without using anypredicates. Define your propositional variables. (4 points each)

1. Robert will go to jail if he robs the bank and gets caught.

2. Ken will eat the apple if and only if it is not rotten.

1

Page 2: Midterm 1 for CS301K Fall 2013 - Department of Computer ...schrum2/cs301k/oldtests/13t1/exam1.pdf · predicates. De ne your ... C. Analyze the logical form of the following statement

CS301KFall 2013J. Schrum

Name:EID:

Date:

C. Analyze the logical form of the following statement assuming the universefor all variables is “people” and using only the following predicate:P (x, y) =“x is a parent of y” (4 points)

The parents of one of Eric’s parents are named Alice and John.

D. Write a linear proof of the following equivalence. (10 points)A ∧ (B → ¬(C ∧ ¬A)) ≡ A.

2

Page 3: Midterm 1 for CS301K Fall 2013 - Department of Computer ...schrum2/cs301k/oldtests/13t1/exam1.pdf · predicates. De ne your ... C. Analyze the logical form of the following statement

CS301KFall 2013J. Schrum

Name:EID:

Date:

E. Use rules of inference and logical identities to prove the following argument.(10 points)

P ∨QP → QQ→ R

∴ R

3

Page 4: Midterm 1 for CS301K Fall 2013 - Department of Computer ...schrum2/cs301k/oldtests/13t1/exam1.pdf · predicates. De ne your ... C. Analyze the logical form of the following statement

CS301KFall 2013J. Schrum

Name:EID:

Date:

F. Suppose m, n ∈ Z. Prove (mn even) → (m even ∨ n even). (10 points)

4

Page 5: Midterm 1 for CS301K Fall 2013 - Department of Computer ...schrum2/cs301k/oldtests/13t1/exam1.pdf · predicates. De ne your ... C. Analyze the logical form of the following statement

CS301KFall 2013J. Schrum

Name:EID:

Date:

Scratch Paper

5