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
​​A rectangular paper sheet of dimensions 54 cm×4 cm54 \mathrm{~cm} \times 4 \mathrm{~cm} is taken. The two longer edges of the sheet are joined together to create a cylindrical tube. A cube whose surface area is equal to the area of the sheet is also taken. Then, the ratio of the volume of the cylindrical tube to the volume of the cube is
Official PYQ2024General AptitudeMCQ · 2 marks
The pie chart presents the percentage contribution of different macronutrients to a typical 2,000  kcal2,000\; \mathrm{kcal} diet of a person. The typical energy density (kcal/g)(\mathrm{kcal} / \mathrm{g}) of these macronutrients is given in the table. …
Official PYQ2024General AptitudeMCQ · 2 marks
A rectangular paper of 20 cm×8 cm20 \mathrm{~cm} \times 8 \mathrm{~cm} is folded 33 times. Each fold is made along the line of symmetry, which is perpendicular to its long edge. The perimeter of the final folded sheet (in cm\mathrm{cm} ) is
Official PYQ2024General AptitudeMCQ · 2 marks
​​The least number of squares to be added in the figure to make A B\text{A B} a line of symmetry is
Official PYQ2024General AptitudeMCQ · 1 mark
​​Two wizards try to create a spell using all the four elements, water, air, fire, and earth. For this, they decide to mix all these elements in all possible orders. They also decide to work independently. After trying all possible combination of elements, they conclude that the spell does not work. How many attempts does each wizard make before coming to …
Official PYQ2024General AptitudeMCQ · 1 mark
​​​​​If ' →\rightarrow ' denotes increasing order of intensity, then the meaning of the words [walk →\rightarrow jog →\rightarrow sprint] is analogous to [bothered →\rightarrow ________→\rightarrow daunted]. Which one of the given options is appropriate to fill the blank?
Official PYQ2024General AptitudeMCQ · 1 mark
​​​​In an engineering college of 10,00010,000 students, 1,5001,500 like neither their core branches nor other branches. The number of students who like their core branches is 1/4th 1 / 4^{\text{th }} of the number of students who like other branches. The number of students who like both their core and other branches is 500500. The number of students who like …
Official PYQ2024General AptitudeMCQ · 1 mark
For positive non-zero real variables xx and yy, if ln⁡(x+y2)=12[ln⁡(x)+ln⁡(y)]\ln \left(\frac{x+y}{2}\right)=\frac{1}{2}[\ln (x)+\ln (y)] then, the value of xy+yx\frac{x}{y}+\frac{y}{x} is
Official PYQ2024General AptitudeMCQ · 1 mark
​​​​​In the sequence 6,9,14,x,30,416,9,14, x, 30,41, a possible value of xx is
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?