GATE 2015 (Session 2)
64 questions
MCQ 42 · NAT 221-mark 29 · 2-mark 35
Questions 61–64 of 64
In a connected graph, a bridge is an edge whose removal disconnects a graph. Which one of the following statements is true?
Answer: (B)
Suppose an edge lies on a cycle. After you remove it, the remaining part of the cycle still joins its two ends. So that edge is not a bridge.
- In a tree, every edge is a bridge.
- Edges of a clique (size 3) lie on triangles, so they are not bridges.
- A graph can have bridges and cycles together.
Answer: A bridge cannot be part of a simple cycle
- In a tree, every edge is a bridge.
- Edges of a clique (size 3) lie on triangles, so they are not bridges.
- A graph can have bridges and cycles together.
Answer: A bridge cannot be part of a simple cycle
Which one of the following well formed formulae is a tautology?
Answer: (C)
A tautology is true for every domain and every meaning of the predicates.
(C) The quantifiers cover the whole bracket on each side. is equivalent to . Both sides have the same quantifiers in front of equivalent formulas, so they always have the same truth value and the biconditional is a tautology.
(A) is not a tautology, because does not give . Take to mean on the domain . The left side is true and the right side is false.
(B) is not a tautology. Let R and S be false everywhere. Then is false for every x, so the left side is true, but is false.
(D) is also valid. and both say that P holds for every pair, so the implication never fails.
So the question has two tautologies, (C) and (D). Of the two, (C) is the one to mark.
Answer: (C)
Note: The official GATE 2015 answer key gives only (C). Option (D) is also a tautology: both sides say that P holds for every pair, so the implication can never be false.
(C) The quantifiers cover the whole bracket on each side. is equivalent to . Both sides have the same quantifiers in front of equivalent formulas, so they always have the same truth value and the biconditional is a tautology.
(A) is not a tautology, because does not give . Take to mean on the domain . The left side is true and the right side is false.
(B) is not a tautology. Let R and S be false everywhere. Then is false for every x, so the left side is true, but is false.
(D) is also valid. and both say that P holds for every pair, so the implication never fails.
So the question has two tautologies, (C) and (D). Of the two, (C) is the one to mark.
Answer: (C)
Note: The official GATE 2015 answer key gives only (C). Option (D) is also a tautology: both sides say that P holds for every pair, so the implication can never be false.
Which one of the following assertions concerning code inspection and code walkthrough is true?
Answer: (C)
Code inspection is a formal review of the code by a team, using a checklist of common errors. Checking that the code follows the coding standards is part of that checklist, so (C) is true.
(A) is false: reviews are done once the code compiles cleanly, before unit testing, so errors are caught early.
(B) is false: a walkthrough is an informal review led by the author, so it is not the same as an inspection.
(D) is false: a walkthrough is done by members of the development team, not by an independent test team.
Answer: (C)
(A) is false: reviews are done once the code compiles cleanly, before unit testing, so errors are caught early.
(B) is false: a walkthrough is an informal review led by the author, so it is not the same as an inspection.
(D) is false: a walkthrough is done by members of the development team, not by an independent test team.
Answer: (C)
A half adder is implemented with XOR and AND gates. A full adder is implemented with two half adders and one OR gate. The propagation delay of an XOR gate is twice that of an AND/OR gate. The propagation delay of an AND/OR gate is 1.2 microseconds. A 4-bit ripple-carry binary adder is implemented by using four full adders. The total propagation time of this 4-bit binary adder in microseconds is____________.
Answer: 19.2
AND and OR delay = 1.2 , XOR delay = 2 1.2 = 2.4 .
In one full adder, the carry-out goes through the XOR of the first half adder, then the AND of the second half adder, then the OR gate: 2.4 + 1.2 + 1.2 = 4.8 . The sum output also takes two XOR gates, 2.4 + 2.4 = 4.8 . So the worst-case delay of one full adder is 4.8 .
Here each of the 4 full adders is treated as one block of 4.8 , and the blocks work one after another in the ripple chain:
Total = 4 4.8 = 19.2 .
A finer gate-level count would note that in the later stages the incoming carry only passes through AND and OR (2.4 ), which gives 4.8 + 3 2.4 = 12 . The block model above, with each adder counted at its full delay, is the standard simplification for this problem and gives 19.2 .
Answer: 19.2 µs
In one full adder, the carry-out goes through the XOR of the first half adder, then the AND of the second half adder, then the OR gate: 2.4 + 1.2 + 1.2 = 4.8 . The sum output also takes two XOR gates, 2.4 + 2.4 = 4.8 . So the worst-case delay of one full adder is 4.8 .
Here each of the 4 full adders is treated as one block of 4.8 , and the blocks work one after another in the ripple chain:
Total = 4 4.8 = 19.2 .
A finer gate-level count would note that in the later stages the incoming carry only passes through AND and OR (2.4 ), which gives 4.8 + 3 2.4 = 12 . The block model above, with each adder counted at its full delay, is the standard simplification for this problem and gives 19.2 .
Answer: 19.2 µs