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 PYQ2009Engineering MathematicsGraphs: Connectivity, Matching, ColouringMCQ · 1 mark
Which one of the following is TRUE for any simple connected undirected graph with more than 22 vertices?
Official PYQ2009Engineering MathematicsPropositional and First Order LogicMCQ · 1 mark
Consider the following well-formed formulae: ¬∀x(P(x))\neg \forall x(P(x)) ¬∃x(P(x))\neg \exists x(P(x)) ¬∃x(¬P(x))\neg \exists x(\neg P(x)) ∃x(¬P(x))\exists x(\neg P(x)) Which of the above are equivalent?
Official PYQ2009Engineering MathematicsMaxima and Minima, Mean Value Theorem, IntegrationMCQ · 1 mark
∫0π/4(1−tan⁡x)/(1+tan⁡x) dx\int^{\pi/4}_0 (1-\tan x)/(1+\tan x)\,dx
Official PYQ2009Engineering MathematicsPropositional and First Order LogicMCQ · 1 mark
The binary operation □\Box is defined as follows PQP□QTTTTFTFTFFFT\begin{array}{|c|c|c|} \hline \textbf{P} & \textbf{Q} & \textbf{P} \Box \textbf{Q}\\ \hline \text{T} & \text{T}& \text{T}\\ \hline \text{T} & \text{F}& \text{T} \\ \hline \text{F} & \text{T}& \text{F}\\ \hline \text{F} & \text{F}& \text{T} \\ \hline \end{array} …
Official PYQ2009Engineering MathematicsPropositional and First Order LogicMCQ · 1 mark
Which one of the following is the most appropriate logical formula to represent the statement? "Gold and silver ornaments are precious". The following notations are used: G(x):xG(x): x is a gold ornament S(x):xS(x): x is a silver ornament P(x):xP(x): x is precious
Official PYQ2009Engineering MathematicsMonoids and GroupsMCQ · 1 mark
For the composition table of a cyclic group shown below: …
Official PYQ2009Engineering MathematicsConditional Probability and Bayes TheoremMCQ · 1 mark
An unbalanced dice (with 66 faces, numbered from 11 to 66) is thrown. The probability that the face value is odd is 90%90\% of the probability that the face value is even. The probability of getting any even numbered face is the same. If the probability that the face is even given that it is greater than 33 is 0.750.75, which one of the …
Official PYQ2009Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Consider the binary relation R={(x,y),(x,z),(z,x),(z,y)}R = \left\{(x,y), (x,z), (z,x), (z,y)\right\} on the set {x,y,z}\{x,y,z\}. Which one of the following is TRUE?
Official PYQ2009Engineering MathematicsGraphs: Connectivity, Matching, ColouringMCQ · 1 mark
What is the chromatic number of an nn vertex simple connected graph which does not contain any odd length cycle? Assume n>2n > 2.
Official PYQ2009Engineering MathematicsMonoids and GroupsMCQ · 1 mark
Which one of the following is NOT necessarily a property of a Group?
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 Which of the following is a correct attribute set for one of the tables for the minimum number of tables needed to represent MM, NN, PP, R1R1, R2R2?
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 PYQ2008Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
Consider a machine with a 22-way set associative data cache of size 6464 Kbytes and block size 1616 bytes. The cache is managed using 3232 bit virtual addresses and the page size is 44 Kbytes. A program to be run on this machine begins as follows: double ARR[1024][1024]; int i, j; /*Initialize array ARR to 0.0 */ for(i = 0; i < 1024; i++) …
Official PYQ2008Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
Consider a machine with a 22-way set associative data cache of size 6464 Kbytes and block size 1616 bytes. The cache is managed using 3232 bit virtual addresses and the page size is 44 Kbytes. A program to be run on this machine begins as follows: double ARR[1024][1024]; int i, j; /*Initialize array ARR to 0.0 */ for(i = 0; i < 1024; i++) …
Official PYQ2008AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
Consider the following C functions: int f1 (int n) { if(n == 0 || n == 1) return n; else return (2 * f1(n-1) + 3 * f1(n-2)); } int f2(int n) { int i; int X[N], Y[N], Z[N]; X[0] = Y[0] = Z[0] = 0; X[1] = 1; Y[1] = 2; Z[1] = 3; for(i = 2; i <= n; i++){ X[i] = Y[i-1] + Z[i-2]; Y[i] = 2 * X[i]; Z[i] = 3 * X[i]; } return X[n]; } f1(8)f1(8) and f2(8)f2(8) return …
Official PYQ2008Computer Organization and ArchitectureInstruction PipeliningMCQ · 1 mark
Delayed branching can help in the handling of control hazards The following code is to run on a pipelined processor with one branch delay slot: I1: ADD R2←R7+R8R2 \leftarrow R7 + R8 I2: Sub R4←R5–R6R4 \leftarrow R5 – R6 I3: ADD R1←R2+R3R1 \leftarrow R2 + R3 I4: STORE Memory [R4]←R1[R4] \leftarrow R1 BRANCH to Label if R1==0R1 == 0 Which of the instructions I1, I2, I3 or I4 …
Official PYQ2008AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
Let xnx_n denote the number of binary strings of length nn that contain no consecutive 00s. The value of x5x_5 is
Official PYQ2008AlgorithmsAlgorithm Design: Dynamic ProgrammingMCQ · 1 mark
The subset-sum problem is defined as follows. Given a set of nn positive integers, S={a1,a2,a3,…,an}S = \{ a_1, a_2, a_3, \dots , a_n \}, and positive integer WW, is there a subset of SS whose elements sum to WW? A dynamic program for solving this problem uses a 2-dimensional\text{2-dimensional} Boolean array, XX, with nn rows and W+1W+1 columns. …
Official PYQ2008AlgorithmsAlgorithm Design: Dynamic ProgrammingMCQ · 1 mark
The subset-sum problem is defined as follows. Given a set of nn positive integers, S={a1,a2,a3,…,an}S = \{ a_1, a_2, a_3, \dots , a_n \}, and positive integer WW, is there a subset of SS whose elements sum to WW? A dynamic program for solving this problem uses a 2-dimensional\text{2-dimensional} Boolean array, XX, with nn rows and W+1W+1 columns. …
Official PYQ2008Engineering MathematicsGraphs: Connectivity, Matching, ColouringMCQ · 1 mark
GG is a graph on nn vertices and 2n−22n-2 edges. The edges of GG can be partitioned into two edge-disjoint spanning trees. Which of the following is NOT true for GG?