GATE 2008
185 questions
MCQ 1851-mark 52 · 2-mark 133
Questions 11–15 of 185
Which of the following is the negation of
Answer: (D)
Write the implications with and , then negate from the outside in. Use , and .
Level 1: , where .
Level 2: , where .
Level 3: .
Putting the levels together: .
Answer: (D)
Level 1: , where .
Level 2: , where .
Level 3: .
Putting the levels together: .
Answer: (D)
Which of the following first order formulae is logically valid?
Here is a first order formula with x as a free variable, and is a first order formula with no free variable.
Here is a first order formula with x as a free variable, and is a first order formula with no free variable.
Answer: (C)
Since has no free variable, .
So in (C) the two sides are equivalent, and an implication between equivalent formulas is always true. (C) is valid.
The others are not valid. Take the domain in each case.
(A): true, true, false. The left side is true (some has ), but fails at .
(B): same values. is true at , but is false.
(D): true, false, false. The left side is true because is false, but is false, so the right side is false.
Answer: (C)
So in (C) the two sides are equivalent, and an implication between equivalent formulas is always true. (C) is valid.
The others are not valid. Take the domain in each case.
(A): true, true, false. The left side is true (some has ), but fails at .
(B): same values. is true at , but is false.
(D): true, false, false. The left side is true because is false, but is false, so the right side is false.
Answer: (C)
P and Q are two propositions. Which of the following logical expressions are equivalent?
I.
II.
III.
IV.
I.
II.
III.
IV.
Answer: (B)
Let be a statement that is always true.
II: by De Morgan, . This is the same as I.
III: (distributive law). So III . Distributing, . This is the same as I.
IV (read as ): the first two terms give , so IV . This differs from I: for false and true, I is false but IV is true.
So I, II and III are equivalent, and IV is not.
Answer: (B)
II: by De Morgan, . This is the same as I.
III: (distributive law). So III . Distributing, . This is the same as I.
IV (read as ): the first two terms give , so IV . This differs from I: for false and true, I is false but IV is true.
So I, II and III are equivalent, and IV is not.
Answer: (B)
Let fsa and pda be two predicates such that fsa(x) means x is a finite state automaton, and pda(y) means that y is a pushdown automaton. Let equivalent be another predicate such that equivalent (a, b) means a and b are equivalent. Which of the following first order logic statements represents the following:
Each finite state automaton has an equivalent pushdown automaton
Each finite state automaton has an equivalent pushdown automaton
Answer: (A)
The sentence says: for every x, if x is a finite state automaton, then there is some y that is a pushdown automaton and is equivalent to x. Written exactly, this is .
(A) is this statement, and it is the official answer. Strictly, as printed the scope of ends at , so the x in is left outside the quantifier; read with covering the whole implication, it is exactly the formula above.
(B) begins with , so it only says that the implication fails for some y. That is not the statement.
(C) uses instead of , so it claims that every x is a finite state automaton, which is much stronger.
(D) swaps the roles: it claims that every x is a pushdown automaton and has an equivalent y that is a finite state automaton.
Answer: (A)
(A) is this statement, and it is the official answer. Strictly, as printed the scope of ends at , so the x in is left outside the quantifier; read with covering the whole implication, it is exactly the formula above.
(B) begins with , so it only says that the implication fails for some y. That is not the statement.
(C) uses instead of , so it claims that every x is a finite state automaton, which is much stronger.
(D) swaps the roles: it claims that every x is a pushdown automaton and has an equivalent y that is a finite state automaton.
Answer: (A)
If P, Q, R are subsets of the universal set U, then is
Answer: (D)
Start with .
Combine the first two terms (they share ):
Since :
By De Morgan, :
A set together with its complement is the whole universe: .
Answer: (D)
Combine the first two terms (they share ):
Since :
By De Morgan, :
A set together with its complement is the whole universe: .
Answer: (D)