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 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?
Official PYQ2024Computer NetworksFragmentation and IP Addressing, IPv4, CIDRMSQ · 1 mark
Which of the following fields is/are modified in the IP\text{IP} header of a packet going out of a network address translation (NAT)\text{(NAT)} device from an internal network to an external network?
Official PYQ2024Engineering MathematicsSets, Relations and FunctionsNAT · 1 mark
Let AA and BB be non-empty finite sets such that there exist one-to-one and onto functions (i)\text{(i)} from AA to BB and (ii)\text{(ii)} from A×AA \times A to A∪BA \cup B. The number of possible values of |A|\text{|A|} is ___________.
Official PYQ2024Compiler DesignParsing (LL, LR)NAT · 1 mark
Consider the operator precedence and associativity rules for the integer arithmetic operators given in the table below. …
Official PYQ2024Engineering MathematicsGraphs: Connectivity, Matching, ColouringNAT · 1 mark
The number of spanning trees in a complete graph of 44 vertices labelled A, B, C,\text{A, B, C,} and D\text{D} is _________.
Official PYQ2024DatabasesRelational Model: Relational AlgebraNAT · 1 mark
Consider the following two relations, R(A,B)R(A, B) and S(A,C)S(A, C): …
Official PYQ2024Computer NetworksRouting Protocols: Shortest Path, Flooding, Distance Vector, Link StateMCQ · 2 marks
Consider a network path P−Q−R\mathrm{P}-\mathrm{Q}-\mathrm{R} between nodes P\mathrm{P} and R\mathrm{R} via router Q\mathrm{Q}. Node P\mathrm{P} sends a file of size 10610^6 bytes to R\text{R} via this path by splitting the file into chunks of 10310^3 bytes each. Node P\text{P} sends these chunks one after the other without any wait time …
Official PYQ2024Compiler DesignSyntax-directed TranslationMCQ · 2 marks
​Consider the following syntax-directed definition (SDD)\text{(SDD)}. …
Official PYQ2024Compiler DesignIntermediate Code GenerationMCQ · 2 marks
Consider the following pseudo-code. L 1: t1 = -1 L 2: t2 = 0 L 3: t3 = 0 L 4: t4 = 4 * t3 L 5: t5 = 4 * t2 L 6: t6 = t5 * M L 7: t7 = t4 + t6 L 8: t8 = a[t7] L 9: if t8 <= max goto L11 L 10: t1 = t8 L 11: t3 = t3 + 1 L 12: if t3 < M goto L4 L 13: t2 = t2 + 1 L 14: if t2 < N goto L3 L 15: max = t1 Which one of the following options CORRECTLY …
Official PYQ2024Operating SystemProcesses and ThreadsMCQ · 2 marks
​​​Consider the following two threads T1\mathrm{T} 1 and T2\mathrm{T} 2 that update two shared variables a\mathrm{a} and b\mathrm{b}. Assume that initially a=b=1\mathrm{a}=\mathrm{b}=1. Though context switching between threads can happen at any time, each statement of T1\mathrm{T} 1 or T2\mathrm{T} 2 is executed atomically without interruption. …