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 PYQ2000AlgorithmsGraph Traversals (BFS, DFS)MCQ · 1 mark
Let GG be an undirected graph. Consider a depth-first traversal of GG, and let TT be the resulting depth-first search tree. Let uu be a vertex in GG and let vv be the first new (unvisited) vertex visited after visiting uu in the traversal. Which of the following statement is always true?
Official PYQ2000DatabasesTuple Calculus and SQLMCQ · 1 mark
In SQL, relations can contain null values, and comparisons with null values are treated as unknown. Suppose all comparisons with a null value are treated as false. Which of the following pairs is not equivalent?
Official PYQ2000DatabasesTuple Calculus and SQLMCQ · 1 mark
Given relations r(w, x) and s(y, z) the result of select distinct w, x from r, s is guaranteed to be same as r, provided.
Official PYQ2000DatabasesNormal FormsMCQ · 1 mark
Given the following relation instance. XYZ142153163322\begin{array}{|l|l|}\hline \text{X} & \text{Y} & \text{Z} \\ \hline \text{1} & \text{4} & \text{2} \\ \text{1} & \text{5} & \text{3} \\ \text{1} & \text{6} & \text{3} \\ \text{3} & \text{2} & \text{2} \\ \hline \end{array} Which of the following functional dependencies are …
Official PYQ2000Operating SystemDeadlockMCQ · 1 mark
Which of the following is not a valid deadlock prevention scheme?
Official PYQ2000Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Suppose the time to service a page fault is on the average 1010 milliseconds, while a memory access takes 11 microsecond. Then a 99.99%99.99\% hit ratio results in average memory access time of
Official PYQ2000Compiler DesignParsing (LL, LR)MCQ · 1 mark
Given the following expression grammar: E→E∗F∣F+E∣FF→F−F∣id\begin{align} E &\to E * F \mid F + E \mid F \\[1em] F &\to F - F \mid id \end{align} Which of the following is true?
Official PYQ2000Programming and Data StructuresProgramming in CMCQ · 1 mark
The value of jj at the end of the execution of the following C program: int incr (int i) { static int count = 0; count = count + i; return (count); } main () { int i, j; for (i = 0; i <= 4; i++) j = incr (i); } is:
Official PYQ2000AlgorithmsMinimum Spanning TreesMCQ · 1 mark
Let GG be an undirected connected graph with distinct edge weights. Let emaxe_{max} be the edge with maximum weight and emine_{min} the edge with minimum weight. Which of the following statements is false?
Official PYQ2000AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
Consider the following functions f(n)=3nnf(n) = 3n^{\sqrt{n}} g(n)=2nlog⁡2ng(n) = 2^{\sqrt{n}{\log_{2}n}} h(n)=n!h(n) = n! Which of the following is true?
Official PYQ2000Programming and Data StructuresTreesMCQ · 1 mark
Let LASTPOST, LASTIN and LASTPRE denote the last vertex visited `in a postorder, inorder and preorder traversal respectively, of a complete binary tree. Which of the following is always true?
Official PYQ2000AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
Suppose you are given an array s[1....n]s[1....n] and a procedure reverse (s,i,j)(s, i, j) which reverses the order of elements in ss between positions ii and jj (both inclusive). What does the following sequence do, where 1⩽k⩽n1 \leqslant k \leqslant n: reverse (s, 1, k); reverse (s, k+1, n); reverse (s, 1, n);
Official PYQ2000Digital LogicNumber Representations (Fixed and Floating Point)MCQ · 1 mark
Consider the values of A=2.0×1030,B=−2.0×1030,C=1.0,A = 2.0 \times 10^{30}, B = -2.0 \times 10^{30}, C = 1.0, and the sequence X:= A + B Y:= A + C X:= X + C Y:= Y + B executed on a computer where floating point numbers are represented with 3232 bits. The values for XX and YY will be
Official PYQ2000Computer Graphics (Historical)MCQ · 1 mark
A graphics card has on board memory of 11 MB. Which of the following modes can the card not support?
Official PYQ2000Digital LogicSequential CircuitsMCQ · 1 mark
The following arrangement of master-slave flip flops has the initial state of P,QP, Q as 0,10, 1 (respectively). After three clock cycles the output state P,QP, Q is (respectively),
Official PYQ2000Digital LogicMinimization (K-Maps etc.)MCQ · 1 mark
Which functions does NOT implement the Karnaugh map given below?
Official PYQ2000Digital LogicBoolean AlgebraMCQ · 1 mark
The simultaneous equations on the Boolean variables x,y,zx, y, z and ww, x+y+z=1x + y + z = 1 xy=0xy = 0 xz+w=1xz + w = 1 xy+zˉwˉ=0xy + \bar{z}\bar{w} = 0 have the following solution for x,y,zx, y, z and w,w, respectively:
Official PYQ2000Theory of ComputationUndecidabilityMCQ · 1 mark
Consider the following decision problems: (P1):(P1): Does a given finite state machine accept a given string? (P2):(P2): Does a given context free grammar generate an infinite number of strings? Which of the following statements is true?
Official PYQ2000Engineering MathematicsPropositional and First Order LogicMCQ · 1 mark
Let a,b,c,da, b, c, d be propositions. Assume that the equivalence a⇔(b∨¬b)a ⇔ ( b \vee \neg b) and b⇔cb ⇔c hold. Then the truth-value of the formula (a∧b)→(a∧c)∨d(a ∧ b) → (a ∧ c) ∨ d is always
Official PYQ2000Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
What can be said about a regular language LL over {a}\{ a \} whose minimal finite state automaton has two states?