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 PYQ2022DatabasesNormal FormsNAT · 1 mark
Consider a relation R(A,B,C,D,E)R (A, B, C, D, E) with the following three functional dependencies. AB→C;  BC→D;  C→E;AB \rightarrow C; \; BC \rightarrow D; \; C \rightarrow E; The number of superkeys in the relation RR is ______________ .
Official PYQ2022Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsNAT · 1 mark
The number of arrangements of six identical balls in three identical bins is _____________ .
Official PYQ2022Engineering MathematicsCalculus: Limits, Continuity, DifferentiabilityNAT · 1 mark
The value of the following limit is ________________. lim⁡x→0+x1−e2x\lim_{x \rightarrow 0^{+}} \frac{\sqrt{x}}{1-e^{2\sqrt{x}}}
Official PYQ2022Computer NetworksApplication Layer Protocols: DNS, SMTP, HTTP, FTP, EmailNAT · 1 mark
Consider the resolution of the domain name www.gate.org.in\textsf{www.gate.org.in} by a DNS\text{DNS} resolver. Assume that no resource records are cached anywhere across the DNS\text{DNS} servers and that iterative query mechanism is used in the resolution. The number of DNS\text{DNS} query-response pairs involved in completely resolving the domain name is …
Official PYQ2022Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 1 mark
A cache memory that has a hit rate of 0.80.8 has an access latency 10  ns10 \; \text{ns} and miss penalty 100  ns.100 \; \text{ns}. An optimization is done on the cache to reduce the miss rate. However, the optimization results in an increase of cache access latency to 15  ns,15 \; \text{ns}, whereas the miss penalty is not affected. The minimum hit rate (rounded …
Official PYQ2022Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsMCQ · 2 marks
Which one of the following is the closed form for the generating function of the sequence {an}n≥0\{ a_{n} \}_{n \geq 0} defined below? an={n+1,n is odd1,otherwisea_{n} = \left\{\begin{matrix} n + 1, & \text{n is odd} & \\ 1, & \text{otherwise} & \end{matrix}\right.
Official PYQ2022Engineering MathematicsGraphs: Connectivity, Matching, ColouringMCQ · 2 marks
Consider a simple undirected unweighted graph with at least three vertices. If A\textit{A} is the adjacency matrix of the graph, then the number of 3–3–cycles in the graph is given by the trace of
Official PYQ2022Operating SystemMemory Management and Virtual MemoryMCQ · 2 marks
Which one of the following statements is FALSE?\text{FALSE}?
Official PYQ2022Digital LogicCombinational CircuitsMCQ · 2 marks
Consider a digital display system (DDS)\text{(DDS)} shown in the figure that displays the contents of register X.\text{X}. A 16–bit16 – \text{bit} code word is used to load a word in X,\text{X}, either from S\text{S} or from R.\text{R}. S\text{S} is a 1024−1024-word memory segment and R\text{R} is a 32−32-word register file. Based on the value of …
Official PYQ2022Digital LogicNumber Representations (Fixed and Floating Point)MCQ · 2 marks
Consider three floating point numbers A, B\textit{A, B} and C\textit{C} stored in registers RA,RB\text{R}_{\text{A}}, \text{R}_{\text{B}} and RC,\text{R}_{\text{C}}, respectively as per IEEE-754\textsf{IEEE-754} single precision floating point format. The 32-bit\text{32-bit} content stored in these registers (in hexadecimal form)\text{(in hexadecimal form)} are as follows. …
Official PYQ2022DatabasesTransactions and Concurrency ControlMCQ · 2 marks
Let Ri(z)\textit{R}_{i}(z) and Wi(z)\textit{W}_{i}(z) denote read and write operations on a data element zz by a transaction Ti,\textit{T}_{i}, respectively. Consider the schedule S\textit{S} with four transactions. S:  R4(x)R2(x)R3(x)R1(y)W1(y)W2(x)W3(y)R4(y)S: \; R_{4}(x) R_{2}(x) R_{3}(x)R_{1}(y) W_{1}(y) W_{2}(x) W_{3}(y) R_{4}(y) Which one of the following serial schedules is conflict …
Official PYQ2022Operating SystemCPU SchedulingMCQ · 2 marks
Consider four processes P, Q, R,\text{P, Q, R,} and S\text{S} scheduled on a CPU\text{CPU} as per round robin algorithm with a time quantum of 4 units.4\text{ units.} The processes arrive in the order P, Q, R, S,\text{P, Q, R, S,} all at time t = 0.\text{t = 0}. There is exactly one context switch from S\text{S} to Q,\text{Q}, exactly one context switch from …
Official PYQ2022Programming and Data StructuresProgramming in CMCQ · 2 marks
What is printed by the following ANSI C\text{ANSI C} program? #include<stdio.h> int main(int argc, char *argv[]) { char a = ‘P’; char b = ‘x’; char c = (a&b) + ‘*’; char d = (a|b) – ‘-’; char e = (a^b) + ‘+’; printf(“%c %c %c\n”, c, d, e); return 0; } ASCII\text{ASCII} encoding for relevant characters is given below …
Official PYQ2022Programming and Data StructuresArrays, Stacks and QueuesMCQ · 2 marks
What is printed by the following ANSI C\text{ANSI C} program? #include<stdio.h> int main (int argc, char *argv[]) { int a[3][3][3] = {{1, 2, 3, 4, 5, 6, 7, 8, 9}, {10, 11, 12, 13, 14, 15, 16, 17, 18}, {19, 20, 21, 22, 23, 24, 25, 26, 27}}; int i = 0, j = 0, k = 0; for ( i = 0; i < 3; i ++) { for ( k = 0; k < 3; k++) printf(“%d”, a[i][j][k]); printf …
Official PYQ2022Engineering MathematicsLinear Algebra: Matrices, Determinants, System of Linear EquationsMCQ · 2 marks
Consider solving the following system of simultaneous equations using LU\text{LU} decomposition. x1+x2–2x3=4x_{1} + x_{2} – 2x_{3} = 4 x1+3x2–x3=7x_{1} + 3x_{2} – x_{3} = 7 2x1+x2–5x3=72x_{1} + x_{2} – 5x_{3} = 7 where L\textit{L} and U\textit{U} are denoted as …
Official PYQ2022Theory of ComputationContext-free Grammars and Push-down AutomataMSQ · 2 marks
Consider the following languages: L1={ww∣w∈{a,b}∗}L_{1} = \{ ww | w \in \{a,b\}^{\ast} \} L2={anbncm∣m,n≥0}L_{2} = \{a^{n} b^{n} c^{m} | m,n \geq 0 \} L3={ambncn∣m,n≥0}L_{3} = \{a^{m} b^{n} c^{n} | m,n \geq 0 \} Which of the following statements is/are FALSE?\text{FALSE}?
Official PYQ2022Theory of ComputationTuring MachinesMSQ · 2 marks
Which of the following is/are undecidable?
Official PYQ2022Theory of ComputationContext-free Grammars and Push-down AutomataMSQ · 2 marks
Consider the following languages: L1={anwan∣w∈{a,b}∗}L_{1} = \{ a^{n} wa^{n} | w \in \{a,b\}^{\ast}\} L2={wxwR∣w,x∈{a,b}∗,∣w∣,∣x∣>0}L_{2} = \{wxw^{R} | w, x \in \{a,b\}^{*}, |w|, |x| > 0 \} Note that wRw^{R} is the reversal of the string w.w. Which of the following is/are TRUE?\text{TRUE}?
Official PYQ2022AlgorithmsMinimum Spanning TreesMSQ · 2 marks
Consider a simple undirected weighted graph G,\textit{G}, all of whose edge weights are distinct. Which of the following statements about the minimum spanning trees of G\textit{G} is/are TRUE?\text{TRUE}?
Official PYQ2022Engineering MathematicsGraphs: Connectivity, Matching, ColouringMSQ · 2 marks
The following simple undirected graph is referred to as the Peterson graph. Which of the following statements is/are TRUE?\text{TRUE}? The size of the largest independent set of the given graph is 3.3. (A subset of vertices of a graph form an independent set if no two vertices of the subset are adjacent.)