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 PYQ1994Programming and Data StructuresArrays, Stacks and QueuesMCQ · 1 mark
Which of the following permutations can be obtained in the output (in the same order) using a stack assuming that the input is the sequence 1, 2, 3, 4, 5\text{1, 2, 3, 4, 5} in that order?
Official PYQ1994Compiler DesignIntermediate Code GenerationMCQ · 1 mark
Generation of intermediate code based on an abstract machine model is useful in compilers because
Official PYQ1994Programming and Data StructuresArrays, Stacks and QueuesMCQ · 1 mark
In a compact single dimensional array representation for lower triangular matrices (i.e all the elements above the diagonal are zero) of size n×nn \times n, non-zero elements, (i.e elements of lower triangle) of each row are stored one after another, starting from the first row, the index of the (i,j)th(i, j)^{th} element of the lower triangular matrix in this …
Official PYQ1994Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
A memory page containing a heavily used variable that was initialized very early and is in constant use is removed then
Official PYQ1994Engineering MathematicsMonoids and GroupsMCQ · 1 mark
Some group (G,o)(G, o) is known to be abelian. Then, which one of the following is true for GG?
Official PYQ1994Engineering MathematicsLinear Algebra: Matrices, Determinants, System of Linear EquationsMCQ · 1 mark
The rank of matrix [00−3935311]\begin{bmatrix} 0 & 0 & -3 \\ 9 & 3 & 5 \\ 3 & 1 & 1 \end{bmatrix} is:
Official PYQ1994AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
The recurrence relation that arises in relation with the complexity of binary search is:
Official PYQ1994Digital LogicCombinational CircuitsMCQ · 1 mark
The logic expression for the output of the circuit shown in figure below is:
Official PYQ1994Engineering MathematicsGraphs: Connectivity, Matching, ColouringMCQ · 1 mark
The number of distinct simple graphs with up to three nodes is
Official PYQ1994Programming and Data StructuresProgramming in CMCQ · 1 mark
An unrestricted use of the "gotogoto" statement is harmful because
Official PYQ1994Engineering MathematicsConditional Probability and Bayes TheoremMCQ · 1 mark
Let AA and BB be any two arbitrary events, then, which one of the following is TRUE?
Official PYQ1994Engineering MathematicsLinear Algebra: Matrices, Determinants, System of Linear EquationsMCQ · 1 mark
Let AA and BB be real symmetric matrices of size n×nn \times n. Then which one of the following is true?
Official PYQ1994Programming and Data StructuresProgramming in CMCQ · 1 mark
In which of the following cases is it possible to obtain different results for call-by-reference and call-by-name parameter passing methods?
Official PYQ1993Digital LogicSequential CircuitsMSQ · 1 mark
For the initial state of 000000, the function performed by the arrangement of the J-K\text{J-K} flip-flops in figure is:
Official PYQ1993Digital LogicSequential CircuitsMCQ · 1 mark
If the state machine described in figure should have a stable state, the restriction on the inputs is given by
Official PYQ1993DatabasesFile Organization and Indexing (B and B+ Trees)NAT · 1 mark
An ISAM\text{ISAM} (indexed sequential) file consists of records of size 6464 bytes each, including key field of size 1414 bytes. An address of a disk block takes 22 bytes. If the disk block size is 512512 bytes and there are 16K16K records, compute the size of the data and index areas in terms of number blocks. How many levels of tree\text{tree} do …
Official PYQ1993AlgorithmsAsymptotic Worst Case Time and Space ComplexityMSQ · 1 mark
∑1≤k≤nO(n)\displaystyle \sum_{1\leq k\leq n} O(n), where O(n)O(n) stands for order nn is:
Official PYQ1993Engineering MathematicsPartial Orders and LatticesMCQ · 1 mark
The less-than relation, <,<, on real number is
Official PYQ1993Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let AA and BB be sets with cardinalities mm and nn respectively. The number of one-one mappings from AA to BB, when m<nm < n, is
Official PYQ1993Engineering MathematicsPropositional and First Order LogicMCQ · 1 mark
Let A be a finite set of size n. The number of elements in the power set of A×AA\times A is: