Question 8
LogicConsider the following statements:
p: The weather is warm.
q: The sun is shining.
Which of the following correctly represents the statement. "The sun is shining if and only if the weather is warm"?
- A.p ⇔ ~q
- B.~p ⇔ ~q
- C.~q ⇔ ~p
- D.q ⇔ p
Show the answer and explanation
Answer: D (q ⇔ p)
Explanation
"q if and only if p" is written q ⇔ p.