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 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:
Official PYQ2002AlgorithmsSearching, Sorting, HashingMCQ · 1 mark
Consider the following algorithm for searching for a given number xx in an unsorted array A[1..n]A[1..n] having nn distinct values: Choose an ii at random from 1..n1..n If A[i]=xA[i] = x, then Stop else Goto 1; Assuming that xx is present in AA, what is the expected number of comparisons made by the algorithm before it terminates?
Official PYQ2002Programming and Data StructuresProgramming in CMCQ · 1 mark
Consider the following declaration of a two-dimensional array in C: char a[100][100]a[100][100]; Assuming that the main memory is byte-addressable and that the array is stored starting from memory address 00, the address of a[40][50]a [40][50] is:
Official PYQ2002Computer Organization and ArchitectureALU, Data-path and Control UnitMCQ · 1 mark
Horizontal microprogramming:
Official PYQ2002Computer Organization and ArchitectureInstruction PipeliningMCQ · 1 mark
The performance of a pipelined processor suffers if:
Official PYQ2002Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
The finite state machine described by the following state diagram with AA as starting state, where an arc label is x/y,x/y, and xx stands for 11-bit input and yy stands for 22-bit output