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 PYQ2015AlgorithmsAsymptotic Worst Case Time and Space ComplexityNAT · 1 mark
Consider the following C function. int fun(int n) { int x=1, k; if (n==1) return x; for (k=1; k<n; ++k) x = x + fun(k) * fun (n-k); return x; } The return value of fun(5)fun(5) is ______.
Official PYQ2015Engineering MathematicsSets, Relations and FunctionsNAT · 1 mark
The number of divisors of 21002100 is ____.
Official PYQ2015Programming and Data StructuresTreesNAT · 1 mark
A binary tree T has 2020 leaves. The number of nodes in T having two children is ______.
Official PYQ2015Digital LogicSequential CircuitsNAT · 1 mark
The minimum number of JK\text{JK} flip-flops required to construct a synchronous counter with the count sequence (0,0,1,1,2,2,3,3,0,0,…)(0, 0, 1, 1, 2, 2, 3, 3, 0, 0, \ldots) is _______.
Official PYQ2015DatabasesFile Organization and Indexing (B and B+ Trees)NAT · 1 mark
With reference to the B+B^+ tree index of order 11 shown below, the minimum number of nodes (including the Root node) that must be fetched in order to satisfy the following query. "Get all records with a search key greater than or equal to 77 and less than 1515 " is ______.
Official PYQ2015Engineering MathematicsEigenvalues and Eigenvectors, LU DecompositionNAT · 1 mark
The larger of the two eigenvalues of the matrix [4521]\begin{bmatrix} 4 & 5 \\ 2 & 1 \end{bmatrix} is _______.
Official PYQ2015Software Engineering (Historical)MCQ · 1 mark
A software requirements specification (SRS) document should avoid discussing which one of the following?
Official PYQ2015Engineering MathematicsPropositional and First Order LogicMCQ · 1 mark
Consider the following two statements. S1S_1: If a candidate is known to be corrupt, then he will not be elected S2S_2: If a candidate is kind, he will be elected Which one of the following statements follows from S1S_1 and S2S_2 as per sound inference rules of logic?
Official PYQ2015Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
Consider two decision problems Q1,Q2Q_1, Q_2 such that Q1Q_1 reduces in polynomial time to 3-SAT and 3-SAT reduces in polynomial time to Q2Q_2. Then which one of the following is consistent with the above statement?
Official PYQ2015DatabasesTransactions and Concurrency ControlMCQ · 1 mark
Consider the following transaction involving two bank accounts xx and yy. read(x); x:=x-50; write (x); read(y); y:=y+50; write(y) The constraint that the sum of the accounts xx and yy should remain constant is that of
Official PYQ2015General AptitudeMCQ · 1 mark
Out of the following 44 sentences, select the most suitable sentence with respect to grammar and usage:
Official PYQ2015General AptitudeNAT · 1 mark
If p,q,r,sp, q, r, s are distinct integers such that: f(p,q,r,s)= max (p,q,r,s)f (p, q, r, s) = \text{ max } (p, q, r, s) g(p,q,r,s)= min (p,q,r,s)g (p, q, r, s) = \text{ min } (p, q, r, s) h(p,q,r,s)=remainder of (p×q)(r×s) if (p×q)>(r×s)h (p, q, r, s) = \text{remainder of } \frac{(p \times q)} {(r \times s)} \text{ if } (p \times q) > (r \times s) …
Official PYQ2015General AptitudeMCQ · 1 mark
In a triangle PQR,PSPQR, PS is the angle bisector of ∠QPR and ∠QPS=60∘\angle QPR \text{ and } \angle QPS =60^\circ. What is the length of PSPS ?
Official PYQ2015General AptitudeMCQ · 1 mark
Four branches of a company are located at M, N, O\text{M, N, O} and P. M\text{P. M} is north of N\text{N} at a distance of 4  km; P4\;\text{km; P} is south of O\text{O} at a distance of 2  km; N2\;\text{km; N} is southeast of O\text{O} by 1  km1\;\text{km}. What is the distance between M\text{M} and P\text{P} in km\text{km}?
Official PYQ2015General AptitudeMCQ · 1 mark
If the list of letters PP, RR, SS, TT, UU is an arithmetic sequence, which of the following are also in arithmetic sequence? 2P,2R,2S,2T,2U2P, 2R, 2S, 2T, 2U P−3,R−3,S−3,T−3,U−3P-3, R-3, S-3, T-3, U-3 P2,R2,S2,T2,U2P^2, R^2, S^2, T^2, U^2
Official PYQ2015General AptitudeMCQ · 1 mark
Based on the given statements, select the most appropriate option to solve the given question. What will be the total weight of 1010 poles each of same weight? Statements: One fourth of the weight of the pole is 5  Kg5\;\text{Kg}. The total weight of these poles is 160  Kg160\;\text{Kg} more than the total weight of two poles.
Official PYQ2015General AptitudeMCQ · 1 mark
A generic term that includes various items of clothing such as a skirt, a pair of trousers and a shirt is
Official PYQ2015Engineering MathematicsMaxima and Minima, Mean Value Theorem, IntegrationMCQ · 1 mark
Consider a function f(x)=1−∣x∣ on −1≤x≤1f(x) = 1- |x| \text{ on } -1 \leq x \leq 1. The value of xx at which the function attains a maximum, and the maximum value of the function are:
Official PYQ2015General AptitudeMCQ · 1 mark
Choose the statement where underlined word is used correctly.
Official PYQ2015General AptitudeMCQ · 1 mark
We __________ our friends's birthday and we _________ how to make it up to him.