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 SystemFile SystemsNAT · 1 mark
A FAT (file allocation table) based file system is being used and the total overhead of each entry in the FAT is 44 bytes in size. Given a 100×106100 \times 10^6 bytes disk on which the file system is stored and data block size is 10310^3 bytes, the maximum size of a file that can be stored on this disk in units of 10610^6 bytes is _________.
Official PYQ2014Software Engineering (Historical)MCQ · 1 mark
Which one of the following is TRUE?
Official PYQ2014Compiler DesignRuntime EnvironmentsMCQ · 1 mark
Which one of the following is NOT performed during compilation?
Official PYQ2014Compiler DesignParsing (LL, LR)MCQ · 1 mark
Consider the grammar defined by the following production rules, with two operators ∗∗ and ++ S → T∗PS\:\to\:T∗P T → U∣T∗UT\:\to\:U\mid T∗U P → Q+P∣QP\:\to\:Q+P\mid Q Q →IdQ\:\to Id U →IdU\:\to Id Which one of the following is TRUE?
Official PYQ2014Theory of ComputationUndecidabilityMCQ · 1 mark
Let A ≤m BA\:\leq_m\:B denotes that language AA is mapping reducible (also known as many-to-one reducible) to language BB. Which one of the following is FALSE?
Official PYQ2014Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
If L1 ={an∣n ≥ 0}L_1\:=\{a^n \mid n\:\geq\:0\} and L2 ={bn∣n ≥ 0}L_2\:= \{b^n \mid n\:\geq\:0\} , consider L1.L2L_1.L_2 is a regular language L1.L2={anbn∣n ≥ 0}L_1.L_2 = \{a^nb^n \mid n\: \geq \:0\} Which one of the following is CORRECT?
Official PYQ2014AlgorithmsGraph Traversals (BFS, DFS)MCQ · 1 mark
Consider the tree arcs of a BFS traversal from a source node WW in an unweighted, connected, undirected graph. The tree TT formed by the tree arcs is a data structure for computing
Official PYQ2014Programming and Data StructuresBinary HeapsMCQ · 1 mark
A priority queue is implemented as a Max-Heap. Initially, it has 55 elements. The level-order traversal of the heap is: 10,8,5,3,210, 8, 5, 3, 2. Two new elements 11 and 77 are inserted into the heap in that order. The level-order traversal of the heap after the insertion of the elements is:
Official PYQ2014Programming and Data StructuresProgramming in CMCQ · 1 mark
Suppose nn and pp are unsigned int variables in a C program. We wish to set pp to nC3^nC_3. If nn is large, which one of the following statements is most likely to set pp correctly?
Official PYQ2014AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
Which one of the following correctly determines the solution of the recurrence relation with T(1)=1T(1) = 1? T(n)=2T(n2)+log⁡nT(n)= 2T\left(\frac {n} {2}\right) + \log n
Official PYQ2014AlgorithmsAsymptotic Worst Case Time and Space ComplexityNAT · 1 mark
Consider the function func shown below: int func(int num) { int count = 0; while (num) { count++; num>>= 1; } return (count); } The value returned by func(435435) is ________
Official PYQ2014Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 1 mark
A 44-way set-associative cache memory unit with a capacity of 1616 KB is built using a block size of 88 words. The word length is 3232 bits. The size of the physical address space is 44 GB. The number of bits for the TAG field is ____
Official PYQ2014Digital LogicSequential CircuitsMCQ · 1 mark
Let k=2nk=2^n. A circuit is built by giving the output of an nn-bit binary counter as input to an n-to-2nn\text{-to-}2^n bit decoder. This circuit is equivalent to a
Official PYQ2014Digital LogicNumber Representations (Fixed and Floating Point)NAT · 1 mark
Consider the equation (123)5=(x8)y(123)_5=(x8)_y with xx and yy as unknown. The number of possible solutions is _____ .
Official PYQ2014Digital LogicBoolean AlgebraMCQ · 1 mark
The dual of a Boolean function F(x1,x2,…,xn,+,.,′)F(x_1,x_2,\dots,x_n,+, .,'), written as FDF^D is the same expression as that of FF with ++ and ⋅⋅ swapped. FF is said to be self-dual if F=FDF = F^D. The number of self-dual functions with nn Boolean variables is
Official PYQ2014Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
A non-zero polynomial f(x)f(x) of degree 3 has roots at x=1x=1, x=2x=2 and x=3x=3. Which one of the following must be TRUE?
Official PYQ2014Engineering MathematicsLinear Algebra: Matrices, Determinants, System of Linear EquationsNAT · 1 mark
If the matrix AA is such that A=[2−47][195]A= \begin{bmatrix} 2\\ −4\\7\end{bmatrix}\begin{bmatrix}1& 9& 5\end{bmatrix} then the determinant of AA is equal to ______.
Official PYQ2014Engineering MathematicsGraphs: Connectivity, Matching, ColouringNAT · 1 mark
The maximum number of edges in a bipartite graph on 1212 vertices is____
Official PYQ2014Engineering MathematicsProbability: Random Variables and DistributionsNAT · 1 mark
Each of the nine words in the sentence "The quick brown fox jumps over the lazy dog”\text{"The quick brown fox jumps over the lazy dog”} is written on a separate piece of paper. These nine pieces of paper are kept in a box. One of the pieces is drawn at random from the box. The expected\text{expected} length of the word drawn is _____________. (The answer should be rounded to one decimal place.)
Official PYQ2014General AptitudeNAT · 1 mark
The ratio of male to female students in a college for five years is plotted in the following line graph. If the number of female students doubled in 20092009, by what percent did the number of male students increase in 20092009?