GATE 2007
184 questions
MCQ 1841-mark 184
Questions 6–10 of 184
The trapezoidal method is used to evaluate the numerical value of . Consider the following values for the step size h.
i.
ii.
iii.
iv.
For which of these values of the step size h, is the computed value guaranteed to be correct to seven decimal places. Assume that there are no round-off errors in the computation.
i.
ii.
iii.
iv.
For which of these values of the step size h, is the computed value guaranteed to be correct to seven decimal places. Assume that there are no round-off errors in the computation.
Answer: (B)
Trapezoidal rule error bound: .
Here , so , and its maximum on is . The bound is .
For seven decimal places we need , so and .
- : bound , too large
- : bound , too large (and is above )
- : bound , good
- : bound , good
So only and are guaranteed.
Answer: (B)
Here , so , and its maximum on is . The bound is .
For seven decimal places we need , so and .
- : bound , too large
- : bound , too large (and is above )
- : bound , good
- : bound , good
So only and are guaranteed.
Answer: (B)
Which one of these first-order logic formulae is valid?
Answer: (A)
(A) is valid. Suppose and both hold. For any , is true, so is true. So holds.
The others are not valid. Take the domain .
(B): true and false everywhere. Then and are true, but is false.
(C): true, false, false, true. The right side is true (one for , another for ), but no single has both, so is false. The "if" direction fails.
(D): let be true exactly when . Every has a (take ), but no single works for both and .
Answer: (A)
The others are not valid. Take the domain .
(B): true and false everywhere. Then and are true, but is false.
(C): true, false, false, true. The right side is true (one for , another for ), but no single has both, so is false. The "if" direction fails.
(D): let be true exactly when . Every has a (take ), but no single works for both and .
Answer: (A)
Let Graph(x) be a predicate which denotes that x is a graph. Let Connected(x) be a predicate which denotes that x is connected. Which of the following first order logic sentences DOES NOT represent the statement: "Not every graph is connected"?
Answer: (D)
"Not every graph is connected" means , which is the same as "some graph is not connected": .
(A) is this statement word for word.
(C): , so (C) is the same as (A).
(D) says , that is, no graph is connected. That is much stronger. It is false when some graphs are connected and some are not, while the given statement is true then. So (D) does not represent the statement.
(B) is . Read over a domain of graphs only, it matches the statement, but as written it is also true when some non-graph object exists, so it is looser than the statement. (D) is the clear mismatch.
Answer: (D)
(A) is this statement word for word.
(C): , so (C) is the same as (A).
(D) says , that is, no graph is connected. That is much stronger. It is false when some graphs are connected and some are not, while the given statement is true then. So (D) does not represent the statement.
(B) is . Read over a domain of graphs only, it matches the statement, but as written it is also true when some non-graph object exists, so it is looser than the statement. (D) is the clear mismatch.
Answer: (D)
Which of the following is TRUE about formulae in Conjunctive Normal Form?
Answer: (A)
A CNF formula is an AND of clauses, and each clause is an OR of literals. A clause is false only when all its literals are false.
Why (A) is true. Pick a random truth assignment: each variable is set true or false with probability , independently. Take a clause and remove repeated literals. If it has both and , it is always true. Otherwise it has literals on different variables, and it is false with probability . So it is true with probability .
Let be the number of true clauses. By linearity of expectation, . A random variable cannot always be below its average, so some assignment makes at least clauses true.
Why (B) is false. The formula has no assignment that makes both clauses true.
Why (C) is false. By (A), every formula has an assignment making at least half of its clauses true, which is more than one-fourth. So no formula keeps every assignment at one-fourth or less. (D) is false because (A) is true.
Answer: (A)
Why (A) is true. Pick a random truth assignment: each variable is set true or false with probability , independently. Take a clause and remove repeated literals. If it has both and , it is always true. Otherwise it has literals on different variables, and it is false with probability . So it is true with probability .
Let be the number of true clauses. By linearity of expectation, . A random variable cannot always be below its average, so some assignment makes at least clauses true.
Why (B) is false. The formula has no assignment that makes both clauses true.
Why (C) is false. By (A), every formula has an assignment making at least half of its clauses true, which is more than one-fourth. So no formula keeps every assignment at one-fourth or less. (D) is false because (A) is true.
Answer: (A)
A partial order P is defined on the set of natural numbers as follows. Here denotes integer division.
i.
ii. if and only if and .
Consider the following ordered pairs:
i. (101, 22)
ii. (22, 101)
iii. (145, 265)
iv. (0, 153)
Which of these ordered pairs of natural numbers are contained in P?
i.
ii. if and only if and .
Consider the following ordered pairs:
i. (101, 22)
ii. (22, 101)
iii. (145, 265)
iv. (0, 153)
Which of these ordered pairs of natural numbers are contained in P?
Answer: (D)
means that, digit by digit from the units place, every digit of is at most the matching digit of . Missing leading digits count as 0. This follows from the rule: compare the last digits, then repeat for and , until .
- (i) : units , tens , hundreds is false. Not in P.
- (ii) : units is false. Not in P.
- (iii) : units , tens , hundreds . In P.
- (iv) : all digits of 0 are 0, and , , . In P.
So (iii) and (iv) are in P.
Answer: (D)
- (i) : units , tens , hundreds is false. Not in P.
- (ii) : units is false. Not in P.
- (iii) : units , tens , hundreds . In P.
- (iv) : all digits of 0 are 0, and , , . In P.
So (iii) and (iv) are in P.
Answer: (D)