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 PYQ2005Compiler DesignParsing (LL, LR)MCQ · 1 mark
The grammar A→AA∣(A)∣ϵA \rightarrow AA \mid (A) \mid \epsilon is not suitable for predictive-parsing because the grammar is:
Official PYQ2005Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
The time complexity of computing the transitive closure of a binary relation on a set of nn elements is known to be:
Official PYQ2005AlgorithmsMinimum Spanning TreesMCQ · 1 mark
An undirected graph GG has nn nodes. its adjacency matrix is given by an n×nn \times n square matrix whose (i) diagonal elements are 0’s and (ii) non-diagonal elements are 1’s. Which one of the following is TRUE?
Official PYQ2005Programming and Data StructuresArrays, Stacks and QueuesMCQ · 1 mark
A program PP reads in 500500 integers in the range [0,100][0, 100] representing the scores of 500500 students. It then prints the frequency of each score above 5050. What would be the best way for PP to store the frequencies?
Official PYQ2005Object-Oriented Programming (Historical)MCQ · 1 mark
Which one of the following are essential features of an object-oriented programming language? Abstraction and encapsulation Strictly-typedness Type-safe property coupled with sub-type rule Polymorphism in the presence of inheritance
Official PYQ2005Programming and Data StructuresProgramming in CMCQ · 1 mark
A common property of logic programming languages and functional languages is:
Official PYQ2005Programming and Data StructuresTreesMCQ · 1 mark
An Abstract Data Type (ADT) is:
Official PYQ2005Programming and Data StructuresProgramming in CMCQ · 1 mark
What does the following C-statement declare? int (*f) (int * );
Official PYQ2005Engineering MathematicsProbability: Random Variables and DistributionsMCQ · 1 mark
A random bit string of length n is constructed by tossing a fair coin n times and setting a bit to 0 or 1 depending on outcomes head and tail, respectively. The probability that two such randomly generated strings are not identical is:
Official PYQ2005Engineering MathematicsConditional Probability and Bayes TheoremMCQ · 1 mark
Box PP has 22 red balls and 33 blue balls and box QQ has 33 red balls and 11 blue ball. A ball is selected as follows: (i) select a box (ii) choose a ball from the selected box such that each ball in the box is equally likely to be chosen. The probabilities of selecting boxes PP and QQ are 13\dfrac{1}{3} and 23\dfrac{2}{3} …
Official PYQ2005Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsMCQ · 1 mark
Let G(x)=1(1−x)2=∑i=0∞g(i)xiG(x) = \frac{1}{(1-x)^2} = \sum\limits_{i=0}^\infty g(i)x^i, where ∣x∣<1|x| < 1. What is g(i)g(i)?
Official PYQ2005Engineering MathematicsEigenvalues and Eigenvectors, LU DecompositionMCQ · 1 mark
What are the eigenvalues of the following 2×22\times 2 matrix? (2−1−45)\left( \begin{array}{cc} 2 & -1\\ -4 & 5\end{array}\right)
Official PYQ2005Engineering MathematicsLinear Algebra: Matrices, Determinants, System of Linear EquationsMCQ · 1 mark
Consider the following system of linear equations : 2x1−x2+3x3=12x_1 - x_2 + 3x_3 = 1 3x1+2x2+5x3=23x_1 + 2x_2 + 5x_3 = 2 −x1+4x2+x3=3-x_1+4x_2+x_3 = 3 The system of equations has
Official PYQ2005Engineering MathematicsGraphs: Connectivity, Matching, ColouringMCQ · 1 mark
Which one of the following graphs is NOT planar?
Official PYQ2005Engineering MathematicsMonoids and GroupsMCQ · 1 mark
Consider the set HH of all 3∗33 * 3 matrices of the type (afe0bd00c)\left( \begin{array}{ccc} a & f & e \\ 0 & b & d \\ 0 & 0 & c \end{array} \right) where a,b,c,d,ea,b,c,d,e and ff are real numbers and abc≠0.abc ≠ 0. Under the matrix multiplication operation, the set HH is:
Official PYQ2005Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsMCQ · 1 mark
What is the minimum number of ordered pairs of non-negative numbers that should be chosen to ensure that there are two pairs (a,b)(a,b) and (c,d)(c,d) in the chosen set such that, a≡cmod  3a \equiv c\mod 3 and b≡dmod  5b \equiv d \mod 5
Official PYQ2005Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let f:B→Cf: B \to C and g:A→Bg: A \to B be two functions and let h=fogh = f o g. Given that hh is an onto function which one of the following is TRUE?
Official PYQ2005Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let RR and SS be any two equivalence relations on a non-empty set AA. Which one of the following statements is TRUE?
Official PYQ2005Engineering MathematicsPropositional and First Order LogicMCQ · 1 mark
Let P,Q,P, Q, and RR be three atomic propositional assertions. Let XX denote (P∨Q)→R( P ∨ Q ) → R and YY denote (P→R)∨(Q→R).(P → R) ∨ (Q → R). Which one of the following is a tautology?
Official PYQ2005Engineering MathematicsPropositional and First Order LogicMCQ · 1 mark
What is the first order predicate calculus statement equivalent to the following? "Every teacher is liked by some student"