2023 Oct CSC510 Test 1 Answer Scheme
2023 Oct CSC510 Test 1 Answer Scheme
2. Choose the correct logic for the statement: “If P, then Q unless R”
A. (P ∧ Q) → ¬ R
B. (P ∧ ¬ R) → Q
C. (P → Q) ∧ R
D. P → (Q ∧ R)
Answer: B
3. ¬ (P v Q) ∧ (P ∧ Q) is a
A. Tautology
B. Contradiction
C. Contingency
D. None of the above
Answer: B
A. P v (Q → P)
B. P v (P → Q)
C. (P v Q) → Q
D. Both A & C
Answer: B
5. Find the inverse for statement “The gate will be opened only if water level increases.”
A. 4
B. 8
C. 16
D. 32
Answer: D
A. ¬p ∧ (r 🡪 s)
B. ¬p ∨ (r 🡪 s)
C. ¬ p ∨ (r ∧ ¬ s)
D. ¬ p ∨ (r ∨ s)
ANSWER : C
9. Let P(x) be the statement “x < 100” What is the truth value of the quantification ∀xP(x), having
domains as real numbers.
A. True
B. False
C. True and False
D. None of the above
Answer: B
10. The statement, “Every musician plays instruments” where M(x) is “x is a musician” and S(x) is
“x plays instruments” and the domain consists of all people.
A. ∃x(M(x) ∧ S(x))
B. ∀x(M(x) ∧ S(x))
C. ∃x(M(x) → S(x))
D. ∀x(M(x) → S(x))
Answer: D
PART B (30 Marks)
Question 1 (8 Marks)
1m ½m ½m ½m 1m
P Q R ¬R (P → Q) (Q v ¬R) (P → Q) ˄ (Q v ¬R)
1 1 1 0 1 1 1
1 1 0 1 1 1 1
1 0 1 0 0 0 0√
1 0 0 1 0 1 0√
0 1 1 0 1 1 1
0 1 0 1 1 1 1
0 0 1 0 1 0 0√
0 0 0 1 1 1 1
Question 2 (8 marks)
Consider a school where students are either in the Math Club, the Computer Club, or neither. Let the
domain of discourse be the set of all students in the school. Use the following predicates:
P: It is sunny today.
Q: We play football.
R: We play badminton.
S: The football field is occupied.
T: We play volleyball.
Premise 1: P → (Q ∨ R) 1m
Premise 2: S → ¬ Q 1m
Premise 3: P ∧ S 1m
Conclusion: R ∨ T 1m
1) P → (Q ∨ R) Premise 1
2) P∧ S Premise 3
3) P simplification 2 1m
4) Q ∨ R MP 1), 3) 1m
5) S → ¬ Q Premise 2
6) S simplification 2 1m
7) ¬ Q MP 5), 6) 1m
8) R DS 4), 7) 1m
9) R ∨ T Addition 8) 1m
Question 4 (4 marks)