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 PYQ2015Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMCQ · 1 mark
Identify the correct order in which a server process must invoke the function calls accept, bind, listen, and recv according to UNIX socket API.
Official PYQ2015Compiler DesignLexical AnalysisMCQ · 1 mark
Match the following: …
Official PYQ2015Engineering MathematicsSets, Relations and FunctionsNAT · 1 mark
The cardinality of the power set of {0,1,2,…,10}\{0, 1, 2, \dots , 10\} is _______
Official PYQ2015Programming and Data StructuresBinary HeapsMCQ · 1 mark
Consider a complete binary tree where the left and right subtrees of the root are max-heaps. The lower bound for the number of operations to convert the tree to a heap is
Official PYQ2015Programming and Data StructuresRecursionMCQ · 1 mark
Consider the following function written in the C programming langauge : void foo(char *a) { if (*a && *a != ' ') { foo(a+1); putchar(*a); } } The output of the above function on input "ABCD EFGHABCD \ EFGH" is
Official PYQ2015Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let RR be the relation on the set of positive integers such that aRbaRb and only if aa and bb are distinct and let have a common divisor other than 1.1. Which one of the following statements about RR is true?
Official PYQ2015Compiler DesignLocal OptimizationMCQ · 1 mark
In the context of abstract-syntax-tree (AST) and control-flow-graph (CFG), which one of the following is TRUE?
Official PYQ2015Web Technologies (Historical)MCQ · 1 mark
Which of the following statements is NOT correct about HTTP cookies?
Official PYQ2015Software Engineering (Historical)MCQ · 1 mark
Consider the basic COCOMO model where EE is the effort applied in person-months, DD is the development time in chronological months, KLOCKLOC is the estimated number of delivered lines of code (in thousands) and ab,bb,cb,dba_b, b_b, c_b, d_b have their useful meanings. The basic COCOMO equations are of the form
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: