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 PYQ2024General AptitudeMCQ · 2 marks
​​​​​Sequence the following sentences in a coherent passage. P\text{P}: This fortuitous geological event generated a colossal amount of energy and heat that resulted in the rocks rising to an average height of 4 km4 \mathrm{~km} across the contact zone. Q\text{Q}: Thus, the geophysicists tend to think of the Himalayas as an active geological event …
Official PYQ2024General AptitudeMCQ · 2 marks
​​​​​​A person sold two different items at the same price. He made 10%10 \% profit in one item, and 10%10 \% loss in the other item. In selling these two items, the person made a total of
Official PYQ2024General AptitudeMCQ · 2 marks
​​​​The pie charts depict the shares of various power generation technologies in the total electricity generation of a country for the years 20072007 and 20232023. The renewable sources of electricity generation consist of Hydro, Solar and Wind. Assuming that the total electricity generated remains the same from 20072007 to 20232023, what is the percentage …
Official PYQ2024General AptitudeMCQ · 2 marks
​​​​A cube is to be cut into 88 pieces of equal size and shape. Here, each cut should be straight and it should not stop till it reaches the other end of the cube. The minimum number of such cuts required is
Official PYQ2024General AptitudeMCQ · 2 marks
In the 4×44 \times 4 array shown below, each cell of the first three rows has either a cross (X)(X) or a number. The number in a cell represents the count of the immediate neighboring cells (left, right, top, bottom, diagonals) NOT having a cross ( XX ). Given that the last row has no crosses (X)(X), the sum of the four numbers to be filled in the last …
Official PYQ2024Computer Organization and ArchitectureI/O Interface: Interrupt and DMA ModeMCQ · 1 mark
​​​Consider a computer with a 4MHz4 \mathrm{MHz} processor. Its DMA\text{DMA} controller can transfer 88 bytes in 11 cycle from a device to main memory through cycle stealing at regular intervals. Which one of the following is the data transfer rate (in bits per second) of the DMA\text{DMA} controller if 1%1 \% of the processor cycles are used for …
Official PYQ2024Engineering MathematicsPropositional and First Order LogicMCQ · 1 mark
​​​​Let pp and qq be the following propositions: pp : Fail grade can be given. qq : Student scores more than 50%50 \% marks. Consider the statement: "Fail grade cannot be given when student scores more than 50%50 \% marks." Which one of the following is the CORRECT representation of the above statement in propositional logic?
Official PYQ2024Programming and Data StructuresProgramming in CMCQ · 1 mark
Consider the following C\text{C} program. Assume parameters to a function are evaluated from right to left. #include <stdio.h> int g(int p) { printf("%d", p); return p; } int h(int q) { printf("%d", q); return q; } void f(int x, int y) { g(x); h(y); } int main() { f(g(10), h(20)); } Which one of the following options is the CORRECT output of the …
Official PYQ2024AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
​​​​​Let T(n)\text{T(n)} be the recurrence relation defined as follows: T(0)=1,T(1)=2, and T(n)=5T(n−1)−6T(n−2) for n≥2\begin{array}{l} T(0)=1, \\ T(1)=2, \text{ and } \\ T(n)=5 T(n-1)-6 T(n-2) \text{ for } n \geq 2 \end{array} Which one of the following statements is TRUE?
Official PYQ2024Engineering MathematicsMaxima and Minima, Mean Value Theorem, IntegrationMCQ · 1 mark
​​​​​Let f(x)f(x) be a continuous function from R\mathbb{R} to R\mathbb{R} such that f(x)=1−f(2−x)f(x)=1-f(2-x) Which one of the following options is the CORRECT value of ∫02f(x)dx\int_{0}^{2} f(x) d x ?
Official PYQ2024Engineering MathematicsGraphs: Connectivity, Matching, ColouringMCQ · 1 mark
​​​​Let A\text{A} be the adjacency matrix of a simple undirected graph G\text{G}. Suppose A\text{A} is its own inverse. Which one of the following statements is always TRUE?
Official PYQ2024Engineering MathematicsProbability: Random Variables and DistributionsMCQ · 1 mark
​​​​​​When six unbiased dice are rolled simultaneously, the probability of getting all distinct numbers (i.e.,1,2,3,4,5,and 6)(i.e., 1, 2, 3, 4, 5, \text{and } 6) is
Official PYQ2024DatabasesTransactions and Concurrency ControlMCQ · 1 mark
​​​​​Once the DBMS\text{DBMS} informs the user that a transaction has been successfully completed, its effect should persist even if the system crashes before all its changes are reflected on disk. This property is called
Official PYQ2024DatabasesER-modelMCQ · 1 mark
In the context of owner and weak entity sets in the ER\text{ER} (Entity-Relationship) data model, which one of the following statements is TRUE?
Official PYQ2024Compiler DesignLexical AnalysisMCQ · 1 mark
​​​Consider the following two sets: …
Official PYQ2024Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
​​​​Which one of the following regular expressions is equivalent to the language accepted by the DFA\text{DFA} given below?
Official PYQ2024Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingMCQ · 1 mark
​Node X\text{X} has a TCP\text{TCP} connection open to node Y\text{Y}. The packets from X\text{X} to Y\text{Y} go through an intermediate IP\text{IP} router R\mathrm{R}. Ethernet switch S\mathrm{S} is the first switch on the network path between X\mathrm{X} and R\mathrm{R}. Consider a packet sent from X\mathrm{X} to …
Official PYQ2024Operating SystemMemory Management and Virtual MemoryMSQ · 1 mark
​Which of the following tasks is/are the responsibility/responsibilities of the memory management unit (MMU)\text{(MMU)} in a system with paging-based memory management?
Official PYQ2024Operating SystemProcesses and ThreadsMSQ · 1 mark
​​​​Consider a process P\text{P} running on a CPU\text{CPU}. Which one or more of the following events will always trigger a context switch by the OS\text{OS} that results in process P\mathrm{P} moving to a non-running state (e.g., ready, blocked)?
Official PYQ2024DatabasesFile Organization and Indexing (B and B+ Trees)MSQ · 1 mark
​​​​​Which of the following file organizations is/are I/O\text{I/O} efficient for the scan operation in DBMS\text{DBMS}?