πŸ“š

GATE CS - Previous Year Questions

Actual GATE CS exam questions from previous years (2020-2025)

142 questionsÒ€’15 pagesÒ€’~213 min

Use this quiz track to strengthen recall, speed, and exam-style decision making. Attempt one page first, review explanations, and then re-attempt incorrect questions without notes.

A good scoring strategy is to mark uncertain questions, finish known ones quickly, and return with elimination logic. This improves accuracy while keeping momentum under time constraints.

Progress: 0 / 1420%
Page 10 of 15 β€’ Questions 91-100 of 142
Q91medium

[GATE CS 2024 Set-1 Q28] 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?

Q92medium

[GATE CS 2024 Set-1 Q29] TCP client P successfully establishes a connection to TCP server Q. Let 𝑁 denote 𝑃 the sequence number in the SYN sent from P to Q. Let 𝑁 denote the 𝑄 acknowledgement number in the SYN ACK from Q to P. Which of the following statements is/are CORRECT?

Q93medium

[GATE CS 2024 Set-1 Q30] Consider a 5-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? In a pipelined execution, forwarding means the result from a source stage of an

Q94medium

[GATE CS 2024 Set-1 Q31] Which of the following fields is/are modified in the IP header of a packet going out of a network address translation (NAT) device from an internal network to an external network?

Q95medium

[GATE CS 2024 Set-1 Q36] sends a file of size 106 bytes to R via this path by splitting the file into chunks of 103 bytes each. Node P sends these chunks one after the other without any wait time between the successive chunk transmissions. Assume that the size of extra headers added to these chunks is negligible, and that the chunk size is less than the MTU. Each of the links Pβ€”Q and Qβ€”R has a bandwidth of 106 bits/sec, and negligible propagation latency. Router Q immediately transmits every packet it receives from P to R, with negligible processing and queueing delays. Router Q can simultaneously receive on link Pβ€”Q and transmit on link Qβ€”R. Assume P starts transmitting the chunks at time 𝑑 = 0. Which one of the following options gives the time (in seconds, rounded off to 3 decimal pla...

Q96medium

[GATE CS 2024 Set-1 Q37] Consider the following syntax-directed definition (SDD). 𝑆 β†’ π·π»π‘‡π‘ˆ { 𝑆.π‘£π‘Žπ‘™ = 𝐷.π‘£π‘Žπ‘™ + 𝐻.π‘£π‘Žπ‘™ + 𝑇.π‘£π‘Žπ‘™ + π‘ˆ.π‘£π‘Žπ‘™; } 𝐷 β†’ "M"𝐷 { 𝐷.π‘£π‘Žπ‘™ = 5 + 𝐷 .π‘£π‘Žπ‘™; } 1 1 𝐷 β†’ πœ– { 𝐷.π‘£π‘Žπ‘™ = βˆ’5; } 𝐻 β†’ "L"𝐻 { 𝐻.π‘£π‘Žπ‘™ = 5βˆ—10 + 𝐻 .π‘£π‘Žπ‘™; } 1 1 𝐻 β†’ πœ– { 𝐻.π‘£π‘Žπ‘™ = βˆ’10; } 𝑇 β†’ "C"𝑇 { 𝑇.π‘£π‘Žπ‘™ = 5βˆ—100 + 𝑇 .π‘£π‘Žπ‘™; } 1 1 𝑇 β†’ πœ– { 𝑇.π‘£π‘Žπ‘™ = βˆ’5; } π‘ˆ β†’ "K" { π‘ˆ.π‘£π‘Žπ‘™ = 5; } Given "MMLK" as the input, which one of the following options is the CORRECT value computed by the SDD (in the attribute 𝑆.π‘£π‘Žπ‘™)?

Q97medium

[GATE CS 2024 Set-1 Q38] Consider the following grammar 𝐺, with 𝑆 as the start symbol. The grammar 𝐺 has three incomplete productions denoted by (1), (2), and (3). 𝑆 β†’ π‘‘π‘Žπ‘‡ | (1) 𝑇 β†’ π‘Žπ‘† | 𝑏𝑇 | (2) 𝑅 β†’ (3) | πœ– The set of terminals is {π‘Ž,𝑏,𝑐,𝑑,𝑓}. The FIRST and FOLLOW sets of the different non-terminals are as follows. FIRST(𝑆) = {𝑐,𝑑,𝑓}, FIRST(𝑇) = {π‘Ž,𝑏,πœ–}, FIRST(𝑅) = {𝑐,πœ–} FOLLOW(𝑆) = FOLLOW(𝑇) = {𝑐,𝑓,$}, FOLLOW(𝑅) = {𝑓} Which one of the following options CORRECTLY fills in the incomplete productions?

Q98medium

[GATE CS 2024 Set-1 Q39] Consider the following pseudo-code. 𝐿1: 𝑑1 = βˆ’1 𝐿2: 𝑑2 = 0 𝐿3: 𝑑3 = 0 𝐿4: 𝑑4 = 4βˆ—π‘‘3 𝐿5: 𝑑5 = 4βˆ—π‘‘2 𝐿6: 𝑑6 = 𝑑5βˆ—π‘€ 𝐿7: 𝑑7 = 𝑑4+𝑑6 𝐿8: 𝑑8 = π‘Ž[𝑑7] 𝐿9: if 𝑑8 <= π‘šπ‘Žπ‘₯ goto 𝐿11 𝐿10: 𝑑1 = 𝑑8 𝐿11: 𝑑3 = 𝑑3+1 𝐿12: if 𝑑3 < 𝑀 goto 𝐿4 𝐿13: 𝑑2 = 𝑑2+1 𝐿14: if 𝑑2 < 𝑁 goto 𝐿3 𝐿15: π‘šπ‘Žπ‘₯ = 𝑑1 Which one of the following options CORRECTLY specifies the number of basic blocks and the number of instructions in the largest basic block, respectively ?

Q99medium

[GATE CS 2024 Set-1 Q40] Consider the following two threads T1 and T2 that update two shared variables a and b. Assume that initially a = b = 1. Though context switching between threads can happen at any time, each statement of T1 or T2 is executed atomically without interruption. T1 T2 a = a + 1; b = 2 * b; b = b + 1; a = 2 * a; Which one of the following options lists all the possible combinations of values of a and b after both T1 and T2 finish execution?

Q100medium

[GATE CS 2024 Set-1 Q41] An array [82, 101, 90, 11, 111, 75, 33, 131, 44, 93] is heapified. Which one of the following options represents the first three elements in the heapified array?

......

Quiz Pages

Navigate directly to paginated quiz sets. These links help you revise by page and make every page discoverable.