πŸ“š

GATE CS - Previous Year Questions

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

142 questionsβ€’15 pagesβ€’~213 min
Progress: 0 / 1420%
Page 1 of 15 β€’ Questions 1-10 of 142
Q1medium

[GATE CS 2025 Set-1 Q11] Suppose a program is running on a non-pipelined single processor computer system. The computer is connected to an external device that can interrupt the processor asynchronously. The processor needs to execute the interrupt service routine (ISR) to serve this interrupt. The following steps (not necessarily in order) are taken by the processor when the interrupt arrives: (i) The processor saves the content of the program counter. (ii) The program counter is loaded with the start address of the ISR. (iii) The processor finishes the present instruction. Which ONE of the following is the CORRECT sequence of steps?

Q2medium

[GATE CS 2025 Set-1 Q12] Which ONE of the following statements is FALSE regarding the symbol table?

Q3medium

[GATE CS 2025 Set-1 Q13] Which ONE of the following techniques used in compiler code optimization uses live variable analysis?

Q4medium

[GATE CS 2025 Set-1 Q14] Consider a demand paging memory management system with 32-bit logical address, 20-bit physical address, and page size of 2048 bytes. Assuming that the memory is byte addressable, what is the maximum number of entries in the page table?

Q5medium

[GATE CS 2025 Set-1 Q15] A schedule of three database transactions 𝑇 , 𝑇 , and 𝑇 is shown. 𝑅 (𝐴) and 1 2 3 𝑖 π‘Š(𝐴) denote read and write of data item 𝐴 by transaction 𝑇,𝑖 = 1,2,3. The 𝑖 𝑖 transaction 𝑇 aborts at the end. Which other transaction(s) will be required to be 1 rolled back? 𝑅 (𝑋) π‘Š (π‘Œ) 𝑅 (𝑋) 𝑅 (π‘Œ) 𝑅 (π‘Œ) 𝐴𝐡𝑂𝑅𝑇(𝑇 ) 1 1 2 2 3 1

Q6medium

[GATE CS 2025 Set-1 Q16] Identify the ONE CORRECT matching between the OSI layers and their corresponding functionalities as shown. OSI Layers Functionalities (a) Network layer (I) Packet routing (b) Transport layer (II) Framing and error handling (c) Datalink layer (III) Host to host communication

Q7medium

[GATE CS 2025 Set-1 Q17] 𝑔(.) is a function from 𝐴 to 𝐡, 𝑓(.) is a function from 𝐡 to 𝐢, and their composition defined as 𝑓(𝑔(.)) is a mapping from 𝐴 to 𝐢. If 𝑓(.) and 𝑓(𝑔(.)) are onto (surjective) functions, which ONE of the following is TRUE about the function 𝑔(.)?

Q8medium

[GATE CS 2025 Set-1 Q18] Let 𝐺 be any undirected graph with positive edge weights, and 𝑇 be a minimum spanning tree of 𝐺. For any two vertices, 𝑒 and 𝑣, let 𝑑 (𝑒,𝑣) and 𝑑 (𝑒,𝑣) be the 1 2 shortest distances between 𝑒 and 𝑣 in 𝐺 and 𝑇, respectively. Which ONE of the options is CORRECT for all possible 𝐺, 𝑇, 𝑒 and 𝑣?

Q9medium

[GATE CS 2025 Set-1 Q19] Consider the following context-free grammar 𝐺, where 𝑆, 𝐴, and 𝐡 are the variables (non-terminals), π‘Ž and 𝑏 are the terminal symbols, 𝑆 is the start variable, and the rules of 𝐺 are described as: 𝑆 β†’ π‘Žπ‘Žπ΅ | 𝐴𝑏𝑏 𝐴 β†’ π‘Ž | π‘Žπ΄ 𝐡 β†’ 𝑏 | 𝑏𝐡 Which ONE of the languages 𝐿(𝐺) is accepted by 𝐺?

Q10medium

[GATE CS 2025 Set-1 Q20] 𝑇(𝑛) = 2𝑇(π‘›βˆ’1)+𝑛2𝑛 for 𝑛 > 0, 𝑇(0) = 1. W hich ONE of the following options is CORRECT?

...