

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Solutions to logic problems presented in cs 381 exam, held in february 2005. It includes exercises on propositions, conversion to 'if then' form, contrapositives, negation, and symbolic representation of arguments.
Typology: Exams
1 / 3
This page cannot be seen from the preview
Don't miss anything!


CS 381 Solutions to Test
February, 2005
(a) x = y + 1 No
(b) Is he happy? No
(c) If and only if he is healthy, he is happy. Yes
(d) Either he is happy or he is not healthy. Yes
(e) If he is happy, then he is healthy. Yes
(a) Fuel savings follows from good insulation. If insulation is good, then fuel is saved.
(b) There has been sufficient water only if the plant is healthy. If there has been sufficient water, then the plant is healthy.
(c) A modification of the program is a necessary condition for the introduc- tion of errors. If errors are introduced, then the program has been modified.
(a) Fuel savings follows from good insulation. If fuel is not saved, then insulation is not good.
(b) There has been sufficient water only if the plant is healthy. If the plant is not healthy, then there has not been sufficient water.
(c) A modification of the program is a necessary condition for the introduc- tion of errors. If the program has not been modified, then errors are not introduced.
(a) The processor is fast but the printer is slow. The processor is not fast or the printer is not slow.
(b) If the processor is fast, then the printer is slow. The processor is fast and the printer is not slow.
(c) Either the processor is fast and the printer is slow, or the file is damaged. The processor is not fast or the printer is not slow, and the file is not damaged.
(a) [P → Q] ∧ ¬Q ⇔ [ ¬P ∨ Q] ∧ ¬Q
⇔ [ ¬P ∧ ¬Q ] ∨[Q ∧ ¬Q ]
⇔ [ ¬P ∧ ¬Q] ∨ F
(b) [[P → Q] ∧ [Q → R]] → [P → R]
⇔ [¬ P → Q ∨ ¬ Q → R ] ∨ [P → R]
⇔ [[P ∧ ¬Q ] ∨ [ Q ∧ ¬R]] ∨ [¬P ∨ R ]
(c) [P ∧ Q] → R ⇔ ¬[ P ∧ Q ] ∨ R
⇔ [ ¬P ∨ ¬Q] ∨ R
⇔ ¬P ∨ [¬Q ∨ R]