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

GATE 2015 (Session 3)

65 questions

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

Questions 11–15 of 65

Q11Array and Pointer1 markMCQ−0.33 if wrong
Consider the following C program segment.
 #include <stdio.h>
int main()
{
char s1[7] = "1234", *p;
p = s1 + 2;
*p = '0';
printf("%s", s1);
} 
What will be printed by the program?

Q12Set Theory1 markMCQ−0.33 if wrong
Suppose U is the power set of the set S={1,2,3,4,5,6}. For any T∈\inU, let |T| denote the number of elements in T and T' denote the complement of T. For any T,R∈\inU, let T\R be the set of all elements in T which are not in R. Which one of the following is true?

Q13Normal Form1 markMCQ−0.33 if wrong
Consider the relation X(P,Q,R,S,T,U) with the following set of functional dependencies
F= {{P,R}→\rightarrow{S,T}, {P,S,U}→\rightarrow{Q,R} }
Which of the following is the trivial functional dependency in F+F^{+}, where F+F^{+} is closure of F ?

Q14Process1 markMCQ−0.33 if wrong
The maximum number of processes that can be in Ready state for a computer system with n CPUs is

Q15Parsing1 markMCQ−0.33 if wrong
Among simple LR (SLR) , canonical LR, and look-ahead LR (LALR), which of the following pairs identify the method that is very easy to implement and the method that is the most powerful , in that order?