π
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?
......