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 PYQ2013Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
A computer uses 46-bit46\text{-bit} virtual address, 32-bit32\text{-bit} physical address, and a three–level paged page table organization. The page table base register stores the base address of the first-level table (T1),\text{(T1)}, which occupies exactly one page. Each entry of T1\text{T1} stores the base address of a page of the second-level table …
Official PYQ2013Compiler DesignLocal OptimizationMCQ · 1 mark
The following code segment is executed on a processor which allows only register operands in its instructions. Each instruction can have atmost two source operands and one destination operand. Assume that all variables are dead after this code segment. c = a + b; d = c * a; e = c + a; x = c * c; if (x > a) { y = a * a; } else { d = d * d; e = e * e; } …
Official PYQ2013Programming and Data StructuresArrays, Stacks and QueuesMCQ · 1 mark
The procedure given below is required to find and replace certain characters inside an input character string supplied in array AA. The characters to be replaced are supplied in array oldcoldc, while their respective replacement characters are supplied in array newcnewc. Array AA has a fixed length of five characters, while arrays oldcoldc and newcnewc …
Official PYQ2013General AptitudeMCQ · 1 mark
The current erection cost of a structure is Rs. 13,200.13,200. If the labour wages per day increase by 1/51/5 of the current wages and the working hours decrease by 1/241/24 of the current period, then the new cost of erection in Rs. is
Official PYQ2013General AptitudeMCQ · 1 mark
A tourist covers half of his journey by train at 60  km/h60\;\text{km/h}, half of the remainder by bus at 30  km/h30\;\text{km/h} and the rest by cycle at 10  km/h10\;\text{km/h}. The average speed of the tourist in km/h\text{km/h} during his entire journey is
Official PYQ2013General AptitudeMCQ · 1 mark
After several defeats in wars, Robert Bruce went in exile and wanted to commit suicide. Just before committing suicide, he came across a spider attempting tirelessly to have its net. Time and again, the spider failed but that did not deter it to refrain from making attempts. Such attempts by the spider made Bruce curious. Thus, Bruce started observing the …
Official PYQ2013General AptitudeMCQ · 1 mark
Out of all the 22-digit integers between 11 and 100,100, a 22-digit number has to be selected at random. What is the probability that the selected number is not divisible by 77 ?
Official PYQ2013General AptitudeMCQ · 1 mark
Choose the grammatically INCORRECT sentence:
Official PYQ2013General AptitudeMCQ · 1 mark
Find the sum of the expression 11+2+12+3+13+4+............+180+81\frac{1}{\sqrt{1}+\sqrt{2}}+\frac{1}{\sqrt{2}+\sqrt{3}}+\frac{1}{\sqrt{3}+\sqrt{4}}+............+\frac{1}{\sqrt{80}+\sqrt{81}}
Official PYQ2013General AptitudeMCQ · 1 mark
Were you a bird, you ___________________ in the sky.
Official PYQ2013General AptitudeMCQ · 1 mark
What will be the maximum sum of 44,42,40,…44, 42, 40, \dots ?
Official PYQ2013General AptitudeMCQ · 1 mark
Complete the sentence: Universalism is to particularism as diffuseness is to _______________.
Official PYQ2013General AptitudeMCQ · 1 mark
Which one of the following options is the closest in meaning to the word given below? Nadir
Official PYQ2013DatabasesNormal FormsMCQ · 1 mark
Relation RR has eight attributes ABCDEFGH\text{ABCDEFGH}. Fields of RR contain only atomic values. FF= CH→G, A→BC, B→CFH, E→A, F→EG\text{{CH→G, A→BC, B→CFH, E→A, F→EG}} is a set of functional dependencies (FDs)(FDs) so that F+F^+ is exactly the set of FDsFDs that hold for RR. How many candidate keys does the relation RR have?
Official PYQ2013Programming and Data StructuresArrays, Stacks and QueuesMCQ · 1 mark
The procedure given below is required to find and replace certain characters inside an input character string supplied in array AA. The characters to be replaced are supplied in array oldcoldc, while their respective replacement characters are supplied in array newcnewc. Array AA has a fixed length of five characters, while arrays oldcoldc and newcnewc …
Official PYQ2013Compiler DesignRuntime EnvironmentsMCQ · 1 mark
The following code segment is executed on a processor which allows only register operands in its instructions. Each instruction can have atmost two source operands and one destination operand. Assume that all variables are dead after this code segment. c = a + b; d = c * a; e = c + a; x = c * c; if (x > a) { y = a * a; } else { d = d * d; e = e * e; } …
Official PYQ2013Digital LogicSequential CircuitsMCQ · 1 mark
A RAM chip has a capacity of 1024 words of 8 bits each (1K × 8). The number of 2 × 4 decoders with enable line needed to construct a 16K × 16 RAM from 1K × 8 RAM is
Official PYQ2013Programming and Data StructuresBinary Search TreesMCQ · 1 mark
The preorder traversal sequence of a binary search tree is 30,20,10,15,25,23,39,35,4230, 20, 10, 15, 25, 23, 39, 35, 42. Which one of the following is the postorder traversal sequence of the same tree?
Official PYQ2013Theory of ComputationUndecidabilityMCQ · 1 mark
Which of the following is/are undecidable? GG is a CFG. Is L(G)=ϕL(G) = \phi? GG is a CFG. Is L(G)=Σ∗L(G) = \Sigma^*? MM is a Turing machine. Is L(M)L(M) regular? AA is a DFA and NN is an NFA. Is L(A)=L(N)L(A) = L(N)?
Official PYQ2013Compiler DesignParsing (LL, LR)MCQ · 1 mark
Consider the following two sets of LR(1)\textsf{LR(1)} items of an LR(1)\textsf{LR(1)} grammar.X→c.X,c∕dX→c.X,$X→.cX,c∕dX→.cX,$X→.d,c∕dX→.d,$\begin{array}{l|l} X \rightarrow c.X, c∕d &X → c.X, \$\\ X \rightarrow .cX, c∕ d& X → .cX, \$\\ X \rightarrow .d, c∕ d & X → .d, \$ \end{array}Which of the following statements related to merging of the two sets in the corresponding LALR\textsf{LALR} …