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 PYQ2020General AptitudeMCQ · 1 mark
Raman is confident of speaking English _______six months as he has been practising regularly_______the last three weeks
Official PYQ2020General AptitudeMCQ · 1 mark
His knowledge of the subject was excellent but his classroom performance was_______.
Official PYQ2020General AptitudeMCQ · 1 mark
Select the word that fits the analogy: Cook : Cook :: Fly : _______
Official PYQ2020General AptitudeMCQ · 1 mark
The dawn of the 2121st century witnessed the melting glaciers oscillating between giving too much and too little to billions of people who depend on them for fresh water. The UN climate report estimates that without deep cuts to man-made emissions, at least 30%30\% of the northern hemisphere’s surface permafrost could melt by the end of the century. Given …
Official PYQ2020General AptitudeMCQ · 1 mark
There are multiple routes to reach from node 11 to node 22, as shown in the network. The cost of travel on an edge between two nodes is given in rupees. Nodes ‘a’,‘b’,‘c’,‘d’,‘e’,\text{‘}a\text{’}, \text{‘}b\text{’}, \text{‘}c\text{’}, \text{‘}d\text{’}, \text{‘}e\text{’}, and ‘f’\text{‘}f\text{’} are toll booths. The toll price at toll booths marked …
Official PYQ2020General AptitudeMCQ · 2 marks
Goods and Services Tax (GST) is an indirect tax introduced in India in 20172017 that is imposed on the supply of goods and services, and it subsumes all indirect taxes except few. It is a destination-based tax imposed on goods and services used, and it is not imposed at the point of origin from where goods come. GST also has a few components specific to …
Official PYQ2020General AptitudeMCQ · 2 marks
If P=3P = 3, R=27R = 27, T=243T = 243, then Q+S=Q + S = ________
Official PYQ2020General AptitudeMCQ · 2 marks
The figure below shows an annular ring with outer and inner as bb and aa, respectively. The annular space has been painted in the form of blue colour circles touching the outer and inner periphery of annular space. If maximum nn number of circles can be painted, then the unpainted area available in annular space is _____.
Official PYQ2020General AptitudeMCQ · 2 marks
Two straight lines are drawn perpendicular to each other in X−YX-Y plane. If α\alpha and β\beta are the acute angles the straight lines make with the X-\text{X-} axis, then α+β\alpha + \beta is ________.
Official PYQ2020General AptitudeMCQ · 2 marks
The total revenue of a company during 2014−20182014-2018 is shown in the bar graph. If the total expenditure of the company in each year is 500500 million rupees, then the aggregate profit or loss (in percentage) on the total expenditure of the company during 2014−20182014-2018 is ___________.
Official PYQ2020Engineering MathematicsMaxima and Minima, Mean Value Theorem, IntegrationMCQ · 1 mark
Consider the functions e−xe^{-x} x2−sin⁡xx^{2}-\sin x x3+1\sqrt{x^{3}+1} Which of the above functions is/are increasing everywhere in [0,1][ 0,1]?
Official PYQ2020AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
For parameters aa and bb, both of which are ω(1)\omega(1), T(n)=T(n1/a)+1T(n) = T(n^{1/a})+1, and T(b)=1T(b)=1. Then T(n)T(n) is
Official PYQ2020Computer Organization and ArchitectureI/O Interface: Interrupt and DMA ModeMCQ · 1 mark
Consider the following statements. Daisy chaining is used to assign priorities in attending interrupts. When a device raises a vectored interrupt, the CPU does polling to identify the source of interrupt. In polling, the CPU periodically checks the status bits to know if any device needs its attention. During DMA, both the CPU and DMA controller can be bus …
Official PYQ2020Computer Organization and ArchitectureALU, Data-path and Control UnitMCQ · 1 mark
Consider the following data path diagram. Consider an instruction: R0←R1+R2R0 \leftarrow R1 +R2. The following steps are used to execute it over the given data path. Assume that PC is incremented appropriately. The subscripts rr and ww indicate read and write operations, respectively. R2r, TEMP1r,ALUadd, TEMP2wR2_{r},\text{ TEMP1}_{r},ALU_{\text{add}}, \text{ TEMP2}_{w} …
Official PYQ2020Programming and Data StructuresBinary Search TreesMCQ · 1 mark
The preorder traversal of a binary search tree is 15,10,12,11,20,18,16,1915, 10, 12, 11, 20, 18, 16, 19. Which one of the following is the postorder traversal of the tree?
Official PYQ2020Programming and Data StructuresTreesMCQ · 1 mark
What is the worst case time complexity of inserting n2n^{2} elements into an AVL-tree with nn elements initially?
Official PYQ2020Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
Which one of the following regular expressions represents the set of all binary strings with an odd number of 1’1’s?
Official PYQ2020Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
Consider the following statements. If L1∪L2L_1 \cup L_2 is regular, then both L1L_1 and L2L_2 must be regular. The class of regular languages is closed under infinite union. Which of the above statements is/are TRUE?
Official PYQ2020Compiler DesignRuntime EnvironmentsMCQ · 1 mark
Consider the following statements. Symbol table is accessed only during lexical analysis and syntax analysis. Compilers for programming languages that support recursion necessarily need heap storage for memory allocation in the run-time environment. Errors violating the condition ‘any variable must be declared before its use’ are detected during syntax …
Official PYQ2020Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
Consider the language L={an∣n≥0}∪{anbn∣n≥0}L = \{a^{n}\mid n \geq 0\} \cup \{a^{n}b^{n}\mid n \geq 0\} and the following statements. LL is deterministic context-free. LL is context-free but not deterministic context-free. LL is not LL(k)LL(k) for any kk. Which of the above statements is/are TRUE?