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 · 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?
Official PYQ2020Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Consider allocation of memory to a new process. Assume that none of the existing holes in the memory will exactly fit the process’s memory requirement. Hence, a new hole of smaller size will be created if allocation is made in any of the existing holes. Which one of the following statement is TRUE?
Official PYQ2020Operating SystemCPU SchedulingMCQ · 1 mark
Consider the following statements about process state transitions for a system using preemptive scheduling. A running process can move to ready state. A ready process can move to running state. A blocked process can move to running state. A blocked process can move to ready state. Which of the above statements are TRUE?
Official PYQ2020DatabasesTuple Calculus and SQLMCQ · 1 mark
Consider a relational database containing the following schemas. …
Official PYQ2020DatabasesER-modelMCQ · 1 mark
Which one of the following is used to represent the supporting many-one relationships of a weak entity set in an entity-relationship diagram?
Official PYQ2020Programming and Data StructuresLinked ListsMCQ · 1 mark
What is the worst case time complexity of inserting nn elements into an empty linked list, if the linked list needs to be maintained in sorted order?
Official PYQ2020Engineering MathematicsSets, Relations and FunctionsNAT · 1 mark
Let R\mathcal{R} be the set of all binary relations on the set {1,2,3}\{1,2,3\}. Suppose a relation is chosen from R\mathcal{R} at random. The probability that the chosen relation is reflexive (round off to 33 decimal places) is ______.