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 PYQ2026General AptitudeMCQ · 1 mark
'When it is raining, peacocks dance.' Based only on this sentence, which one of the following options is necessarily true?
Official PYQ2026General AptitudeMCQ · 2 marks
Water : P\text{P} : Food : Q\text{Q} Choose the P\text{P} and Q\text{Q} combination from the options below to form a meaningful analogy.
Official PYQ2026General AptitudeMCQ · 2 marks
Two tiles are missing in Panel I\text{I}. Which one of the options in Panel II\text{II} is the appropriate choice for the missing tiles?
Official PYQ2026General AptitudeMCQ · 2 marks
Figures (i)\text{(i)} and (ii)\text{(ii)} represent intercity highway systems. The black dots represent cities and the line segments between them represent intercity highways. A salesperson needs to make a trip. She needs to start from a city, visit each of the remaining cities exactly once, and finally return to the same city from which she started. Which …
Official PYQ2026General AptitudeMCQ · 2 marks
The figure in Panel I\text{I} below is a grid of cells with four rows and four columns. The numbers on the top and on the left represent the number of cells that are to be shaded in that column and row, respectively. Which one of the options shown in Panel II\text{II} below represents the grid shaded correctly?
Official PYQ2026General AptitudeMCQ · 2 marks
An unbiased six-faced dice whose faces are marked with numbers 1,2,3,4,51,2,3,4,5, and 66 is rolled twice in succession and the number on the top face is recorded each time. The probability that the sum of the two recorded numbers is a prime number is _______\_\_\_\_\_\_\_
Official PYQ2026Engineering MathematicsPropositional and First Order LogicMCQ · 1 mark
For two different persons xx and yy, the predicate M(x,y)M(x, y) denotes that xx knows yy. Consider the following statement. There is a person who does not know anyone else, but that person is known by everyone else. Which one of the following expressions represents the above statement?
Official PYQ2026Programming and Data StructuresTreesMCQ · 1 mark
The set T\mathbf{T} represents various traversals over binary tree. The set S\mathbf{S} represents the order of visiting nodes during a traversal. …
Official PYQ2026Theory of ComputationTuring MachinesMCQ · 1 mark
Which one of the following statements is equivalent to the following assertion? Turing machine MM decides the language L⊆{0,1}∗L \subseteq\{0,1\}^{*}
Official PYQ2026Engineering MathematicsProbability: Random Variables and DistributionsMCQ · 1 mark
The probability density function f(x)f(x) of a random variable XX which takes real values is f(x)=132πexp⁡(−x218),x∈(−∞,+∞)f(x)=\frac{1}{3 \sqrt{2 \pi}} \exp \left(-\frac{x^{2}}{18}\right), \quad x \in(-\infty,+\infty) Which one of the following statements is correct about the random variable XX ?
Official PYQ2026DatabasesER-modelMCQ · 1 mark
In the context of DBMS, consider the two sets T\mathbf{T} and S\mathbf{S} given below. …
Official PYQ2026Digital LogicBoolean AlgebraMCQ · 1 mark
Which one of the following options is not a property of Boolean Algebra? Note: +{+} is OR operation, ⋅\cdot is AND operation, and ′{\prime} is NOT operation
Official PYQ2026Programming and Data StructuresProgramming in CMCQ · 1 mark
In C runtime environment, which one of the following is stored in heap?
Official PYQ2026Computer Organization and ArchitectureI/O Interface: Interrupt and DMA ModeMCQ · 1 mark
Consider the following two statements about interrupt handling mechanisms in a CPU. S1\text{S1}: In non-vectored interrupt mechanism, it usually takes more time to start the Interrupt Service Routine (ISR) when compared to that in a vectored interrupt mechanism. S2\text{S2}: In daisy-chain interrupt mechanism, the CPU polls all the input devices …
Official PYQ2026Programming and Data StructuresProgramming in CMCQ · 1 mark
Consider the following three ANSI-C programs, P1, P2,\text{P1, P2,} and P3\text{P3}. …
Official PYQ2026DatabasesTransactions and Concurrency ControlMCQ · 1 mark
Consider concurrent execution of two transactions T1T 1 and T2T 2 in a DBMS, both of which access a data object AA. For these two transactions to not conflict on AA, which one of the following statements must be true?
Official PYQ2026Computer NetworksRouting Protocols: Shortest Path, Flooding, Distance Vector, Link StateMCQ · 1 mark
Consider a file of size 44 million bytes being transferred between two hosts connected via a path consisting of three consecutive links of bandwidth 22 Mbps , 500500 kbps , and 11 Mbps , respectively. All processing delays and propagation delays are negligible. Assume that there is no other background traffic over the path and no other additional …
Official PYQ2026Computer NetworksApplication Layer Protocols: DNS, SMTP, HTTP, FTP, EmailMCQ · 1 mark
Which one of the following protocols may need to broadcast some of its messages?
Official PYQ2026Operating SystemCPU SchedulingMCQ · 1 mark
Which one of the following CPU scheduling algorithms cannot be preemptive?
Official PYQ2026AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
Consider the following functions, where nn is a positive integer. n1/3,log⁡(n),log⁡(n!),2log⁡(n)n^{1 / 3}, \log (n), \log (n!), 2^{\log (n)} Which one of the following options lists the functions in increasing order of asymptotic growth rate? Note: Assume the base of log to be 22.