Answer given is (A) in Answer key .
But Answer according to me is (C) :
Explanation :
As the day cannot be pleasant and not pleasant at the same time.
Proof :
p : it is raining
q: it is cold
r : it is pleasant
Statement : “ It is not raining and it is pleasant, and it is not pleasant only if it is raining and it is cold . “
According to this statement : Draw Venn Diagram
Therefore Answer is (C) :
Proof 2 :
Also (A) when solved yields to pc /\ r (shown below ) :
Statement: “It is not raining and it is pleasant, and it is not pleasant only if it is raining and it is cold. “
Now “ not pleasant” is coming first in statement and then “ it is raining and it is cold “
But is representation it is :
Similar is the case in Gate CS 2006 (full question with explanation is given in page 2)
Statement: “Tigers and lions attack if they are hungry or threatened.”
Attack comes first and then “hungry or threatened “but it is represented as
{(hungry (x) v threatened (x)) -> attacks (x)} in
Similar questions from previous year gate exam are given below :
In GATE CS 2009
Which one of the following is the most appropriate logical formula to represent the statement? "Gold and silver ornaments are precious". The following notations are used: G(x): x is a gold ornament S(x): x is a silver ornament P(x): x is precious
A
|
∀x(P(x)→(G(x)∧S(x)))
|
B
|
∀x((G(x)∧S(x))→P(x))
|
C
|
∃x((G(x)∧S(x))→P(x)
|
D
|
∀x((G(x)∨S(x))→P(x))
|
Answer : (D)
Explanation :
=> This statement can be expressed as => For all X, x can be either gold or silver then the ornament X is precious => For all X, (G(X) v S(x)) => P(X). As X can’t be gold and silver at the same time.
In GATE-CS -2006
Question:
Which one of the first order predicate calculus statements given below correctly express the following English statement?
Tigers and lions attack if they are hungry or threatened.
Answer: D
Explanation :
The statement "Tigers and lions attack if they are hungry or threatened" means that if an animal is either tiger or lion, then if it is hungry or threatened, it will attack. So option (D) is correct. "and" doesn't mean that we will write "tiger(x) ∧ lion(x) ", because that would have meant that an animal is both tiger and lion, which is not what we want.
Also attack comes first in statement “Tigers and lions attack if they are hungry or threatened. “ but in representation answer is : D i.e
{(hungry (x) v threatened (x)) -> attacks (x)}