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.

20 on this page
Official PYQ2017Digital LogicNumber Representations (Fixed and Floating Point)MCQ · 1 mark
Given the following binary number in 3232-bit (single precision) IEEE-754\text{IEEE-754} format : 00111110011011010000000000000000\large 00111110011011010000000000000000 The decimal value closest to this floating-point number is :
Official PYQ2017Computer NetworksFragmentation and IP Addressing, IPv4, CIDRNAT · 1 mark
The maximum number of IPv4\textsf{IPv4} router addresses that can be listed in the record route (RR) option field of an IPv4\textsf{IPv4} header is______.
Official PYQ2017General AptitudeMCQ · 1 mark
An air pressure contour line joins locations in a region having the same atmospheric pressure. The following is an air pressure contour plot of a geographical region. Contour lines are shown at 0.050.05 bar intervals in this plot. If the possibility of a thunderstorm is given by how fast air pressure rises or drops over a region, which of the following …
Official PYQ2017General AptitudeMCQ · 1 mark
The number of roots of ex+0.5x2−2=0e^{x}+0.5x^{2}-2=0 in the range [−5,5][-5,5] is
Official PYQ2017General AptitudeMCQ · 1 mark
XX is a 3030 digit number starting with the digit 44 followed by the digit 77. Then the number X3X^3 will have
Official PYQ2017General AptitudeMCQ · 1 mark
There are three boxes. One contains apples, another contains oranges and the last one contains both apples and oranges. All three are known to be incorrectly labeled. If you are permitted to open just one box and then pull out and inspect only one fruit, which box would you open to determine the contents of all three boxes?
Official PYQ2017General AptitudeMCQ · 1 mark
“We lived in a culture that denied any merit to literary works, considering them important only when they were handmaidens to something seemingly more urgent – namely ideology. This was a country where all gestures, even the most private, were interpreted in political terms.” The author’s belief that ideology is not as important as literature is revealed by …
Official PYQ2017General AptitudeMCQ · 1 mark
There are 33 red socks, 44 green socks and 33 blue socks.You choose 22 socks. The probability that they are of the same colour is
Official PYQ2017General AptitudeMCQ · 1 mark
A test has twenty questions worth 100100 marks in total. There are two types of questions. Multiple choice questions are worth 33 marks each and essay questions are worth 1111 marks each. How many multiple choice questions does the exam have?
Official PYQ2017General AptitudeMCQ · 1 mark
There are five buildings called VV, WW, XX, YY and ZZ in a row (not necessarily in that order). VV is to the West of WW. ZZ is to the East of XX and the West of VV. WW is to the West of YY. Which is the building in the middle?
Official PYQ2017General AptitudeMCQ · 1 mark
Saturn is ___________ to be seen on a clear night with the naked eye.
Official PYQ2017General AptitudeMCQ · 1 mark
Choose the option with words that are not synonyms.
Official PYQ2017AlgorithmsAlgorithm Design: Greedy TechniquesNAT · 1 mark
A message is made up entirely of characters from the set X={P,Q,R,S,T}X=\{P, Q, R, S, T\}. The table of probabilities for each of the characters is shown below: …
Official PYQ2017Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsNAT · 1 mark
If the ordinary generating function of a sequence {an}n=0∞\left \{a_n\right \}_{n=0}^\infty is 1+z(1−z)3\large \frac{1+z}{(1-z)^3}, then a3−a0a_3-a_0 is equal to ___________ .
Official PYQ2017DatabasesTuple Calculus and SQLNAT · 1 mark
Consider the following database table named top_scorer\text{top\_scorer}. …
Official PYQ2017Programming and Data StructuresProgramming in CNAT · 1 mark
Consider the following snippet of a C program. Assume that swap (&x,&y)(\&x, \&y) exchanges the content of xx and yy: int main () { int array[] = {3, 5, 1, 4, 6, 2}; int done =0; int i; while (done==0) { done =1; for (i=0; i<=4; i++) { if (array[i] < array[i+1]) { swap(&array[i], &array[i+1]); done=0; } } for (i=5; i>=1; i--) { if …
Official PYQ2017Programming and Data StructuresProgramming in CMCQ · 1 mark
Consider the C program fragment below which is meant to divide xx by yy using repeated subtractions. The variables xx, yy, qq and rr are all unsigned int. while (r >= y) { r=r-y; q=q+1; } Which of the following conditions on the variables x,y,qx, y, q and rr before the execution of the fragment will ensure that the loop terminated in a …
Official PYQ2017Programming and Data StructuresBinary Search TreesMCQ · 1 mark
The pre-order traversal of a binary search tree is given by 12,8,6,2,7,9,10,16,15,19,17,2012, 8, 6, 2, 7, 9, 10, 16, 15, 19, 17, 20. Then the post-order traversal of this tree is
Official PYQ2017Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingMCQ · 1 mark
Consider the binary code that consists of only four valid codewords as given below: 00000,01011,10101,1111000000, 01011, 10101, 11110 Let the minimum Hamming distance of the code pp and the maximum number of erroneous bits that can be corrected by the code be qq. Then the values of pp and qq are
Official PYQ2017Operating SystemDeadlockMCQ · 1 mark
A system shares 99 tape drives. The current allocation and maximum requirement of tape drives for that processes are shown below: …