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

GATE 2015 (Session 1)

65 questions

MCQ 45 · NAT 201-mark 30 · 2-mark 35

Questions 31–35 of 65

Q31SQL1 markMCQ−0.33 if wrong
SELECT operation in SQL is equivalent to

Q32File System1 markMCQ−0.33 if wrong
A file is organized so that the ordering of data records is the same as or close to the ordering of data entries in some index. Then that index is called

Q33Numerical Solution of Algebraic Equations1 markNAT
In the LU decomposition of the matrix [2249]\begin{bmatrix} 2 & 2\\ 4&9 \end{bmatrix}, if the diagonal elements of U are both 1, then the lower diagonal entry l22l_{22} of L is________.

Q34Array and Pointer1 markNAT
The output of the following C program is__________.
  void f1(int a, int b) {
    int c;
    c=a; a=b; b=c;
}
void f2(int *a, int *b) {
    int c;
    c=*a; *a=*b; *b=c;
}
int main(){
    int a=4, b=5, c=6;
    f1(a,b);
    f2(&b, &c);
     printf("%d",c-a-b);
}

Q35Binary Search Tree1 markMCQ−0.33 if wrong
What are the worst-case complexities of insertion and deletion of a key in a binary search tree?