GATE 2016 (Session 2)
65 questions
MCQ 38 · NAT 271-mark 30 · 2-mark 35
Questions 36–40 of 65
A binary relation R on is defined as follows: (a,b)R(c,d) if or . Consider the following propositions:
P: R is reflexive
Q: R is transitive
Which one of the following statements is TRUE?
P: R is reflexive
Q: R is transitive
Which one of the following statements is TRUE?
Answer: (B)
Let us check each statement:
- Reflexive: (a, b) R (a, b) because . So this is True.
- Transitive does not hold: (3, 2) R (1, 3) because 2 3, and (1, 3) R (2, 1) because 1 2. But (3, 2) R (2, 1) needs 3 2 or 2 1 and both are false.
Answer: P is true and Q is false
- Reflexive: (a, b) R (a, b) because . So this is True.
- Transitive does not hold: (3, 2) R (1, 3) because 2 3, and (1, 3) R (2, 1) because 1 2. But (3, 2) R (2, 1) needs 3 2 or 2 1 and both are false.
Answer: P is true and Q is false
Which one of the following well-formed formulae in predicate calculus is NOT valid?
Answer: (D)
(A) is valid. Let and . The statement is , which equals . Here , so the conclusion is the same formula.
(B) is valid. If some x has p(x), or some x has q(x), then that x satisfies .
(C) is valid. If some x has both p(x) and q(x), then that x shows that p holds for some x, and that q holds for some x.
(D) is not valid. Take the domain {1, 2} with p(1) and q(2) true, and p(2) and q(1) false. Then every x satisfies , but is false (p(2) is false) and is false (q(1) is false). The premise is true and the conclusion is false.
Answer: (D)
(B) is valid. If some x has p(x), or some x has q(x), then that x satisfies .
(C) is valid. If some x has both p(x) and q(x), then that x shows that p holds for some x, and that q holds for some x.
(D) is not valid. Take the domain {1, 2} with p(1) and q(2) true, and p(2) and q(1) false. Then every x satisfies , but is false (p(2) is false) and is false (q(1) is false). The premise is true and the conclusion is false.
Answer: (D)
Consider a set U of 23 different compounds in a Chemistry lab. There is a subset S of U of 9 compounds, each of which reacts with exactly 3 compounds of U. Consider the following statements:
I. Each compound in U \ S reacts with an odd number of compounds.
II. At least one compound in U \ S reacts with an odd number of compounds.
III. Each compound in U n S reacts with an even number of compounds.
Which one of the above statements is ALWAYS TRUE?
I. Each compound in U \ S reacts with an odd number of compounds.
II. At least one compound in U \ S reacts with an odd number of compounds.
III. Each compound in U n S reacts with an even number of compounds.
Which one of the above statements is ALWAYS TRUE?
Answer: (B)
Treat compounds as vertices and reactions as edges. The number of compounds a compound reacts with is its degree. By the handshake lemma, the sum of all degrees is even.
The 9 compounds of S each have degree 3, which adds up to , an odd number. So the degrees of the other compounds (those in ) must add up to an odd number. A sum of even numbers is even, so at least one of them has an odd degree. Statement II is always true.
Statement I can fail: let each of the 9 compounds of S react with the same 3 compounds of , and let the other 11 compounds react with none. Every compound of S then reacts with exactly 3, but the 11 idle compounds react with 0 (an even number). So not every compound in has an odd degree.
Statement III talks about . Each compound there reacts with 3, which is odd, so III is false.
Only II is always true.
Answer: (B)
The 9 compounds of S each have degree 3, which adds up to , an odd number. So the degrees of the other compounds (those in ) must add up to an odd number. A sum of even numbers is even, so at least one of them has an odd degree. Statement II is always true.
Statement I can fail: let each of the 9 compounds of S react with the same 3 compounds of , and let the other 11 compounds react with none. Every compound of S then reacts with exactly 3, but the 11 idle compounds react with 0 (an even number). So not every compound in has an odd degree.
Statement III talks about . Each compound there reacts with 3, which is odd, so III is false.
Only II is always true.
Answer: (B)
The value of the expression (mod 17), in the range 0 to 16, is _________.
Answer: 4
Use Fermat's Little Theorem. It says that when is prime, we have
.
So, .
Also, .
What remains is , and this equals .
Suppose the functions F and G can be computed in 5 and 3 nano seconds by functional units and , respectively. Given two instances of and two instances of , it is required to implement the computation for . Ignoring all other delays, the minimum time required to complete this computation is ________ nanoseconds.
Answer: 28
Each item goes through G (3 ns) first and then F (5 ns). There are 2 units of each kind, and the F units slow the whole job down the most. 10 F computations on 2 units take 5 rounds 5 ns = 25 ns.
F can begin only once the first G results are ready, which takes 3 ns. After that, the G units supply F in time.
Total = 3 + 25 = 28 ns
Answer: 28
F can begin only once the first G results are ready, which takes 3 ns. After that, the G units supply F in time.
Total = 3 + 25 = 28 ns
Answer: 28