MidtermCO2011 en 2017 263x With Keys
MidtermCO2011 en 2017 263x With Keys
(There are 20 MCQs, each question is worth 0.5 points. Answers in bold : ; cancel out to deselect: @
.)
Suppose that x2 , x5 , x4 are basic variables. Then, the value of reduced cost ri , for i = 1, 2, . . . , 5,
should be
A
(−2, 0, 1, 0, 0). B
(0, 2, 1, 0, 0) C
(0, 1, 2, 0, 0) D
(2, 0, −1, 0, 0)
Question 4. Consider the following linear program
min x1 + x3 − x4
xi
s. t. x1 − x3 = 1,
x3 + x4 = 6,
x2 − 2x3 = 3,
xi ≥ 0, for i = 1, 2, . . . , 4.
If we know that its (postcondition) is {x ≥ 9}, then which of the following is its precondition?
A
{(x ≥ −3 ∧ x < 5) ∨ (x ≥ 8)}. B
{(x ≤ −3) ∨ (x ≥ 3 ∧ x < 5) ∨ (x ≥ 8)}.
C
{(x ≤ −3) ∨ (x ≥ 3 ∧ x < 5)}. D
{(x < −3) ∨ (x > 8)}.
Question 7. Consider a general linear program
Which one of followings can change the problem into standard form?
A
3x1 + 4x2 + x3 = 24, 7x1 − 4x2 + x4 = 16, where x3 , x4 ≤ 0.
B
3x + 4x2 − x3 = 24, 7x1 − 4x2 − x4 = 16, where x3 , x4 ≥ 0.
1
C
3 − 3x1 − 4x2
x = 24, x4 − 7x1 + 4x2 = 16, where x3 , x4 ≤ 0.
D
3x1 + 4x2 + x3 = 24, 7x1 − 4x2 + x4 = 16, where x3 , x4 ≥ 0.
Question 8. Consider the predicate formula φ as follow.
Question 9. The two propositional operators | (or N AN D), and ⊕ (or XOR) are defined as follow, respec-
tively: p|q := ¬(p ∧ q), and p ⊕ q is the proposition with true value T if and only if there is
exactly one of p, q with true value T. Which of the following is correct?
A
The set {|} is not an adequate set of propositional operators.
B
The set {|, ⊕} is not an adequate set of propositional operators.
C
The set {⊕} is an adequate set of propositional operators.
D
The set {|} is an adequate set of propositional operators.
Given non-basic variables x2 and x4 , then the corresponding basic solution of the problem is
A
(3, 0, −5, 0), and also feasible. B
(3, 0, −5, 0), and not feasible.
C
(0, 3, 0, −5), and also feasible. D
(0, 3, 0, −5), and not feasible.
Question 11. The relaxation in branch-and-bound approach for solving a linear integer program, performs to
A
assign all variables into zero. B
assign all variables into one.
C
drop all integer variables D
drop integer constraint of variables.
Question 12. Which of the following formulas has the parse tree:
A
(p ∧ ¬q) ∨ (¬p ∧ q). B
(¬p ∧ q) ∨ (p ∧ ¬q).
∨ q) ∧ (p ∨ ¬q).
C (¬p
∨ ¬q) ∧ (¬p ∨ q).
D (p
Question 13. Let f and g be two functions from R to R. Then the negation of the formula “For each s in R,
there exists r in R such that if f (r) > 0, then
g(s) > 0” is the following formula.
A For every s in R, there exists r in R such
B For every s in R, there does not exist r in
that f (r) > 0 and g(s) ≤ 0. R such that if f (r) > 0, then g(s) > 0.
C There exists s in R and there exists r in R
D There exists s in R such that for every r
such that f (r) ≤ 0 and g(s) ≤ 0. in R, f (r) > 0 and g(s) ≤ 0.
Question 14. A basic feasible solution of a linear program consists of
A
all variables of zero
B
basic variables of zero, non-basic variables of non-zero.
C
basic variable of non-nagative value, non-basic variables of zero.
D
basic variables of zero, non-basic variables of positive value.
Question 15. Consider a linear program finding minimum which has the simplex tableau for basic variables
{x2 , x5 , x4 } as below.
1 1 1 0 0
x1 x2 x3 x4 x5 rhs
−1 1 2 0 0 2
1 0 −1 0 1 3
2 0 1 1 0 4
2 0 −1 0 0 −f (x)
Since r3 < 0 and āi3 is not negative (for i = 1, 2, 3), we need to compute the next simplex
tableau. Hence, new basic variables should be
A
{x2 , x5 , x4 }. B
{x3 , x5 , x4 }. C
{x2 , x3 , x4 }. D
{x2 , x5 , x3 }.
−2 3 0 0
x1 x2 x3 x4 rhs
3 4 1 0 24
7 −4 0 1 16
−2 3 0 0 0
¬φ1 ∧ ¬φ2 ` φ1 → φ2
as follows.
Code: 2631
Question 1.
C Question 6.
B Question 11.
D Question 16.
D
A
Question 2.
D
Question 7.
D
Question 12.
C
Question 17.
Question 3.
D Question 8.
B Question 13.
D Question 18.
C
A
Question 4.
D
Question 9.
C
Question 14.
C
Question 19.
Question 5.
D Question 10.
B Question 15.
B Question 20.
(There are 20 MCQs, each question is worth 0.5 points. Answers in bold : ; cancel out to deselect: @
.)
Given non-basic variables x2 and x4 , then the corresponding basic solution of the problem is
A
(0, 3, 0, −5), and not feasible. B (3, 0, −5, 0), and also feasible.
C
(3, 0, −5, 0), and not feasible. D
(0, 3, 0, −5), and also feasible.
Question 5. Which one of the following statements is true?
A
Every sentence is satisfied by at least one model.
B
All sentences in predicate calculus are either satisfied by all models or by none.
C
No sentence in predicate calculus is satisfied by all models.
D
Some sentences in predicate calculus may be satisfied by one model, but not by
another one.
If we know that its (postcondition) is {x ≥ 9}, then which of the following is its precondition?
A
{(x < −3) ∨ (x > 8)}.
B {(x ≥ −3 ∧ x < 5) ∨ (x ≥ 8)}.
C
{(x ≤ −3) ∨ (x ≥ 3 ∧ x < 5) ∨ (x ≥ 8)}.
D {(x ≤ −3) ∨ (x ≥ 3 ∧ x < 5)}.
Question 7. The two propositional operators | (or N AN D), and ⊕ (or XOR) are defined as follow, respec-
tively: p|q := ¬(p ∧ q), and p ⊕ q is the proposition with true value T if and only if there is
exactly one of p, q with true value T. Which of the following is correct?
A
The set {|} is an adequate set of propositional operators.
B
The set {|} is not an adequate set of propositional operators.
C
The set {|, ⊕} is not an adequate set of propositional operators.
D
The set {⊕} is an adequate set of propositional operators.
Question 8. Consider a linear program finding minimum which has the simplex tableau for basic variables
{x2 , x5 , x4 } as below.
−2 3 0 0
x1 x2 x3 x4 rhs
3 4 1 0 24
7 −4 0 1 16
−2 3 0 0 0
min x1 + x3 − x4
xi
s. t. x1 − x3 = 1,
x3 + x4 = 6,
x2 − 2x3 = 3,
xi ≥ 0, for i = 1, 2, . . . , 4.
¬φ1 ∧ ¬φ2 ` φ1 → φ2
as follows.
A
(p ∨ ¬q) ∧ (¬p ∨ q). B
(p ∧ ¬q) ∨ (¬p ∧ q).
C
(¬p ∧ q) ∨ (p ∧ ¬q). D
(¬p ∨ q) ∧ (p ∨ ¬q).
Question 12. A basic feasible solution of a linear program consists of
A
basic variables of zero, non-basic variables of positive value.
B
all variables of zero
C
basic variables of zero, non-basic variables of non-zero.
D
basic variable of non-nagative value, non-basic variables of zero.
Question 13. Consider a linear program finding minimum which has the initial simplex tableau as below.
1 1 1 0 0
x1 x2 x3 x4 x5 rhs
−1 1 2 0 0 2
1 0 −1 0 1 3
2 0 1 1 0 4
r1 r2 r3 r4 r5 0
Suppose that x2 , x5 , x4 are basic variables. Then, the value of reduced cost ri , for i = 1, 2, . . . , 5,
should be
A
(2, 0, −1, 0, 0) B
(−2, 0, 1, 0, 0). C
(0, 2, 1, 0, 0) D
(0, 1, 2, 0, 0)
Question 14. The relaxation in branch-and-bound approach for solving a linear integer program, performs to
A
drop integer constraint of variables. B assign all variables into zero.
C
assign all variables into one. D
drop all integer variables
1 1 1 0 0
x1 x2 x3 x4 x5 rhs
−1 1 2 0 0 2
1 0 −1 0 1 3
2 0 1 1 0 4
2 0 −1 0 0 −f (x)
Since r3 < 0 and āi3 is not negative (for i = 1, 2, 3), we need to compute the next simplex
tableau. Hence, new basic variables should be
A
{x2 , x5 , x3 }. B
{x2 , x5 , x4 }. C
{x3 , x5 , x4 }. D
{x2 , x3 , x4 }.
Question 16. If a linear program has an optimal solution, then
A
only feasible set is non-empty.
B
the feasible set is non-empty and objective function is bounded.
C
the objective function might not be bounded.
D
the feasible set can be empty.
Question 17. Which of the following statements about Natural Deduction is true?
A
Contradictions don’t play an important role in natural deduction.
B
p ∨ ¬p cannot be proved in natural deduction.
C
Boxes are not used to delineate the scope of assumptions.
D
The rules Modus Tollens (MT) cannot be derived from the rules ∧i and ∧e alone.
Question 18. Consider a general linear program
Which one of followings can change the problem into standard form?
A
3x1 + 4x2 + x3 = 24, 7x1 − 4x2 + x4 = 16, where x3 , x4 ≥ 0.
B
3x + 4x2 + x3 = 24, 7x1 − 4x2 + x4 = 16, where x3 , x4 ≤ 0.
1
C
1 + 4x2 − x3
3x = 24, 7x1 − 4x2 − x4 = 16, where x3 , x4 ≥ 0.
D
x3 − 3x1 − 4x2 = 24, x4 − 7x1 + 4x2 = 16, where x3 , x4 ≤ 0.
Question 19. Given the following predicates
Q(x) : x is a politician, T (z) : z is a time,
P (y) : y is a person, F (x, y, z) : person x fools person y at time z.
Code: 2632
Question 1.
C Question 6.
C Question 11.
A Question 16.
B
A
Question 2.
A
Question 7.
D
Question 12.
D
Question 17.
Question 3.
A Question 8.
D Question 13.
A Question 18.
A
C
Question 4.
B
Question 9.
A
Question 14.
A
Question 19.
Question 5.
D Question 10.
D Question 15.
C Question 20.
(There are 20 MCQs, each question is worth 0.5 points. Answers in bold : ; cancel out to deselect: @
.)
If we know that its (postcondition) is {x ≥ 9}, then which of the following is its precondition?
A
{(x ≥ −3 ∧ x < 5) ∨ (x ≥ 8)}. B {(x < −3) ∨ (x > 8)}.
C
{(x ≤ −3) ∨ (x ≥ 3 ∧ x < 5) ∨ (x ≥ 8)}. D
{(x ≤ −3) ∨ (x ≥ 3 ∧ x < 5)}.
Question 4. Let f and g be two functions from R to R. Then the negation of the formula “For each s in R,
there exists r in R such that if f (r) > 0, then g(s) > 0” is the following formula.
A
For every s in R, there exists r in R such B
There exists s in R such that for every r
that f (r) > 0 and g(s) ≤ 0. in R, f (r) > 0 and g(s) ≤ 0.
C
For every s in R, there does not exist r in D
There exists s in R and there exists r in R
R such that if f (r) > 0, then g(s) > 0. such that f (r) ≤ 0 and g(s) ≤ 0.
Question 5. A basic feasible solution of a linear program consists of
A
all variables of zero
B
basic variables of zero, non-basic variables of positive value.
C
basic variables of zero, non-basic variables of non-zero.
D
basic variable of non-nagative value, non-basic variables of zero.
Question 6. Let φ be a propositional formula. Consider the following statements on φ.
I. φ is satisfiable or ¬φ is satisfiable.
Given non-basic variables x2 and x4 , then the corresponding basic solution of the problem is
A
(3, 0, −5, 0), and also feasible. B
(0, 3, 0, −5), and not feasible.
0, −5, 0), and not feasible.
C (3,
3, 0, −5), and also feasible.
D (0,
Question 9. Consider a linear program finding minimum which has the simplex tableau for basic variables
{x2 , x5 , x4 } as below.
1 1 1 0 0
x1 x2 x3 x4 x5 rhs
−1 1 2 0 0 2
1 0 −1 0 1 3
2 0 1 1 0 4
2 0 −1 0 0 −f (x)
Since r3 < 0 and āi3 is not negative (for i = 1, 2, 3), we need to compute the next simplex
tableau. Hence, new basic variables should be
A
{x2 , x5 , x4 }. B
{x2 , x5 , x3 }. C
{x3 , x5 , x4 }. D
{x2 , x3 , x4 }.
Question 10. Consider a general linear program
Which one of followings can change the problem into standard form?
A
3x1 + 4x2 + x3 = 24, 7x1 − 4x2 + x4 = 16, where x3 , x4 ≤ 0.
B
3x + 4x2 + x3 = 24, 7x1 − 4x2 + x4 = 16, where x3 , x4 ≥ 0.
1
C
3x + 4x2 − x3 = 24, 7x1 − 4x2 − x4 = 16, where x3 , x4 ≥ 0.
1
D
x3 − 3x1 − 4x2 = 24, x4 − 7x1 + 4x2 = 16, where x3 , x4 ≤ 0.
Question 11. If a linear program has an optimal solution, then
A
the feasible set is non-empty and objective function is bounded.
B
only feasible set is non-empty.
C
the objective function might not be bounded.
D
the feasible set can be empty.
−2 3 0 0
x1 x2 x3 x4 rhs
3 4 1 0 24
7 −4 0 1 16
−2 3 0 0 0
A
(p ∧ ¬q) ∨ (¬p ∧ q). B
(p ∨ ¬q) ∧ (¬p ∨ q).
C
(¬p ∧ q) ∨ (p ∧ ¬q). D
(¬p ∨ q) ∧ (p ∨ ¬q).
Question 14. The relaxation in branch-and-bound approach for solving a linear integer program, performs to
A
assign all variables into zero. B
drop integer constraint of variables.
C
assign all variables into one. D
drop all integer variables
Question 15. Which one of the following statements is true?
A
All sentences in predicate calculus are either satisfied by all models or by none.
B
Every sentence is satisfied by at least one model.
C
No sentence in predicate calculus is satisfied by all models.
D
Some sentences in predicate calculus may be satisfied by one model, but not by
another one.
Question 16. Consider the following linear program
min x1 + x3 − x4
xi
s. t. x1 − x3 = 1,
x3 + x4 = 6,
x2 − 2x3 = 3,
xi ≥ 0, for i = 1, 2, . . . , 4.
Suppose that x2 , x5 , x4 are basic variables. Then, the value of reduced cost ri , for i = 1, 2, . . . , 5,
should be
A
(−2, 0, 1, 0, 0). B
(2, 0, −1, 0, 0) C
(0, 2, 1, 0, 0) D
(0, 1, 2, 0, 0)
Question 18. Suppose that we are proving the validity of the sequent
¬φ1 ∧ ¬φ2 ` φ1 → φ2
as follows.
Question 20. The two propositional operators | (or N AN D), and ⊕ (or XOR) are defined as follow, respec-
tively: p|q := ¬(p ∧ q), and p ⊕ q is the proposition with true value T if and only if there is
exactly one of p, q with true value T. Which of the following is correct?
A The set {|} is not an adequate set of propositional operators.
B The set {|} is an adequate set of propositional operators.
C The set {|, ⊕} is not an adequate set of propositional operators.
D
The set {⊕} is an adequate set of propositional operators.
Code: 2633
Question 1.
B Question 6.
D Question 11.
A Question 16.
A
D
Question 2.
B
Question 7.
D
Question 12.
B
Question 17.
Question 3.
C Question 8.
C Question 13.
B Question 18.
D
B
Question 4.
C
Question 9.
B
Question 14.
C
Question 19.
Question 5.
D Question 10.
B Question 15.
D Question 20.
(There are 20 MCQs, each question is worth 0.5 points. Answers in bold : ; cancel out to deselect: @
.)
If we know that its (postcondition) is {x ≥ 9}, then which of the following is its precondition?
A
{(x ≥ −3 ∧ x < 5) ∨ (x ≥ 8)}. B {(x ≤ −3) ∨ (x ≥ 3 ∧ x < 5)}.
C
{(x ≤ −3) ∨ (x ≥ 3 ∧ x < 5) ∨ (x ≥ 8)}. D
{(x < −3) ∨ (x > 8)}.
Question 2. Consider the following linear program
Given non-basic variables x2 and x4 , then the corresponding basic solution of the problem is
A
(3, 0, −5, 0), and also feasible. B
(0, 3, 0, −5), and also feasible.
C
(3, 0, −5, 0), and not feasible. D
(0, 3, 0, −5), and not feasible.
Question 3. If a linear program has an optimal solution, then the solution
A
is a point of the interior of the feasible set.
B
does not belong to the feasible set.
C
is an interior point of the boundary of the feasible set.
D
is an extreme point of the feasible set.
Question 4. Let φ be a propositional formula. Consider the following statements on φ.
I. φ is satisfiable or ¬φ is satisfiable.
A
assign all variables into zero. B
drop all integer variables
C
assign all variables into one. D
drop integer constraint of variables.
Question 8. Consider a general linear program
Which one of followings can change the problem into standard form?
A
3x1 + 4x2 + x3 = 24, 7x1 − 4x2 + x4 = 16, where x3 , x4 ≤ 0.
B
x3 − 3x1 − 4x2 = 24, x4 − 7x1 + 4x2 = 16, where x3 , x4 ≤ 0.
C
3x + 4x2 − x3 = 24, 7x1 − 4x2 − x4 = 16, where x3 , x4 ≥ 0.
1
D
3x1 + 4x2 + x3 = 24, 7x1 − 4x2 + x4 = 16, where x3 , x4 ≥ 0.
Question 9. Given the following predicates
Q(x) : x is a politician, T (z) : z is a time,
P (y) : y is a person, F (x, y, z) : person x fools person y at time z.
min x1 + x3 − x4
xi
s. t. x1 − x3 = 1,
x3 + x4 = 6,
x2 − 2x3 = 3,
xi ≥ 0, for i = 1, 2, . . . , 4.
1 1 1 0 0
x1 x2 x3 x4 x5 rhs
−1 1 2 0 0 2
1 0 −1 0 1 3
2 0 1 1 0 4
2 0 −1 0 0 −f (x)
Since r3 < 0 and āi3 is not negative (for i = 1, 2, 3), we need to compute the next simplex
tableau. Hence, new basic variables should be
A
{x2 , x5 , x4 }. B
{x2 , x3 , x4 }. C
{x3 , x5 , x4 }. D
{x2 , x5 , x3 }.
Question 13. Consider a linear program finding minimum which has the initial simplex tableau as below.
1 1 1 0 0
x1 x2 x3 x4 x5 rhs
−1 1 2 0 0 2
1 0 −1 0 1 3
2 0 1 1 0 4
r1 r2 r3 r4 r5 0
Suppose that x2 , x5 , x4 are basic variables. Then, the value of reduced cost ri , for i = 1, 2, . . . , 5,
should be
A
(−2, 0, 1, 0, 0). B
(0, 1, 2, 0, 0) C
(0, 2, 1, 0, 0) D
(2, 0, −1, 0, 0)
Question 14. Which one of the following statements is true?
A
All sentences in predicate calculus are either satisfied by all models or by none.
B
Some sentences in predicate calculus may be satisfied by one model, but not by
another one.
C
sentence in predicate calculus is satisfied by all models.
No
D
Every sentence is satisfied by at least one model.
Question 15. A basic feasible solution of a linear program consists of
A
all variables of zero
B
basic variable of non-nagative value, non-basic variables of zero.
C
basic variables of zero, non-basic variables of non-zero.
D
basic variables of zero, non-basic variables of positive value.
Question 16. Consider a linear program finding minimum which has the simplex tableau for basic variables
{x2 , x5 , x4 } as below.
−2 3 0 0
x1 x2 x3 x4 rhs
3 4 1 0 24
7 −4 0 1 16
−2 3 0 0 0
A
(p ∧ ¬q) ∨ (¬p ∧ q). B
(¬p ∨ q) ∧ (p ∨ ¬q).
C
(¬p ∧ q) ∨ (p ∧ ¬q). D
(p ∨ ¬q) ∧ (¬p ∨ q).
Question 19. Suppose that we are proving the validity of the sequent
¬φ1 ∧ ¬φ2 ` φ1 → φ2
as follows.
Code: 2634
Question 1.
C Question 6.
B Question 11.
C Question 16.
B
C
Question 2.
D
Question 7.
C
Question 12.
D
Question 17.
Question 3.
D Question 8.
D Question 13.
D Question 18.
D
B
Question 4.
D
Question 9.
B
Question 14.
B
Question 19.
Question 5.
D Question 10.
A Question 15.
B Question 20.