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 PYQ2014Operating SystemProcesses and ThreadsMCQ · 1 mark
Which one of the following is FALSE?
Official PYQ2014Operating SystemI/O SchedulingNAT · 1 mark
Suppose a disk has 201201 cylinders, numbered from 00 to 200200. At some time the disk arm is at cylinder 100100, and there is a queue of disk access requests for cylinders 30,85,90,100,105,110,13530, 85, 90, 100, 105, 110, 135 and 145145. If Shortest-Seek Time First (SSTF) is being used for scheduling the disk access, the request for cylinder 9090 is serviced after …
Official PYQ2014Software Engineering (Historical)MCQ · 1 mark
Match the following: 1) Waterfall model a) Specifications can be developed incrementally 2) Evolutionary model b) Requirements compromises are inevitable 3) Component-based software engineering c) Explicit recognition of risk 4) Spiral development d) Inflexible partitioning of the project into stages
Official PYQ2014Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
Consider the finite automaton in the following figure: What is the set of reachable states for the input string 00110011?
Official PYQ2014Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
Which one of the following is TRUE?
Official PYQ2014Compiler DesignLocal OptimizationMCQ · 1 mark
Which one of the following is FALSE?
Official PYQ2014AlgorithmsGraph Traversals (BFS, DFS)MCQ · 1 mark
Consider the directed graph below given. Which one of the following is TRUE?
Official PYQ2014AlgorithmsSearching, Sorting, HashingMCQ · 1 mark
Let PP be quicksort program to sort numbers in ascending order using the first element as the pivot. Let t1t_1 and t2t_2 be the number of comparisons made by P for the inputs [1 2 3 4 5][1 \ 2 \ 3 \ 4 \ 5] and [4 1 5 3 2][4 \ 1 \ 5 \ 3 \ 2] respectively. Which one of the following holds?
Official PYQ2014Programming and Data StructuresTreesNAT · 1 mark
Consider a rooted n node binary tree represented using pointers. The best upper bound on the time required to determine the number of subtrees having exactly 44 nodes is O(nalog⁡bn)O(n^a\log^bn). Then the value of a+10ba+10b is __________.
Official PYQ2014AlgorithmsGraph Traversals (BFS, DFS)MCQ · 1 mark
Let GG be a graph with nn vertices and mm edges. What is the tightest upper bound on the running time of Depth First Search on GG, when GG is represented as an adjacency matrix?
Official PYQ2014Programming and Data StructuresProgramming in CMCQ · 1 mark
Consider the following program in C language: #include <stdio.h> main() { int i; int*pi = &i; scanf("%d",pi); printf("%d\n", i+5); } Which one of the following statements is TRUE?
Official PYQ2014Digital LogicNumber Representations (Fixed and Floating Point)NAT · 1 mark
The base (or radix) of the number system such that the following equation holds is____________. 31220=13.1\frac{312}{20} = 13.1
Official PYQ2014Computer Organization and ArchitectureMachine Instructions and Addressing ModesNAT · 1 mark
A machine has a 32-bit32\text{-bit} architecture, with 1-word1\text{-word} long instructions. It has 6464 registers, each of which is 3232 bits long. It needs to support 4545 instructions, which have an immediate operand in addition to two register operands. Assuming that the immediate operand is an unsigned integer, the maximum value of the immediate …
Official PYQ2014Digital LogicMinimization (K-Maps etc.)MCQ · 1 mark
Consider the following Boolean expression for F: F(P,Q,R,S)=PQ+PˉQR+PˉQRˉSF(P,Q,R,S)= PQ + \bar{P}QR + \bar{P}Q\bar{R}S The minimal sum−-of−-products form of FF is
Official PYQ2014Engineering MathematicsCalculus: Limits, Continuity, DifferentiabilityMCQ · 1 mark
Let the function f(θ)=∣sin⁡θcos⁡θtan⁡θsin⁡(π6)cos⁡(π6)tan⁡(π6)sin⁡(π3)cos⁡(π3)tan⁡(π3)∣f(\theta) = \begin{vmatrix} \sin\theta & \cos\theta & \tan\theta \\ \sin(\frac{\pi}{6}) & \cos(\frac{\pi}{6}) & \tan(\frac{\pi}{6}) & \\ \sin(\frac{\pi}{3}) & \cos(\frac{\pi}{3}) & \tan(\frac{\pi}{3}) \end{vmatrix} where θ∈[π6,π3]\theta \in \left[ \frac{\pi}{6},\frac{\pi}{3} \right] and f′(θ)f'(\theta) denote the …
Official PYQ2014Engineering MathematicsEigenvalues and Eigenvectors, LU DecompositionNAT · 1 mark
The value of the dot product of the eigenvectors corresponding to any pair of different eigenvalues of a 4−by−44-by-4 symmetric positive definite matrix is ___________
Official PYQ2014Engineering MathematicsLinear Algebra: Matrices, Determinants, System of Linear EquationsNAT · 1 mark
Consider the following system of equations: 3x+2y=13x + 2y = 1 4x+7z=14x + 7z = 1 x+y+z=3x + y + z = 3 x−2y+7z=0x - 2y + 7z = 0 The number of solutions for this system is ______________
Official PYQ2014Programming and Data StructuresGraphsMCQ · 1 mark
Let G=(V,E)G=(V,E) be a directed graph where VV is the set of vertices and EE the set of edges. Then which one of the following graphs has the same strongly connected components as GG ?
Official PYQ2014Engineering MathematicsProbability: Random Variables and DistributionsNAT · 1 mark
Suppose you break a stick of unit length at a point chosen uniformly at random. Then the expected length of the shorter stick is ________ .
Official PYQ2014General AptitudeNAT · 1 mark
When a point inside of a tetrahedron (a solid with four triangular surfaces) is connected by straight lines to its corners, how many (new) internal planes are created with these lines?