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 PYQ2015Web Technologies (Historical)MCQ · 1 mark
Which of the following statement is/are FALSE? XML overcomes the limitations in HTML to support a structured way of organizing content. XML specification is not case sensitive while HTML specification is case sensitive. XML supports user defined tags while HTML uses pre-defined tags. XML tags need not be closed while HTML tags must be closed.
Official PYQ2015Engineering MathematicsPropositional and First Order LogicMCQ · 1 mark
Which one of the following is NOT equivalent to p↔qp ↔ q?
Official PYQ2015Compiler DesignParsing (LL, LR)MCQ · 1 mark
Which one of the following is TRUE at any valid state in shift-reduce parsing?
Official PYQ2015Operating SystemMemory Management and Virtual MemoryNAT · 1 mark
Consider a system with byte-addressable memory, 32-bit32\text{-bit} logical addresses, 4  kilobyte4\;\text{kilobyte} page size and page table entries of 4  bytes4\;\text{bytes} each. The size of the page table in the system in megabytes\text{megabytes} is___________.
Official PYQ2015Programming and Data StructuresProgramming in CNAT · 1 mark
The output of the following C program is_____________. void f1 ( int a, int b) { int c; c = a; a = b; b = c; } void f2 ( int * a, int * b) { int c; c = * a; *a = *b; *b = c; } int main () { int a = 4, b = 5, c = 6; f1 ( a, b); f2 (&b, &c); printf ("%d", c - a - b); }
Official PYQ2015Programming and Data StructuresBinary Search TreesMCQ · 1 mark
Which of the following is/are correct in order traversal sequence(s) of binary search tree(s)? 3,5,7,8,15,19,253, 5, 7, 8, 15, 19, 25 5,8,9,12,10,15,255, 8, 9, 12, 10, 15, 25 2,7,10,8,14,16,202, 7, 10, 8, 14, 16, 20 4,6,7,9,18,20,254, 6, 7, 9, 18, 20, 25
Official PYQ2015Operating SystemConcurrency and SynchronizationNAT · 1 mark
The following two functions P1P1 and P2P2 that share a variable BB with an initial value of 22 execute concurrently. P1() { P2(){ C = B - 1; D = 2 * B;  B = 2 * C; B = D - 1;}}\begin{array}{|l|l|}\hline \text{P1() \{ } & \text{P2()\{} \\ \text{ C = B - 1;} & \text{ D = 2 * B; } \\ \text{ B = 2 * C;} & \text{ B = D - 1;} \\ \text{\}} & \text{\}} \\ \hline \end{array} The number of …
Official PYQ2015Compiler DesignIntermediate Code GenerationMCQ · 1 mark
For computer based on three-address instruction formats, each address field can be used to specify which of the following: (S1) A memory operand (S2) A processor register (S3) An implied accumulator register
Official PYQ2015DatabasesTuple Calculus and SQLMCQ · 1 mark
SELECT operation in SQL is equivalent to
Official PYQ2015AlgorithmsAlgorithm Design: Greedy TechniquesMCQ · 1 mark
Match the following: …
Official PYQ2015Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
If g(x)=1−xg(x) = 1 - x and h(x)=xx−1h(x) = \frac{x}{x-1}, then g(h(x))h(g(x))\frac{g(h(x))}{h(g(x))} is:
Official PYQ2015Engineering MathematicsCalculus: Limits, Continuity, DifferentiabilityMCQ · 1 mark
lim⁡x→∞x1x\displaystyle \lim_{x\rightarrow \infty } x^{ \tfrac{1}{x}} is
Official PYQ2015Theory of ComputationTuring MachinesMCQ · 1 mark
For any two languages L1L_{1} and L2L_{2} such that L1L_{1} is context-free and L2L_{2} is recursively enumerable but not recursive, which of the following is/are necessarily true? Lˉ1\bar{L}_{1} ( Complement of L1L_{1}) is recursive Lˉ2\bar{L}_{2} ( Complement of L2L_{2}) is recursive Lˉ1\bar{L}_{1} is context-free Lˉ1\bar{L}_{1} ∪ L2L_{2} …
Official PYQ2015AlgorithmsSearching, Sorting, HashingMCQ · 1 mark
Which one of the following is the recurrence equation for the worst case time complexity of the quick sort algorithm for sorting n  (≥2)n\;( \geq 2) numbers? In the recurrence equations given in the options below, cc is a constant.
Official PYQ2015Software Engineering (Historical)MCQ · 1 mark
Match the following: (P) Condition Coverage (i) Black-box testing (Q) Equivalence class partitioning (ii) System testing (R) Volume testing (iii) White-box testing (S) Alpha testing (iv) Performance testing
Official PYQ2015General AptitudeMCQ · 1 mark
The probabilities that a student passes in mathematics, physics and chemistry are m,pm,p and cc respectively. Of these subjects, the student has 75%75\% chance of passing in at least one, a 50%50\% chance of passing in at least two and a 40%40\% chance of passing in exactly two. Following relations are drawn in m,p,cm, p, c: p+m+c=27/20p + m + c = 27/20 …
Official PYQ2015General AptitudeNAT · 1 mark
The pie chart below has the breakup of the number of students from different departments in an engineering college for the year 20122012. The proportion of male to female students in each department is 5:45:4. There are 4040 males in Electrical Engineering. What is the difference between the numbers of female students in the civil department and the …
Official PYQ2015General AptitudeMCQ · 1 mark
The given statement is followed by some courses of action. Assuming the statement to be true, decide the correct option. Statement: There has been a significant drop in the water level in the lakes supplying water to the city. Course of action: The water supply authority should impose a partial cut in supply to tackle the situation. The government should …
Official PYQ2015General AptitudeMCQ · 1 mark
Select the alternative meaning of the underlined part of the sentence. The chain snatchers took to their heels‾\underline{\text{took to their heels}} when the police party arrived.
Official PYQ2015General AptitudeMCQ · 1 mark
The number of students in a class who have answered correctly, wrongly, or not attempted each question in an exam, are listed in the table below. The marks for each question are also listed. There is no negative or partial marking. …