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 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?
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