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 PYQ2017Digital LogicNumber Representations (Fixed and Floating Point)MCQ · 1 mark
The n-bit fixed-point representation of an unsigned real number XX uses ff bits for the fraction part. Let i=n−fi = n-f. The range of decimal values for XX in this representation is
Official PYQ2017Programming and Data StructuresBinary Search TreesMCQ · 1 mark
Let TT be a binary search tree with 1515 nodes. The minimum and maximum possible heights of TT are: Note: The height of a tree with a single node is 00.
Official PYQ2017Engineering MathematicsLinear Algebra: Matrices, Determinants, System of Linear EquationsMCQ · 1 mark
Let c1.....cnc_{1}.....c_{n} be scalars, not all zero, such that ∑i=1nciai\sum_{i=1}^{n}c_{i}a_{i} = 0 where aia_{i} are column vectors in RnR^{n}. Consider the set of linear equations Ax=bAx = b where A=[a1.....an]A=\left [ a_{1}.....a_{n} \right ] and b=∑i=1naib=\sum_{i=1}^{n}a_{i}. The set of equations has
Official PYQ2017Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMCQ · 1 mark
Consider a TCP client and a TCP server running on two different machines. After completing data transfer, the TCP client calls close to terminate the connection and a FIN segment is sent to the TCP server. Server-side TCP responds by sending an ACK, which is received by the client-side TCP. As per the TCP connection state diagram (RFC 793)\text{(RFC 793)}, in …
Official PYQ2017AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
Consider the recurrence function T(n)={2T(n)+1,n>22,0<n≤2T(n) = \begin{cases} 2T(\sqrt{n})+1, & n>2 \\ 2, & 0 < n \leq 2 \end{cases} Then T(n)T(n) in terms of Θ\Theta notation is
Official PYQ2017DatabasesTransactions and Concurrency ControlNAT · 1 mark
Two transactions T1T_1 and T2T_2 are given as T1:r1(X)w1(X)r1(Y)w1(Y)T_1:r_1(X)w_1(X)r_1(Y)w_1(Y) T2:r2(Y)w2(Y)r2(Z)w2(Z)T_2:r_2(Y)w_2(Y)r_2(Z)w_2(Z) where ri(V)r_i(V) denotes a read\textit{read} operation by transaction TiT_i on a variable VV and wi(V)w_i(V) denotes a write\textit{write} operation by transaction TiT_i on a variable VV. The total number of conflict serializable …
Official PYQ2017Engineering MathematicsEigenvalues and Eigenvectors, LU DecompositionNAT · 1 mark
If the characteristic polynomial of a 3×33 \times 3 matrix MM over R\mathbb{R} (the set of real numbers) is λ3–4λ2+aλ+30,a∈R\lambda^3 – 4 \lambda^2 + a \lambda +30, \quad a \in \mathbb{R}, and one eigenvalue of MM is 2,2, then the largest among the absolute values of the eigenvalues of MM is _______
Official PYQ2017Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 1 mark
Consider a machine with a byte addressable main memory of 2322^{32} bytes divided into blocks of size 3232 bytes. Assume that a direct mapped cache having 512512 cache lines is used with this machine. The size of the tag field in bits is _______
Official PYQ2017Theory of ComputationUndecidabilityMCQ · 1 mark
Let L(R)L(R) be the language represented by regular expression RR. Let L(G)L(G) be the language generated by a context free grammar GG. Let L(M)L(M) be the language accepted by a Turing machine MM. Which of the following decision problems are undecidable? Given a regular expression RR and a string ww, is w∈L(R)w \in L(R)? Given a context-free …
Official PYQ2017Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
Consider the following languages. L1={ap∣p is a prime number}L_1 = \{a^p \mid p \text{ is a prime number} \} L2={anbmc2m∣n≥0,m≥0}L_2 = \{ a^nb^mc^{2m} \mid n \geq 0, m \geq 0 \} L3={anbnc2n∣n≥0}L_3 = \{a^n b^n c^{2n} \mid n \geq 0 \} L4={anbn∣n≥1}L_4 = \{ a^n b^n \mid n \geq 1\} Which of the following are CORRECT? L1L_1 is context free but not regular L2L_2 is not context free L3L_3 is not context free but …
Official PYQ2017Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 1 mark
The read access times and the hit ratios for different caches in a memory hierarchy are as given below: …
Official PYQ2017Engineering MathematicsGraphs: Connectivity, Matching, ColouringNAT · 1 mark
GG is an undirected graph with nn vertices and 2525 edges such that each vertex of GG has degree at least 33. Then the maximum possible value of nn is _________ .
Official PYQ2017Compiler DesignLexical AnalysisMCQ · 1 mark
Match the following according to input (from the left column) to the compiler phase (in the right column) that processes it: …
Official PYQ2017DatabasesFile Organization and Indexing (B and B+ Trees)NAT · 1 mark
In a B+B^+ Tree , if the search-key value is 88 bytes long , the block size is 512512 bytes and the pointer size is 2  B2\;\text{B} , then the maximum order of the B+B^+ Tree is ____
Official PYQ2017Operating SystemCPU SchedulingNAT · 1 mark
Consider the set of process with arrival time (in milliseonds), CPU burst time (in millisecods) and priority (00 is the highest priority) shown below. None of the process have I/O burst time …
Official PYQ2017Digital LogicSequential CircuitsMCQ · 1 mark
The next state table of a 2−2-bit saturating up-counter is given below. Q1Q0Q1+Q0+0001011010111111\begin{array}{cc|cc} Q_1 & Q_0 & Q_1^+ & Q_0^+ \\ \hline 0 & 0 & 0 & 1 \\ 0 & 1 & 1 & 0 \\ 1 & 0 & 1 & 1 \\ 1 & 1 & 1 & 1 \end{array} The counter is built as a synchronous sequential circuit using TT flip-flops. The …
Official PYQ2017Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMCQ · 1 mark
Consider two hosts XX and YY, connected by a single direct link of rate 106  bits/sec10^6\; \text{bits/sec}. The distance between the two hosts is 10,000  km10,000\;\text{km} and the propagation speed along the link is 2×108  m/sec2 \times 10^8 \;\text{m/sec}. Host XX sends a file of 50,000  bytes50,000\;\text{bytes} as one large message to host YY continuously. Let the …
Official PYQ2017Engineering MathematicsProbability: Random Variables and DistributionsNAT · 1 mark
If a random variable XX has a Poisson distribution with mean 55, then the expectation E[(x+2)2]E\left [ \left ( x+2 \right )^{2} \right ] equals ___.
Official PYQ2017Digital LogicBoolean AlgebraMCQ · 1 mark
If w,x,y,zw, x, y, z are Boolean variables, then which one of the following is INCORRECT?
Official PYQ2017Operating SystemFile SystemsMCQ · 1 mark
In a file allocation system, which of the following allocation scheme(s) can be used if no external fragmentation is allowed? Contiguous Linked Indexed