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 PYQ2008Compiler DesignParsing (LL, LR)MCQ · 1 mark
Which of the following describes a handle (as applicable to LR-parsing) appropriately?
Official PYQ2008Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
Which of the following is true for the language {ap∣p is a prime }?\left\{ a^p \mid p \text{ is a prime } \right \}?
Official PYQ2008Digital LogicBoolean AlgebraMCQ · 1 mark
Given f1f_1, f3f_3 and ff in canonical sum of products form (in decimal) for the circuit f1=Σm(4,5,6,7,8)f_1 = \Sigma m(4, 5, 6, 7, 8) f3=Σm(1,6,15)f_3 = \Sigma m(1, 6, 15) f=Σm(1,6,8,15)f = \Sigma m(1, 6, 8, 15) then f2f_2 is
Official PYQ2008AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
The most efficient algorithm for finding the number of connected components in an undirected graph on nn vertices and mm edges has time complexity
Official PYQ2008Digital LogicNumber Representations (Fixed and Floating Point)MCQ · 1 mark
Let rr denote number system radix. The only value(s) of rr that satisfy the equation 121r=11r\sqrt{121_r}={11}_r is/are
Official PYQ2008Digital LogicMinimization (K-Maps etc.)MCQ · 1 mark
In the Karnaugh map shown below, XX denotes a don’t care term. What is the minimal form of the function represented by the Karnaugh map?
Official PYQ2008Digital LogicNumber Representations (Fixed and Floating Point)MCQ · 1 mark
In the IEEE floating point representation the hexadecimal value 0x000000000\text{x}00000000 corresponds to
Official PYQ2008Engineering MathematicsLinear Algebra: Matrices, Determinants, System of Linear EquationsMCQ · 1 mark
The following system of equations x1+x2+2x3=1x_1 + x_2 + 2x_3 = 1 x1+2x2+3x3=2x_1 + 2x_2 + 3x_3 = 2 x1+4x2+αx3=4x_1 + 4x_2 + αx_3 = 4 has a unique solution. The only possible value(s) for αα is/are
Official PYQ2008Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
If P,Q,RP, Q, R are subsets of the universal set U, then (P∩Q∩R)∪(Pc∩Q∩R)∪Qc∪Rc(P\cap Q\cap R) \cup (P^c \cap Q \cap R) \cup Q^c \cup R^c is
Official PYQ2008Engineering MathematicsCalculus: Limits, Continuity, DifferentiabilityMCQ · 1 mark
lim⁡x→∞x−sin⁡xx+cos⁡x\displaystyle \lim_{x \to \infty}\frac{x-\sin x}{x+\cos x} equals
Official PYQ2008Compiler DesignParsing (LL, LR)MCQ · 1 mark
Which of the following statements are true? Every left-recursive grammar can be converted to a right-recursive grammar and vice-versa All ϵ\epsilon-productions can be removed from any context-free grammar by suitable transformations The language generated by a context-free grammar all of whose productions are of the form X→wX \rightarrow w or …
Official PYQ2008AlgorithmsSearching, Sorting, HashingMCQ · 1 mark
Consider the following C program that attempts to locate an element xx in an array Y[ ]Y[ \ ] using binary search. The program is erroneous. f (int Y[10] , int x) { int i, j, k; i= 0; j = 9; do { k = (i+ j) / 2; if( Y[k] < x) i = k;else j = k; } while (Y[k] != x) && (i < j)) ; if(Y[k] == x) printf(" x is in the array ") ; else printf(" x is …
Official PYQ2008DatabasesER-modelMCQ · 1 mark
Consider the following ER\text{ER} diagram The minimum number of tables needed to represent MM, NN, PP, R1R1, R2R2 is
Official PYQ2008DatabasesFile Organization and Indexing (B and B+ Trees)MCQ · 1 mark
Consider a file of 1638416384 records. Each record is 32  bytes32\;\text{bytes} long and its key field is of size 6  bytes6\;\text{bytes}. The file is ordered on a non-key field, and the file organization is unspanned. The file is stored in a file system with block size 1024  bytes1024\;\text{bytes}, and the size of a block pointer is 10  bytes10\;\text{bytes}. If the secondary …
Official PYQ2007AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
Consider the following segment of C-code: int j, n; j = 1; while (j <= n) j = j * 2; The number of comparisons made in the execution of the loop for any n>0n > 0 is:
Official PYQ2007Computer Organization and ArchitectureI/O Interface: Interrupt and DMA ModeMCQ · 1 mark
Consider the following program segment. Here R1, R2\text{R1, R2} and R3\text{R3} are the general purpose registers. …
Official PYQ2007Computer Organization and ArchitectureI/O Interface: Interrupt and DMA ModeMCQ · 1 mark
Consider the following program segment. Here R1, R2\text{R1, R2} and R3\text{R3} are the general purpose registers. …
Official PYQ2007AlgorithmsAlgorithm Design: Greedy TechniquesMCQ · 1 mark
Suppose the letters a, b, c, d, e, fa, \,b, \,c, \,d, \,e, \,f have probabilities 12,14,18,116,132,132\dfrac{1}{2}, \dfrac{1}{4}, \dfrac{1}{8}, \dfrac{1}{16}, \dfrac{1}{32}, \dfrac{1}{32}, respectively. What is the average length of the Huffman code for the letters a, b, c, d, e, fa, \,b, \,c, \,d, \,e, \,f?
Official PYQ2007Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
Consider the following Finite State Automaton: The minimum state automaton equivalent to the above FSA has the following number of states:
Official PYQ2007Compiler DesignParsing (LL, LR)MCQ · 1 mark
Consider the CFG with {S,A,B}\left\{S, A, B\right\} as the non-terminal alphabet, {a,b}\{a, b\} as the terminal alphabet, SS as the start symbol and the following set of production rules: S→aBS \rightarrow aB S→bAS \rightarrow bA B→bB \rightarrow b A→aA \rightarrow a B→bSB \rightarrow bS A→aSA \rightarrow aS B→aBBB \rightarrow aBB A→bAAA \rightarrow bAA For …