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 PYQ2026Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingNAT · 2 marks
It is necessary to design a link-layer protocol between two hosts that are directly connected over a lossless link of length 30003000 kilometers. Assume that the link bandwidth is 10810^{8} bits per second and that the propagation delay in the link is 55 nanoseconds per meter. Every transmitted data byte is assigned a unique sequence number. Let NN be …
Official PYQ2025General AptitudeMCQ · 1 mark
Ravi had _______ younger brother who taught at _________ university. He was widely regarded as ________ honorable man. Select the option with the correct sequence of articles to fill in the blanks.
Official PYQ2025General AptitudeMCQ · 1 mark
The CEO's decision to downsize the workforce was considered myopic‾\underline{myopic} because it sacrificed long-term stability to accommodate short-term gains. Select the most appropriate option that can replace the word "myopic" without changing the meaning of the sentence.
Official PYQ2025General AptitudeMCQ · 1 mark
The average marks obtained by a class in an examination were calculated as 30.830.8. However, while checking the marks entered, the teacher found that the marks of one student were entered incorrectly as 2424 instead of 4242. After correcting the marks, the average becomes 31.431.4. How many students does the class have?
Official PYQ2025General AptitudeMCQ · 1 mark
Consider the relationships among P,Q,R,S\mathrm{P}, \mathrm{Q}, \mathrm{R}, \mathrm{S}, and T\mathrm{T} : P\mathrm{P} is the brother of Q\mathrm{Q}. S\mathrm{S} is the daughter of Q\mathrm{Q}. T\mathrm{T} is the sister of S\mathrm{S}. R\mathrm{R} is the mother of Q\mathrm{Q}. The following statements are made based on the …
Official PYQ2025General AptitudeMCQ · 1 mark
According to the map shown in the figure, which one of the following statements is correct? Note: The figure shown is representative.
Official PYQ2025General AptitudeMCQ · 2 marks
"I put the brown paper in my pocket along with the chalks, and possibly other things. I suppose every one must have reflected how primeval and how poetical are the things that one carries in one's pocket: the pocket-knife, for instance the type of all human tools, the infant of the sword. Once I planned to write a book of poems entirely about the things in …
Official PYQ2025General AptitudeMCQ · 2 marks
In the diagram, the lines QR and ST are parallel to each other. The shortest distance between these two lines is half the shortest distance between the point P and line QR. What is the ratio of the area of the triangle PST to the area of the trapezium SQRT? Note: The figure shown is representative.
Official PYQ2025General AptitudeMCQ · 2 marks
A fair six-faced dice, with the faces labelled ‘ 11 ’, ‘ 22 ’, ‘ 33 ’, ‘ 44 ’, ‘ 55 ’, and ‘ 66 ’, is rolled thrice. What is the probability of rolling ‘ 66 ’ exactly once?
Official PYQ2025General AptitudeMCQ · 2 marks
A square paper, shown in figure (I)(I), is folded along the dotted lines as shown in the figures (II)(II) and (III)(III). Then a few cuts are made as shown in figure (IV)(IV). Which one of the following patterns will be obtained when the paper is unfolded? Note: The figures shown are representative. ​​​​
Official PYQ2025General AptitudeMCQ · 2 marks
A shop has 44 distinct flavors of ice-cream. One can purchase any number of scoops of any flavor. The order in which the scoops are purchased is inconsequential. If one wants to purchase 33 scoops of ice-cream, in how many ways can one make that purchase?
Official PYQ2025Computer Organization and ArchitectureI/O Interface: Interrupt and DMA ModeMCQ · 1 mark
Suppose a program is running on a non-pipelined single processor computer system. The computer is connected to an external device that can interrupt the processor asynchronously. The processor needs to execute the interrupt service routine (ISR) to serve this interrupt. The following steps (not necessarily in order) are taken by the processor when the …
Official PYQ2025Compiler DesignLexical AnalysisMCQ · 1 mark
Which ONE of the following statements is FALSE regarding the symbol table?
Official PYQ2025Compiler DesignLocal OptimizationMCQ · 1 mark
Which ONE of the following techniques used in compiler code optimization uses live variable analysis?
Official PYQ2025Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Consider a demand paging memory management system with 3232-bit logical address, 2020-bit physical address, and page size of 20482048 bytes. Assuming that the memory is byte addressable, what is the maximum number of entries in the page table?
Official PYQ2025DatabasesTransactions and Concurrency ControlMCQ · 1 mark
A schedule of three database transactions T1,T2T_{1}, T_{2}, and T3T_{3} is shown. Ri(A)R_{i}(A) and Wi(A)W_{i}(A) denote read and write of data item AA by transaction Ti,i=1,2,3T_{i}, i=1,2,3. The transaction T1T_{1} aborts at the end. Which other transaction(s) will be required to be rolled back? …
Official PYQ2025Computer NetworksConcept of Layering: OSI and TCP/IP Protocol StacksMCQ · 1 mark
Identify the ONE CORRECT matching between the OSI layers and their corresponding functionalities as shown. …
Official PYQ2025Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
g(⋅)g(\cdot) is a function from AA to BB, f(⋅)f(\cdot) is a function from BB to CC, and their composition defined as f(g(⋅))f(g(\cdot)) is a mapping from AA to CC. If f(⋅)f(\cdot) and f(g(⋅))f(g(\cdot)) are onto (surjective) functions, which ONE of the following is TRUE about the function g(⋅)g(\cdot) ?
Official PYQ2025AlgorithmsMinimum Spanning TreesMCQ · 1 mark
Let GG be any undirected graph with positive edge weights, and TT be a minimum spanning tree of GG. For any two vertices, uu and vv, let d1(u,v)d_{1}(u, v) and d2(u,v)d_{2}(u, v) be the shortest distances between uu and vv in GG and TT, respectively. Which ONE of the options is CORRECT for all possible G,T,uG, T, u and vv ?
Official PYQ2025Theory of ComputationContext-free Grammars and Push-down AutomataMCQ · 1 mark
Consider the following context-free grammar GG, where S,AS, A, and BB are the variables (non-terminals), aa and bb are the terminal symbols, SS is the start variable, and the rules of GG are described as: S→aaB∣AbbA→a∣aAB→b∣bB\begin{array}{l} S \rightarrow a a B \mid A b b \\ A \rightarrow a \mid a A \\ B \rightarrow b \mid b B \end{array} Which ONE of the …