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 PYQ2015Engineering MathematicsSets, Relations and FunctionsNAT · 1 mark
The number of onto functions (surjective functions) from set X={1,2,3,4}X = \{1, 2, 3, 4\} to set Y={a,b,c}Y=\{a,b,c\} is ______.
Official PYQ2015Numerical Methods (Historical)MCQ · 1 mark
The secant method is used to find the root of an equation f(x)=0f(x)=0. It is started from two distinct estimates xax_a and xbx_b for the root. It is an iterative procedure involving linear interpolation to a root. The iteration stops if f(xb)f(x_b) is very small and then xbx_b is the solution. The procedure is given below. Observe that there is an …
Official PYQ2015Programming and Data StructuresArrays, Stacks and QueuesNAT · 1 mark
Consider the C program below #include <stdio.h> int *A, stkTop; int stkFunc (int opcode, int val) { static int size=0, stkTop=0; switch (opcode) { case -1: size = val; break; case 0: if (stkTop < size ) A[stkTop++]=val; break; default: if (stkTop) return A[--stkTop]; } return -1; } int main() { int B[20]; A=B; stkTop = -1; stkFunc (-1, 10); stkFunc …
Official PYQ2015AlgorithmsAlgorithm Design: Greedy TechniquesMCQ · 1 mark
Given below are some algorithms, and some algorithm design paradigms. …
Official PYQ2015Digital LogicBoolean AlgebraNAT · 1 mark
The number of min-terms after minimizing the following Boolean expression is _______. [D′+AB′+A′C+AC′D+A′C′D]′[D'+AB'+A'C+AC'D+A'C'D]'
Official PYQ2015Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
Consider the alphabet Σ={0,1}\Sigma = \{0, 1\}, the null/empty string λ\lambda and the set of strings X0,X1, and X2X_0, X_1, \text{ and } X_2 generated by the corresponding non-terminals of a regular grammar. X0,X1, and X2X_0, X_1, \text{ and } X_2 are related as follows. X0=1X1X_0 = 1 X_1 X1=0X1+1X2X_1 = 0 X_1 + 1 X_2 X2=0X1+{λ}X_2 = 0 X_1 + \{ \lambda \} Which one of the following …
Official PYQ2015Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMCQ · 1 mark
Assume that the bandwidth for a TCP\text{TCP} connection is 10485601048560 bits/sec. Let α\alpha be the value of RTT in milliseconds (rounded off to the nearest integer) after which the TCP\text{TCP} window scale option is needed. Let β\beta be the maximum possible window size with window scale option. Then the values of α\alpha and β\beta are
Official PYQ2015Programming and Data StructuresGraphsMCQ · 1 mark
Which one of the following hash functions on integers will distribute keys most uniformly over 1010 buckets numbered 00 to 99 for ii ranging from 00 to 20202020?
Official PYQ2015DatabasesNormal FormsMCQ · 1 mark
Consider two relations R1(A,B)R_1(A,B) with the tuples (1,5),(3,7)(1,5), (3,7) and R2(A,C)=(1,7),(4,9)R_2(A,C) = (1,7),(4,9). Assume that R(A,B,C)R(A,B,C) is the full natural outer join of R1R_1 and R2R_2. Consider the following tuples of the form (A,B,C):(A,B,C): a=(1,5,null),b=(1,null,7),c=(3,null,9),d=(4,7,null),e=(1,5,7),a = (1,5,null), b=(1,null,7), c=(3,null,9), d=(4,7,null), e=(1,5,7), f=(3,7,null),g=(4,null,9).f=(3,7,null), g=(4,null,9). Which one of the …
Official PYQ2015Programming and Data StructuresArrays, Stacks and QueuesNAT · 1 mark
A Young tableau is a 2D2D array of integers increasing from left to right and from top to bottom. Any unfilled entries are marked with ∞\infty, and hence there cannot be any entry to the right of, or below a ∞\infty. The following Young tableau consists of unique entries. …
Official PYQ2015Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Consider 66 memory partitions of sizes 200200 KB\text{KB}, 400400 KB\text{KB}, 600600 KB\text{KB}, 500500 KB\text{KB}, 300300 KB\text{KB} and 250250 KB\text{KB}, where KB\text{KB}refers to kilobyte\text{kilobyte}. These partitions need to be allotted to four processes of sizes 357357 KB\text{KB}, 210210 KB\text{KB}, 468468 …
Official PYQ2015Compiler DesignIntermediate Code GenerationMCQ · 1 mark
Consider the intermediate code given below. (1) i=1 (2) j=1 (3) t1 = 5 * i (4) t2 = t1 + j (5) t3 = 4 * t2 (6) t4 = t3 (7) a[t4] = -1 (8) j = j + 1 (9) if j <= 5 goto (3) (10) i = i +1 (11) if i < 5 goto (2) The number of nodes and edges in control-flow-graph constructed for the above code, respectively, are
Official PYQ2015Engineering MathematicsGraphs: Connectivity, Matching, ColouringMCQ · 1 mark
A graph is self-complementary if it is isomorphic to its complement. For all self-complementary graphs on nn vertices, nn is
Official PYQ2015Engineering MathematicsLinear Algebra: Matrices, Determinants, System of Linear EquationsNAT · 1 mark
Perform the following operations on the matrix [344579105132195]\begin{bmatrix} 3 & 4 & 45 \\ 7 & 9 & 105 \\ 13 & 2 & 195 \end{bmatrix} Add the third row to the second row Subtract the third column from the first column. The determinant of the resultant matrix is _____.
Official PYQ2015Engineering MathematicsCalculus: Limits, Continuity, DifferentiabilityMCQ · 1 mark
Let f(x)=x−(13)f(x)=x^{-\left(\frac{1}{3}\right)} and AA denote the area of region bounded by f(x)f(x) and the X-axis, when xx varies from −1-1 to 11. Which of the following statements is/are TRUE? ff is continuous in [−1,1][-1, 1] ff is not bounded in [−1,1][-1, 1] AA is nonzero and finite
Official PYQ2015Operating SystemMemory Management and Virtual MemoryNAT · 1 mark
A computer system implements a 40  -bit40\;\text{-bit} virtual address, page size of 8  kilobytes8\;\text{kilobytes}, and a 128-entry128\text{-entry} translation look-aside buffer (TLB)\text{(TLB)} organized into 3232 sets each having 44 ways. Assume that the TLB\text{TLB} tag does not store any process id. The minimum length of the TLB\text{TLB} tag in bits is ______.
Official PYQ2015Operating SystemDeadlockMCQ · 1 mark
A system has 66 identical resources and NN processes competing for them. Each process can request at most 22 resources. Which one of the following values of NN could lead to a deadlock?
Official PYQ2015Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 1 mark
Assume that for a certain processor, a read request takes 50 nanoseconds50\:\text{nanoseconds} on a cache miss and 5 nanoseconds5\:\text{nanoseconds} on a cache hit. Suppose while running a program, it was observed that 80%80\% of the processor's read requests result in a cache hit. The average read access time in nanoseconds is ______.
Official PYQ2015AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
An unordered list contains nn distinct elements. The number of comparisons to find an element in this list that is neither maximum nor minimum is
Official PYQ2015Theory of ComputationUndecidabilityMCQ · 1 mark
Consider the following statements. The complement of every Turing decidable language is Turing decidable There exists some language which is in NP but is not Turing decidable If L is a language in NP, L is Turing decidable Which of the above statements is/are true?