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 PYQ2022General AptitudeMCQ · 1 mark
Given below are four statements. Statement 1:1: All students are inquisitive. Statement 2:2: Some students are inquisitive. Statement 3:3: No student is inquisitive. Statement 4:4: Some students are not inquisitive. From the given four statements, find the two statements that CANNOT BE TRUE\text{CANNOT BE TRUE} simultaneously, assuming that there is at least …
Official PYQ2022General AptitudeMCQ · 1 mark
A palindrome is a word that reads the same forwards and backwards. In a game of words, a player has the following two plates painted with letters. From the additional plates given in the options, which one of the combinations of additional plates would allow the player to construct a five-letter palindrome. The player should use all the five plates exactly …
Official PYQ2022General AptitudeMCQ · 2 marks
Some people believe that “what gets measured, improves”. Some others believe that “what gets measured, gets gamed”. One possible reason for the difference in the beliefs is the work culture in organizations. In organizations with good work culture, metrics help improve outcomes. However, the same metrics are counterproductive in organizations with poor work …
Official PYQ2022General AptitudeMCQ · 2 marks
In a recently conducted national entrance test, boys constituted 65%65 \% of those who appeared for the test. Girls constituted the remaining candidates and they accounted for 60%60 \% of the qualified candidates. Which one of the following is the correct logical inference based on the information provided in the above passage?
Official PYQ2022General AptitudeMCQ · 2 marks
A box contains five balls of same size and shape. Three of them are green coloured balls and two of them are orange coloured balls. Balls are drawn from the box one at a time. If a green ball is drawn, it is not replaced. If an orange ball is drawn, it is replaced with another orange ball. First ball is drawn. What is the probability of getting an orange …
Official PYQ2022General AptitudeMCQ · 2 marks
The corners and mid-points of the sides of a triangle are named using the distinct letters P, Q, R, S, T\text{P, Q, R, S, T} and U,\text{U,} but not necessarily in the same order. Consider the following statements: The line joining P\text{P} and R\text{R} is parallel to the line joining Q\text{Q} and S.\text{S}. P\text{P} is placed on the side …
Official PYQ2022General AptitudeMCQ · 2 marks
A plot of land must be divided between four families. They want their individual plots to be similar in shape, not necessarily equal in area. The land has equally spaced poles, marked as dots in the below figure. Two ropes, R1\text{R1} and R2,\text{R2}, are already present and cannot be moved. What is the least number of additional\textsf{additional} straight …
Official PYQ2021General AptitudeMCQ · 1 mark
​​​​​​The ratio of boys to girls in a class is 77 to 33. Among the options below, an acceptable value for the total number of students in the class is:
Official PYQ2021General AptitudeMCQ · 1 mark
A polygon is convex if, for every pair of points, P\text{P} and Q\text{Q} belonging to the polygon, the line segment PQ\text{PQ} lies completely inside or on the polygon. Which one of the following is NOT‾\underline{\text{NOT}} a convex polygon?
Official PYQ2021General AptitudeMCQ · 1 mark
A circular sheet of paper is folded along the lines in the directions shown. The paper, after being punched in the final folded state as shown and unfolded in the reverse order of folding, will look like _______.
Official PYQ2021General AptitudeMCQ · 1 mark
Consider the following sentences: Everybody in the class is prepared for the exam. Babu invited Danish to his home because he enjoys playing chess. Which of the following is the CORRECT\text{CORRECT} observation about the above two sentences?
Official PYQ2021General AptitudeMCQ · 1 mark
___________ is to surgery as writer is to ___________ Which one of the following options maintains a similar logical relation in the above sentence?
Official PYQ2021General AptitudeMCQ · 2 marks
ItemsCostProfit %Marked Price(₹)(₹)P5,400−−−5,860Q−−−2510,000\begin{array}{|c|c|c|c|} \hline \textbf{Items} & \textbf{Cost} & \textbf{Profit \%} & \textbf{Marked Price} \\ & \text{(₹)} & & \text{(₹)} \\ \hline P &5,400 &---&5,860\\ \hline Q&---&25&10,000\\ \hline\end{array} Details of prices of two items PP and QQ are presented in the above table. The ratio of …
Official PYQ2021General AptitudeMCQ · 2 marks
There are five bags each containing identical sets of ten distinct chocolates. One chocolate is picked from each bag. The probability that at least two chocolates are identical is __________
Official PYQ2021General AptitudeMSQ · 2 marks
Given below are two statements 11 and 22, and two conclusions I\text{I} and II\text{II} Statement 1:\text{Statement 1:} All bacteria are microorganisms. Statement 2:\text{Statement 2:} All pathogens are microorganisms. Conclusion I:\text{Conclusion I:} Some pathogens are bacteria. Conclusion II:\text{Conclusion II:} All pathogens are not bacteria. Based on the above statements and …
Official PYQ2021General AptitudeMCQ · 2 marks
Some people suggest anti-obesity measures (AOM)\text{(AOM)} such as displaying calorie information in restaurant menus. Such measures sidestep addressing the core problems that cause obesity: poverty and income inequality. Which one of the following statements summarizes the passage?
Official PYQ2021Theory of ComputationContext-free Grammars and Push-down AutomataMCQ · 1 mark
Suppose that L1L_1 is a regular language and L2L_2 is a context-free language. Which one of the following languages is NOT\text{NOT} necessarily context-free?
Official PYQ2021Programming and Data StructuresArrays, Stacks and QueuesMCQ · 1 mark
​​​​​Let PP be an array containing nn integers. Let tt be the lowest upper bound on the number of comparisons of the array elements, required to find the minimum and maximum values in an arbitrary array of nn elements. Which one of the following choices is correct?
Official PYQ2021AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
Consider the following three functions. f1=10nf2=nlog⁡nf3=nnf_1=10^n\quad f_2=n^{\log n}\quad f_3=n^{\sqrt {n}} Which one of the following options arranges the functions in the increasing order of asymptotic growth rate?
Official PYQ2021Compiler DesignRuntime EnvironmentsMCQ · 1 mark
Consider the following statements. S1:S_1: The sequence of procedure calls corresponds to a preorder traversal of the activation tree. S2:S_2: The sequence of procedure returns corresponds to a postorder traversal of the activation tree. Which one of the following options is correct?