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 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 …
Official PYQ2024DatabasesER-modelMCQ · 1 mark
Let S\mathrm{S} be the specification: "Instructors teach courses. Students register for courses. Courses are allocated classrooms. Instructors guide students." Which one of the following ER\mathrm{ER} diagrams CORRECTLY represents S\mathrm{S}?
Official PYQ2024DatabasesFile Organization and Indexing (B and B+ Trees)MCQ · 1 mark
In a B+\mathrm{B}^+ tree, the requirement of at least half-full (50%)(50 \%) node occupancy is relaxed for which one of the following cases?
Official PYQ2024DatabasesNormal FormsMSQ · 1 mark
Which of the following statements about a relation R\mathbf{R} in first normal form (1NF)\text{(1NF)} is/are TRUE?
Official PYQ2024Theory of ComputationRegular and Context-free LanguagesMSQ · 1 mark
​Let L1,L2L_1, L_2 be two regular languages and L3L_3 a language which is not regular. Which of the following statements is/are always TRUE?
Official PYQ2024Operating SystemProcesses and ThreadsMCQ · 1 mark
Which of the following statements about threads is/are TRUE?
Official PYQ2024Operating SystemCPU SchedulingMSQ · 1 mark
Which of the following process state transitions is/are NOT possible?
Official PYQ2024Compiler DesignParsing (LL, LR)MSQ · 1 mark
Which of the following is/are Bottom-Up Parser(s)?
Official PYQ2024Engineering MathematicsProbability: Random Variables and DistributionsMSQ · 1 mark
Let AA and BB be two events in a probability space with P(A)=0.3,P(B)=0.5P(A)=0.3, P(B)=0.5, and P(A∩B)=0.1P(A \cap B)=0.1. Which of the following statements is/are TRUE?
Official PYQ2024Digital LogicCombinational CircuitsMSQ · 1 mark
​​Consider the circuit shown below where the gates may have propagation delays. Assume that all signal transitions occur instantaneously and that wires have no delays. Which of the following statements about the circuit is/are CORRECT?
Official PYQ2024Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMSQ · 1 mark
​TCP\mathrm{TCP} client P\mathrm{P} successfully establishes a connection to TCP\text{TCP} server Q\mathrm{Q}. Let NP\text{N}_{P} denote the sequence number in the SYN\text{SYN} sent from P\mathrm{P} to Q\mathrm{Q}. Let NQ\text{N}_{Q} denote the acknowledgement number in the SYN ACK from Q\text{Q} to P\text{P}. Which of the following …
Official PYQ2024Computer Organization and ArchitectureInstruction PipeliningMSQ · 1 mark
Consider a 55-stage pipelined processor with Instruction Fetch (IF), Instruction Decode (ID), Execute (EX), Memory Access (MEM), and Register Writeback (WB) stages. Which of the following statements about forwarding is/are CORRECT?