GATE 2017 (Session 1) Computer Science and Information Technology (CS) Questions with Solutions

GATE 2017 (Session 1)

64 questions

MCQ 44 · NAT 201-mark 30 · 2-mark 34

Questions 41–45 of 64

Q41Eigenvalues and Eigenvectors2 marksMCQ−0.67 if wrong
Let A be nxn real valued square symmetric matrix of rank 2 with ∑i=1n∑j=1nAij2=50\sum_{i=1}^{n}\sum_{j=1}^{n}A^{2}_{ij}=50. 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?

Q43Sequential Circuit2 marksMCQ−0.67 if wrong
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
T Flip- Flop D Flip- Flop Clock Q1 Q0
Initailly, both Q0Q_{0} and Q1Q_{1} are set to 1 (before the 1st clock cycle). The outputs

Q44Context Free Grammar2 marksMCQ−0.67 if wrong
If G is grammar with productions
S→SaS∣aSb∣bSa∣SS∣ϵS\rightarrow SaS|aSb|bSa|SS|\epsilon
where S is the start variable, then which one of the following is not generated by G?

Q45Function2 marksMCQ−0.67 if wrong
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 is