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 PYQ2022Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsMSQ · 2 marks
Consider the following recurrence: f(1)=1;f(2n)=2f(n)–1,  for  n≥1;f(2n+1)=2f(n)+1,  for  n≥1.\begin{array}{} f(1) & = & 1; \\ f(2n) & = & 2f(n) – 1, & \; \text{for}\; n \geq 1; \\ f(2n+1) & = & 2f(n) + 1, & \; \text{for}\; n \geq 1. \end{array} Then, which of the following statements is/are TRUE?\text{TRUE}?
Official PYQ2022Engineering MathematicsGraphs: Connectivity, Matching, ColouringMCQ · 2 marks
Which of the properties hold for the adjacency matrix AA of a simple undirected unweighted graph having nn vertices?
Official PYQ2022Engineering MathematicsEigenvalues and Eigenvectors, LU DecompositionMSQ · 2 marks
​​​​​Which of the following is/are the eigenvector(s) for the matrix given below? (–9–6–2–4–8–6–3–12015853221712)\begin{pmatrix} – 9 & – 6 & – 2 & – 4 \\ – 8 & – 6 & – 3 & – 1 \\ 20 & 15 & 8 & 5 \\ 32 & 21 & 7 & 12 \end{pmatrix}
Official PYQ2022Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMSQ · 2 marks
Consider a system with 2  KB2 \;\text{KB} direct mapped data cache with a block size of 64  bytes.64 \; \text{bytes}. The system has a physical address space of 64  KB64 \; \text{KB} and a word length of 16  bits.16 \; \text{bits.} During the execution of a program, four data words P, Q, R,\text{P, Q, R,} and S\text{S} are accessed in that order 1010 times …
Official PYQ2022Computer NetworksFragmentation and IP Addressing, IPv4, CIDRMSQ · 2 marks
Consider routing table of an organization’s router shown below: …
Official PYQ2022DatabasesTuple Calculus and SQLNAT · 2 marks
Consider the relational database with the following four schemas and their respective instances. Student(sNo, sName, dNo) Dept(dNo, dName) Course(cNo, cName, dNo) Register(sNo, cNo) …
Official PYQ2022Computer NetworksRouting Protocols: Shortest Path, Flooding, Distance Vector, Link StateNAT · 2 marks
Consider a network with three routers P, Q, R\text{P, Q, R} shown in the figure below. All the links have cost of unity. The routers exchange distance vector routing information and have converged on the routing tables, after which the link Q-R\text{Q-R} fails. Assume that P\text{P} and Q\text{Q} send out routing updates at random times, each at the same …
Official PYQ2022AlgorithmsMinimum Spanning TreesNAT · 2 marks
Let G(V,E)\textit{G(V,E)} be a directed graph, where V={1,2,3,4,5}\textit{V} = \{ 1, 2, 3, 4, 5 \} is the set of vertices and E\textit{E} is the set of directed edges, as defined by the following adjacency matrix A.\textit{A}. A[i][j]={1,1≤j≤i≤50,otherwiseA [i][j] = \left\{\begin{matrix} 1, & 1 \leq j \leq i \leq 5 \\ 0, & \text{otherwise}\end{matrix}\right. A[i][j]=1A[i][j] = 1 …
Official PYQ2022Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsNAT · 2 marks
Consider a 100  Mbps100 \; \text{Mbps} link between an earth station (sender) and a satellite (receiver) at an altitude of 2100  km.2100 \; \text{km}. The signal propagates at a speed of 3×108  m/s.3 \times 10^{8} \; \text{m/s.} The time taken (in milliseconds,  rounded off to two decimal places)\text{(in milliseconds,} \; \textit{rounded off to two decimal places}) for the receiver to completely receive a packet of …
Official PYQ2022Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsNAT · 2 marks
Consider the data transfer using TCP\text{TCP} over a 1  Gbps1 \; \text{Gbps} link. Assuming that the maximum segment lifetime (MSL)\text{(MSL)} is set to 60  seconds,60 \; \text{seconds}, the minimum number of bits required for the sequence number field of the TCP\text{TCP} header, to prevent the sequence number space from wrapping around during the MSL\text{MSL} is …
Official PYQ2022Computer Organization and ArchitecturePipeline HazardsNAT · 2 marks
A processor X1\text{X}_{1} operating at 2  GHz2 \; \text{GHz} has a standard 5−5-stage RISC\text{RISC} instruction pipeline having a base CPI (cycles per instruction)\text{CPI (cycles per instruction)} of one without any pipeline hazards. For a given program P\text{P} that has 30%30 \% branch instructions, control hazards incur 22 cycles stall for every branch. A new …
Official PYQ2022Programming and Data StructuresArrays, Stacks and QueuesNAT · 2 marks
Consider the queues Q1Q_{1} containing four elements and Q2Q_{2} containing none (shown as the Initial State\textsf{Initial State} in the figure). The only operations allowed on these two queues are Enqueue (Q, element)\textsf{Enqueue (Q, element)} and Dequeue (Q).\textsf{Dequeue (Q)}. The minimum number of Enqueue\textsf{Enqueue} operations on Q1Q_{1} required to place the elements of …
Official PYQ2022Operating SystemFile SystemsNAT · 2 marks
Consider two files systems A\text{A} and B\text{B}, that use contiguous allocation and linked allocation, respectively. A file of size 100100 blocks is already stored in A\text{A} and also in B\text{B}. Now, consider inserting a new block in the middle of the file (between 50th50^{th} and 51st51^{st} block), whose data is already available in …
Official PYQ2022Operating SystemMemory Management and Virtual MemoryNAT · 2 marks
Consider a demand paging system with four page frames (initially empty) and LRU\text{LRU} page replacement policy. For the following page reference string 7,2,7,3,2,5,3,4,6,7,7,1,5,6,17, 2, 7, 3, 2, 5, 3, 4, 6, 7, 7, 1, 5, 6, 1 the page fault rate, defined as the ratio of number of page faults to the number of memory accesses (rounded off to one decimal place)\textit{(rounded off to one decimal place)} is …
Official PYQ2022Compiler DesignSyntax-directed TranslationNAT · 2 marks
Consider the following grammar along with translation rules. …
Official PYQ2022General AptitudeMCQ · 1 mark
The ____________ is too high for it to be considered _____________.
Official PYQ2022General AptitudeMCQ · 1 mark
A function y(x)y(x) is defined in the interval [0,1][0, 1] on the x–x – axis as y(x)={2if0≤x<133if13≤x<341if34≤x≤1y(x) = \left\{\begin{matrix} 2& \text{if} & 0 \leq x < \frac{1}{3} \\ 3& \text{if}& \frac{1}{3} \leq x < \frac{3}{4} & \\ 1 & \text{if} & \frac{3}{4} \leq x \leq 1& \end{matrix}\right. Which one of the following is the area under the …
Official PYQ2022General AptitudeMCQ · 1 mark
Let rr be a root of the equation x2+2x+6=0.x^{2} + 2x + 6 = 0. Then the value of the expression (r+2)(r+3)(r+4)(r+5)(r+2) (r+3) (r+4) (r+5) is
Official PYQ2022General AptitudeMCQ · 1 mark
Given below are four statements. Statement 1:1: All students are inquisitive. Statement 2:2: Some students are inquisitive. Statement 3:3: No student is inquisitive. Statement 4:4: Some students are not inquisitive. From the given four statements, find the two statements that CANNOT BE TRUE\text{CANNOT BE TRUE} simultaneously, assuming that there is at least …
Official PYQ2022General AptitudeMCQ · 1 mark
A palindrome is a word that reads the same forwards and backwards. In a game of words, a player has the following two plates painted with letters. From the additional plates given in the options, which one of the combinations of additional plates would allow the player to construct a five-letter palindrome. The player should use all the five plates exactly …