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 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?
Official PYQ2014General AptitudeNAT · 1 mark
In a survey, 300300 respondents were asked whether they own a vehicle or not. If yes, they were further asked to mention whether they own a car or scooter or both. Their responses are tabulated below. What percent of respondents do not own a scooter? …
Official PYQ2014General AptitudeMCQ · 1 mark
Geneticists say that they are very close to confirming the genetic roots of psychiatric illnesses such as depression and schizophrenia, and consequently, that doctors will be able to eradicate these diseases through early identification and gene therapy. On which of the following assumptions does the statement above rely? Select one:
Official PYQ2014General AptitudeNAT · 1 mark
Round-trip tickets to a tourist destination are eligible for a discount of 10%10\% on the total fare. In addition, groups of 44 or more get a discount of 5%5\% on the total fare. If the one way single person fare is RsRs 100100, a group of 55 tourists purchasing round-trip tickets will be charged RsRs __________
Official PYQ2014General AptitudeMCQ · 1 mark
The Palghat Gap (or Palakkad Gap) , a region about 30  km30\;\text{km} wide in the southern part of the Western Ghats in India, is lower than the hilly terrain to its north and south. The exact reasons for the formation of this gap are not clear. It results in the neighbouring regions of Tamil Nadu getting more rainfall from the South West monsoon and the …
Official PYQ2014General AptitudeNAT · 1 mark
If (z+1z)2=98\large\left(z + \dfrac{1}{z}\right)^{2}= 98, compute (z2+1z2)\large \left(z^{2} +\dfrac{1}{z^{2}}\right).