GATE 2017 (Session 1)
64 questions
MCQ 44 · NAT 201-mark 30 · 2-mark 34
Questions 41–45 of 64
Let A be nxn real valued square symmetric matrix of rank 2 with . Consider
the following statements.
(I) One eigen value must be in [-5, 5]
(II) The eigen value with the largest magnitude must be strictly greater than 5.
Which of the above statements about eigen values of A is/are necessarily CORRECT?
(I) One eigen value must be in [-5, 5]
(II) The eigen value with the largest magnitude must be strictly greater than 5.
Which of the above statements about eigen values of A is/are necessarily CORRECT?
Answer: (B)
A is symmetric, so and
where are the eigenvalues of A.
A has rank 2, so only two eigenvalues are non-zero, , and all the others are 0. So .
- (I): Since , the smaller of is at most 25, so at least one of the two has . The zero eigenvalues also lie in [-5, 5]. So this is True.
- (II): Take . The sum of squares is then 50, and the largest eigenvalue is not strictly greater than 5. So this is not necessarily true.
Answer: (B)
where are the eigenvalues of A.
A has rank 2, so only two eigenvalues are non-zero, , and all the others are 0. So .
- (I): Since , the smaller of is at most 25, so at least one of the two has . The zero eigenvalues also lie in [-5, 5]. So this is True.
- (II): Take . The sum of squares is then 50, and the largest eigenvalue is not strictly greater than 5. So this is not necessarily true.
Answer: (B)
A computer network uses polynomials over GF(2) for error checking with 8 bits as information bits and uses as the generator polynomial to generate the check bits. In this network, the message 01011011 is transmitted as
Answer: (C)
The generator is 1011. It has degree 3, so add 3 zeros to the message: 01011011 becomes 01011011000. The leading 0 does not change the division, so divide 1011011000 by 1011, using XOR (mod-2, no borrow).
Start with the first four bits and XOR with 1011 whenever the leading bit is 1. Then bring down one bit at a time:
1011 XOR 1011 = 000
bring down 0: 0000 (leading 0, no XOR) gives 000
bring down 1: 0001 gives 001
bring down 1: 0011 gives 011
bring down 0: 0110 gives 110
bring down 0: 1100 XOR 1011 = 111
bring down 0: 1110 XOR 1011 = 101
The remainder is 101. Transmitted message = message followed by the remainder = 01011011 101.
Answer: (C)
Start with the first four bits and XOR with 1011 whenever the leading bit is 1. Then bring down one bit at a time:
1011 XOR 1011 = 000
bring down 0: 0000 (leading 0, no XOR) gives 000
bring down 1: 0001 gives 001
bring down 1: 0011 gives 011
bring down 0: 0110 gives 110
bring down 0: 1100 XOR 1011 = 111
bring down 0: 1110 XOR 1011 = 101
The remainder is 101. Transmitted message = message followed by the remainder = 01011011 101.
Answer: (C)
Consider a combination of T and D flip-flops connected as shown below. The output of the D flip-flop is connected to the input of the T flip-flop and the output of the T flip-flop is connected to the input of the D flip-flop
Initailly, both and are set to 1 (before the 1st clock cycle). The outputs
Initailly, both and are set to 1 (before the 1st clock cycle). The outputs
Answer: (B)
The T input is and the D input is . This gives and . The starting state is 11. The states after each clock cycle are:
- cycle 1: 01
- cycle 2: 10
- cycle 3: 11
- cycle 4: 01
Answer: 11 after the 3rd cycle and 01 after the 4th cycle
- cycle 1: 01
- cycle 2: 10
- cycle 3: 11
- cycle 4: 01
Answer: 11 after the 3rd cycle and 01 after the 4th cycle
If G is grammar with productions
where S is the start variable, then which one of the following is not generated by G?
where S is the start variable, then which one of the following is not generated by G?
Answer: (D)
Every rule keeps the number of b's from going above the number of a's. The rules aSb and bSa add one a and one b each. The rule SaS adds one extra a. The rules SS and add nothing. So every string G generates has .
The string babba has 2 a's and 3 b's so G cannot generate it.
Answer: babba
The string babba has 2 a's and 3 b's so G cannot generate it.
Answer: babba
Consider the following two functions.
void fun1(int n) {
if(n == 0) return;
printf("%d", n);
fun2(n - 2);
printf("%d", n);
} void fun2(int n) {
if(n == 0) return;
printf("%d", n);
fun1(++n);
printf("%d", n);
} The output printed when fun1(5) is called isAnswer: (A)
Trace (both functions print n before and after the call; fun2 calls fun1(++n), so its last print shows n + 1):
fun1(5): 5 fun2(3): 3 fun1(4): 4 fun2(2): 2 fun1(3): 3 fun2(1): 1 fun1(2): 2 fun2(0) returns.
On return, it prints: 2, 2, 3, 3, 4, 4, 5.
Output: 5 3 4 2 3 1 2 2 2 3 3 4 4 5
Answer: 53423122233445
fun1(5): 5 fun2(3): 3 fun1(4): 4 fun2(2): 2 fun1(3): 3 fun2(1): 1 fun1(2): 2 fun2(0) returns.
On return, it prints: 2, 2, 3, 3, 4, 4, 5.
Output: 5 3 4 2 3 1 2 2 2 3 3 4 4 5
Answer: 53423122233445