Skip to content

GATE CS question library

Practise GATE CS Computer Science previous year questions free. Browse by subject, syllabus topic, year and question type, with answers and available solutions.

Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.

4 on this page
Official PYQ2019Programming and Data StructuresProgramming in CNAT · 2 marks
Consider the following C program: #include <stdio.h> int main() { float sum = 0.0, j=1.0, i=2.0; while (i/j > 0.0625) { j=j+j; sum=sum+i/j; printf("%f\n", sum); } return 0; } The number of times the variable sum will be printed, when the above program is executed, is _________
Official PYQ2019Programming and Data StructuresProgramming in CNAT · 2 marks
Consider the following C program: #include <stdio.h> int main() { int a[] = {2, 4, 6, 8, 10}; int i, sum=0, *b=a+4; for (i=0; i<5; i++) sum=sum+(*b-i)-*(b-i); printf("%d\n", sum); return 0; } The output of the above C program is _______
Official PYQ2019Computer NetworksConcept of Layering: OSI and TCP/IP Protocol StacksNAT · 2 marks
In an RSA cryptosystem, the value of the public modulus parameter nn is 30073007. If it is also known as that ϕ(n)=2880\phi(n)=2880 where ϕ()\phi() denotes Euler’s Totient Function, then the prime factor of nn which is greater than 5050 is _________
Official PYQ2019DatabasesRelational Model: Relational AlgebraNAT · 2 marks
Consider the following relations P(X,Y,Z),Q(X,Y,T)P(X,Y,Z), Q(X,Y,T) and R(Y,V)R(Y,V). …