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 PYQ2000Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let P(S)P(S) denotes the power set of set S.S. Which of the following is always true?
Official PYQ2000Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
A relation RR is defined on the set of integers as xRyxRy iff (x+y)(x + y) is even. Which of the following statements is true?
Official PYQ2000Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
A polynomial p(x)p(x) satisfies the following: p(1)=p(3)=p(5)=1p(1) = p(3) = p(5) = 1 p(2)=p(4)=−1p(2) = p(4) = -1 The minimum degree of such a polynomial is
Official PYQ2000Engineering MathematicsMaxima and Minima, Mean Value Theorem, IntegrationMCQ · 1 mark
Let S=∑i=3100ilog⁡2iS = \sum_{i=3}^{100} i \log_{2} i, and T=∫2100xlog⁡2xdxT = \int_{2}^{100} x \log_{2}x dx. Which of the following statements is true?
Official PYQ2000Numerical Methods (Historical)MCQ · 1 mark
X, Y and Z are closed intervals of unit length on the real line. The overlap of X and Y is half a unit. The overlap of Y and Z is also half a unit. Let the overlap of X and Z be k units. Which of the following is true?
Official PYQ2000DatabasesRelational Model: Relational AlgebraMCQ · 1 mark
Given the relations employee (name, salary, dept-no), and department (dept-no, dept-name,address), Which of the following queries cannot be expressed using the basic relational algebra operations (σ,π,×,⋈,∪,∩,−)\left(\sigma, \pi,\times ,\Join, \cup, \cap,-\right)?
Official PYQ2000DatabasesFile Organization and Indexing (B and B+ Trees)MCQ · 1 mark
B+^{+}-trees are preferred to binary trees in databases because
Official PYQ2000Operating SystemConcurrency and SynchronizationMCQ · 1 mark
Let m[0]…m[4]m[0]\ldots m[4] be mutexes (binary semaphores) and P[0]…P[4]P[0]\ldots P[4] be processes. Suppose each process P[i]P[i] executes the following: wait (m[i]); wait (m(i+1) mod 4]); ........... release (m[i]); release (m(i+1) mod 4]); This could cause
Official PYQ2000Compiler DesignParsing (LL, LR)MCQ · 1 mark
Which of the following derivations does a top-down parser use while parsing an input string? The input is scanned from left to right.
Official PYQ2000Operating SystemProcesses and ThreadsMCQ · 1 mark
Which of the following need not necessarily be saved on a context switch between processes?
Official PYQ2000Compiler DesignLexical AnalysisMCQ · 1 mark
The number of tokens in the following C statement is printf("i=%d, &i=%x", i, &i);
Official PYQ2000Programming and Data StructuresProgramming in CMCQ · 1 mark
Aliasing in the context of programming languages refers to
Official PYQ2000Programming and Data StructuresProgramming in CMCQ · 1 mark
Consider the following C declaration: struct { short x[5]; union { float y; long z; } u; )t; Assume that the objects of the type short, float and long occupy 22 bytes, 44 bytes and 88 bytes, respectively. The memory requirement for variable tt, ignoring alignment consideration, is:
Official PYQ2000AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
Let SS be a sorted array of nn integers. Let T(n)T(n) denote the time taken for the most efficient algorithm to determined if there are two elements with sum less than 10001000 in SS. Which of the following statement is true?
Official PYQ2000Programming and Data StructuresTreesMCQ · 1 mark
Consider the following nested representation of binary trees: (X Y Z)(X \ Y \ Z) indicates YY and ZZ are the left and right subtrees, respectively, of node XX. Note that YY and ZZ may be NULLNULL, or further nested. Which of the following represents a valid binary tree?
Official PYQ2000AlgorithmsGraph Traversals (BFS, DFS)MCQ · 1 mark
The most appropriate matching for the following pairs X: depth first search1: heap Y: breadth first search2: queueZ: sorting3: stack\begin{array}{|l|l|}\hline \text{X: depth first search} & \text{1: heap } \\ \hline \text{Y: breadth first search} & \text{2: queue} \\ \hline \text{Z: sorting} & \text{3: stack} \\ \hline \end{array} is:
Official PYQ2000Programming and Data StructuresProgramming in CMCQ · 1 mark
The most appropriate matching for the following pairs …
Official PYQ2000Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
The most appropriate matching for the following pairsX: Indirect addressing1: Loops Y: Immediate addressing 2: PointersZ: Auto decrement addressing 3: Constants \begin{array}{ll} \text{X: Indirect addressing} & \text{1: Loops } \\ \text{Y: Immediate addressing } & \text{2: Pointers} \\ \text{Z: Auto decrement addressing } & \text{3: Constants } \\ \end{array} is
Official PYQ2000Programming and Data StructuresProgramming in CMCQ · 1 mark
The following C declarations: struct node { int i: float j; }; struct node *s[10]; define s to be:
Official PYQ2000Computer Organization and ArchitectureInstruction PipeliningMCQ · 1 mark
Comparing the time T1 taken for a single instruction on a pipelined CPU with time T2 taken on a non-pipelined but identical CPU, we can say that