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 PYQ2025Digital LogicBoolean AlgebraMSQ · 2 marks
Which of the following Boolean algebraic equation(s) is/are CORRECT?
Official PYQ2025General AptitudeMCQ · 1 mark
Despite his initial hesitation, Rehman's ____________ to contribute to the success of the project never wavered. Select the most appropriate option to complete the above sentence.
Official PYQ2025General AptitudeMCQ · 1 mark
​​​​​Bird : Nest :: Bee : ______
Official PYQ2025General AptitudeMCQ · 1 mark
​​​​​​If P ex=Q e−xP \: e^{x} = Q \: e^{-x} for all real values of xx, which one of the following statements is true?
Official PYQ2025General AptitudeMCQ · 1 mark
The paper as showin the figure is folded to make a cube where each square corresponds to a particular face of the cube. Which one of the following options correctly represents the cube? Note: The figures showin are representative.
Official PYQ2025General AptitudeMCQ · 1 mark
​​​​​Let p1p_1 and p2p_2 denote two arbitrary prime numbers. Which one of the following statemetns is correct for all values of p1p_1 and p2p_2?
Official PYQ2025General AptitudeMCQ · 2 marks
​​​​​Based only on the conversation below, identify the logically correct inference: "Even if I had known that you were in the hospital, I would not have gone there to see you", Ramya told Josephine.
Official PYQ2025General AptitudeMCQ · 2 marks
​​​​If IMAGE and FIELD are coded as FHBNJ and EMFJG respectively then, which one among the given options is the most appropriate code for BEACH?
Official PYQ2025General AptitudeMCQ · 2 marks
Which one of the following options is correct for the given data in the table? …
Official PYQ2025General AptitudeMCQ · 2 marks
In the Given figure, PQRS is a square of side 22 cm and PLMN is a rectangle. The corner L of teh rectangle is on the side QR. Side MN of the rectangle passes through the corner S of the square. What is the area (in cm2cm^2) of the rectangle PLMN? Note: The figure shown is representative.
Official PYQ2025General AptitudeMCQ · 2 marks
​​​​​​The diagram below shows a river system consisting of 77 segments, marked P,Q,R,S,T,U,P, Q, R, S, T, U, and V.V. It splits the land into 55 zones, marked Z1,Z2,Z3,Z4,Z1, Z2, Z3, Z4, and Z5Z5. We need to connect these zones using the least number of bridges, Out of the following options, which one is correct? Note: The figure shown is representative.
Official PYQ2024Engineering MathematicsCalculus: Limits, Continuity, DifferentiabilityMCQ · 1 mark
Let f:R→Rf: \mathbb{R} \rightarrow \mathbb{R} be a function such that f(x)=max⁡{x,x3},x∈Rf(x)=\max \left\{x, x^3\right\}, x \in \mathbb{R}, where R\mathbb{R} is the set of all real numbers. The set of all points where f(x)f(x) is NOT differentiable is
Official PYQ2024Engineering MathematicsEigenvalues and Eigenvectors, LU DecompositionMCQ · 1 mark
The product of all eigenvalues of the matrix [123456789]\left[\begin{array}{lll}1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9\end{array}\right] is
Official PYQ2024Digital LogicNumber Representations (Fixed and Floating Point)MCQ · 1 mark
Consider a system that uses 55 bits for representing signed integers in 22 's complement format. In this system, two integers AA and BB are represented as AA=0101001010 and BB=1101011010. Which one of the following operations will result in either an arithmetic overflow or an arithmetic underflow?
Official PYQ2024Engineering MathematicsProbability: Random Variables and DistributionsMCQ · 1 mark
Consider a permutation sampled uniformly at random from the set of all permutations of {1,2,3,⋯ ,n}\{1,2,3, \cdots, n\} for some n≥4n \geq 4. Let XX be the event that 11 occurs before 22 in the permutation, and YY the event that 33 occurs before 44. Which one of the following statements is TRUE?
Official PYQ2024Computer Organization and ArchitectureI/O Interface: Interrupt and DMA ModeMCQ · 1 mark
​​​​Which one of the following statements is FALSE?
Official PYQ2024Computer NetworksConcept of Layering: OSI and TCP/IP Protocol StacksMCQ · 1 mark
A user starts browsing a webpage hosted at a remote server. The browser opens a single TCP connection to fetch the entire webpage from the server. The webpage consists of a top-level index page with multiple embedded image objects. Assume that all caches (e.g., DNS cache, browser cache) are all initially empty. The following packets leave the user's computer …
Official PYQ2024AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
Given an integer array of size NN, we want to check if the array is sorted (in either ascending or descending order). An algorithm solves this problem by making a single pass through the array and comparing each element of the array only with its adjacent elements. The worst-case time complexity of this algorithm is
Official PYQ2024Programming and Data StructuresProgramming in CMCQ · 1 mark
Consider the following C\mathrm{C} program: #include <stdio.h> int main() { int a=6; int b = 0; while (a<10) { a = a / 12+1 ; a += b ;} printf ("%d", a); return 0 ; } Which one of the following statements is CORRECT?
Official PYQ2024Programming and Data StructuresProgramming in CMCQ · 1 mark
​​​Consider the following C\mathrm{C} program: #include <stdio.h> void fX (); int main(){ fX(); return 0 }; void fX () { char a; if ((a=g e t c h a r()) ! = '\n') fX(); if (a ! = '\n') putchar (a); } Assume that the input to the program from the command line is 12341234 followed by a newline character. Which one of the following statements is …