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 PYQ2003Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
A processor uses 2−level2-level page tables for virtual to physical address translation. Page tables for both levels are stored in the main memory. Virtual and physical addresses are both 3232 bits wide. The memory is byte addressable. For virtual to physical address translation, the 1010 most significant bits of the virtual address are used as index into …
Official PYQ2003Theory of ComputationUndecidabilityMCQ · 1 mark
Consider two languages L1L_1 and L2L_2 each on the alphabet Σ\Sigma. Let f:Σ∗→Σ∗f : \Sigma^* \to \Sigma^* be a polynomial time computable bijection such that (∀x)[x∈L1(\forall x) [ x\in L_1 iff f(x)∈L2]f(x) \in L_2]. Further, let f−1f^{-1} be also polynomial time computable. Which of the following CANNOT be true?
Official PYQ2003Theory of ComputationUndecidabilityMCQ · 1 mark
Define languages L0L_0 and L1L_1 as follows : L0={⟨M,w,0⟩∣M halts on w}L_0 = \{\langle M, w, 0 \rangle \mid M \text{ halts on }w\} L1={⟨M,w,1⟩∣M does not halts on w}L_1 = \{\langle M, w, 1 \rangle \mid M \text{ does not halts on }w\} Here ⟨M,w,i⟩\langle M, w, i \rangle is a triplet, whose first component MM is an encoding of a Turing Machine, second component ww is a string, and third component ii …
Official PYQ2003AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
The cube root of a natural number nn is defined as the largest natural number mm such that (m3≤n)(m^3 \leq n) . The complexity of computing the cube root of nn (nn is represented by binary notation) is
Official PYQ2003Theory of ComputationUndecidabilityMCQ · 1 mark
If the strings of a language LL can be effectively enumerated in lexicographic (i.e., alphabetic) order, which of the following statements is true?
Official PYQ2002DatabasesNormal FormsMCQ · 1 mark
From the following instance of a relation schema R(A,B,C)R(A,B,C), we can conclude that: ABC111110232232\begin{array}{|l|l|}\hline \textbf{A} & \textbf{B} & \textbf{C} \\ \hline \text{1} & \text{1} & \text{1} \\ \text{1} & \text{1} & \text{0} \\ \text{2} & \text{3} & \text{2} \\ \text{2} & \text{3} & \text{2} \\ \hline \end{array}
Official PYQ2002DatabasesNormal FormsMCQ · 1 mark
Relation RR is decomposed using a set of functional dependencies, FF, and relation SS is decomposed using another set of functional dependencies, GG. One decomposition is definitely BCNF\text{BCNF}, the other is definitely 3NF3NF, but it is not known which is which. To make a guaranteed identification, which one of the following tests should be …
Official PYQ2002DatabasesFile Organization and Indexing (B and B+ Trees)MCQ · 1 mark
A B+B^+ - tree index is to be built on the Name attribute of the relation STUDENT. Assume that all the student names are of length 88 bytes, disk blocks are of size 512512 bytes, and index pointers are of size 44 bytes. Given the scenario, what would be the best choice of the degree (i.e. number of pointers per node) of the B+B^+ - tree?
Official PYQ2002Operating SystemFile SystemsMCQ · 1 mark
In the index allocation scheme of blocks to a file, the maximum possible size of the file depends on
Official PYQ2002Operating SystemProcesses and ThreadsMCQ · 1 mark
Which combination of the following features will suffice to characterize an OS as a multi-programmed OS? More than one program may be loaded into main memory at the same time for execution If a program waits for certain events such as I/O, another program is immediately scheduled for execution If the execution of a program terminates, another program is …
Official PYQ2002Compiler DesignRuntime EnvironmentsMCQ · 1 mark
Dynamic linking can cause security concerns because
Official PYQ2002Compiler DesignParsing (LL, LR)MCQ · 1 mark
To evaluate an expression without any embedded function calls
Official PYQ2002Programming and Data StructuresProgramming in CMCQ · 1 mark
The C language is:
Official PYQ2002Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
The binary relation S=ϕ(empty set)S= \phi \text{(empty set)} on a set A={1,2,3}A = \left \{ 1,2,3 \right \} is
Official PYQ2002Engineering MathematicsProbability: Random Variables and DistributionsMCQ · 1 mark
Four fair coins are tossed simultaneously. The probability that at least one head and one tail turn up is
Official PYQ2002Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
The smallest finite automaton which accepts the language {x∣\{x \mid length of xx is divisible by 3}3\} has
Official PYQ2002Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
Which of the following is true?
Official PYQ2002AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
The running time of the following algorithm Procedure A(n)A(n) If n⩽2n \leqslant 2 return (11) else return (A(⌈n⌉))(A( \lceil \sqrt{n} \rceil)); is best described by
Official PYQ2002Programming and Data StructuresTreesMCQ · 1 mark
A weight-balanced tree is a binary tree in which for each node, the number of nodes in the left sub tree is at least half and at most twice the number of nodes in the right sub tree. The maximum possible height (number of nodes on the path from the root to the furthest leaf) of such a tree on n nodes is best described by which of the following?
Official PYQ2002Programming and Data StructuresTreesMCQ · 1 mark
The number of leaf nodes in a rooted tree of n nodes, with each node having 00 or 33 children is: