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 PYQ1997Operating SystemDeadlockMCQ · 1 mark
An operating system contains 33 user processes each requiring 22 units of resource RR. The minimum number of units of RR such that no deadlocks will ever arise is
Official PYQ1997Theory of ComputationContext-free Grammars and Push-down AutomataMCQ · 1 mark
Which of the following languages over {a,b,c}\left\{a,b,c\right\} is accepted by a deterministic pushdown automata? Note: wRw^R is the string obtained by reversing ′w′'w'.
Official PYQ1997Theory of ComputationUndecidabilityMCQ · 1 mark
Which one of the following is not decidable?
Official PYQ1997Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
Which one of the following regular expressions over {0,1}\{0,1\} denotes the set of all strings not containing 100\text{100} as substring?
Official PYQ1997Engineering MathematicsMonoids and GroupsMCQ · 1 mark
The number of equivalence relations of the set {1,2,3,4}\{1,2,3,4\} is
Official PYQ1997Programming and Data StructuresGraphsMCQ · 1 mark
Let GG be the graph with 100100 vertices numbered 11 to 100100. Two vertices ii and jj are adjacent if ∣i−j∣=8\vert i-j \vert =8 or ∣i−j∣=12\vert i-j \vert=12. The number of connected components in GG is
Official PYQ1997Engineering MathematicsPartial Orders and LatticesMCQ · 1 mark
A partial order ≤≤ is defined on the set S={x,a1,a2,…,an,y}S=\left \{ x, a_1, a_2, \ldots, a_n, y \right \} as xx ≤i\leq _{i} aia_{i} for all ii and ai≤ya_{i}\leq y for all ii, where n≥1n ≥ 1. The number of total orders on the set S which contain the partial order ≤≤ is
Official PYQ1997Digital LogicCombinational CircuitsMCQ · 1 mark
Consider a logic circuit shown in figure below. The functions f1,f2 and ff_1, f_2 \text{ and } f (in canonical sum of products form in decimal notation) are : f1(w,x,y,z)=∑8,9,10f_1 (w, x, y, z) = \sum 8, 9, 10 f2(w,x,y,z)=∑7,8,12,13,14,15f_2 (w, x, y, z) = \sum 7, 8, 12, 13, 14, 15 f(w,x,y,z)=∑8,9f (w, x, y, z) = \sum 8, 9 The function f3f_3 is
Official PYQ1997Digital LogicNumber Representations (Fixed and Floating Point)MCQ · 1 mark
Given (224)r=(13)r\sqrt{(224)_r} =(13)_r. The value of the radix rr is:
Official PYQ1997Computer Organization and ArchitectureALU, Data-path and Control UnitMCQ · 1 mark
A micro instruction is to be designed to specify: none or one of the three micro operations of one kind and none or upto six micro operations of another kind The minimum number of bits in the micro-instruction is:
Official PYQ1997Digital LogicMinimization (K-Maps etc.)MCQ · 1 mark
Let f(x,y,z)=xˉ+yˉx+xzf(x, y, z)=\bar{x} + \bar{y}x + xz be a switching function. Which one of the following is valid?
Official PYQ1997Compiler DesignRuntime EnvironmentsMCQ · 1 mark
The expression (a∗b)∗c  op…( a * b) * c \; op \dots where ‘op’ is one of ‘++’, ‘∗*’ and ‘↑\uparrow’ (exponentiation) can be evaluated on a CPU with single register without storing the value of (a∗ba * b) if
Official PYQ1997AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
Let T(n)T(n) be the function defined by T(1)=1, T(n)=2T(⌊n2⌋)+nT(1) =1, \: T(n) = 2T (\lfloor \frac{n}{2} \rfloor ) + \sqrt{n} for n≥2n \geq 2. Which of the following statements is true?
Official PYQ1997Programming and Data StructuresArrays, Stacks and QueuesMCQ · 1 mark
A priority queue QQ is used to implement a stack that stores characters. PUSH (C) is implemented as INSERT (Q,C,K)(Q, C, K) where KK is an appropriate integer key chosen by the implementation. POP is implemented as DELETEMIN(Q)(Q). For a sequence of operations, the keys chosen are in
Official PYQ1997Programming and Data StructuresBinary Search TreesMCQ · 1 mark
A binary search tree contains the value 1,2,3,4,5,6,7,81, 2, 3, 4, 5, 6, 7, 8. The tree is traversed in pre-order and the values are printed out. Which of the following sequences is a valid output?
Official PYQ1997Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
A polynomial p(x)p(x) is such that p(0)=5,p(1)=4,p(2)=9p(0) = 5, p(1) = 4, p(2) = 9 and p(3)=20p(3) = 20. The minimum degree it should have is
Official PYQ1997Engineering MathematicsLinear Algebra: Matrices, Determinants, System of Linear EquationsMCQ · 1 mark
Let A=(aij)A=(a_{ij}) be an nn-rowed square matrix and I12I_{12} be the matrix obtained by interchanging the first and second rows of the nn-rowed Identity matrix. Then AI12AI_{12} is such that its first
Official PYQ1997Engineering MathematicsMaxima and Minima, Mean Value Theorem, IntegrationMCQ · 1 mark
What is the maximum value of the function f(x)=2x2−2x+6f(x) = 2x^2 - 2x + 6 in the interval [0,2]\left[0,2 \right]?
Official PYQ1997Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Dirty bit for a page in a page table
Official PYQ1997Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Thrashing