πŸ“š

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 3 of 15 β€’ Questions 21-30 of 142
Q21medium

[GATE CS 2025 Set-1 Q38] A computer has two processors, 𝑀 and 𝑀 . Four processes 𝑃 ,𝑃 ,𝑃 ,𝑃 with CPU 1 2 1 2 3 4 bursts of 20, 16, 25, and 10 milliseconds, respectively, arrive at the same time and these are the only processes in the system. The scheduler uses non-preemptive priority scheduling, with priorities decided as follows: β€’ 𝑀 uses priority of execution for the processes as, 𝑃 > 𝑃 > 𝑃 > 𝑃 , i.e., 1 1 3 2 4 𝑃 and 𝑃 have highest and lowest priorities, respectively. 1 4 β€’ 𝑀 uses priority of execution for the processes as, 𝑃 > 𝑃 > 𝑃 > 𝑃 , i.e., 2 2 3 4 1 𝑃 and 𝑃 have highest and lowest priorities, respectively. 2 1 A process 𝑃 is scheduled to a processor 𝑀 , if the processor is free and no other 𝑖 π‘˜ process 𝑃 is waiting with higher priority. At any given point of time, a process can...

Q22medium

[GATE CS 2025 Set-1 Q39] Consider two relations describing π‘‘π‘’π‘Žπ‘šπ‘  and π‘π‘™π‘Žπ‘¦π‘’π‘Ÿπ‘  in a sports league: β€’ π‘‘π‘’π‘Žπ‘šπ‘ (𝑑𝑖𝑑,π‘‘π‘›π‘Žπ‘šπ‘’): 𝑑𝑖𝑑, π‘‘π‘›π‘Žπ‘še are team-id and team-name, respectively β€’ π‘π‘™π‘Žπ‘¦π‘’π‘Ÿπ‘ (𝑝𝑖𝑑,π‘π‘›π‘Žπ‘šπ‘’,𝑑𝑖𝑑): 𝑝𝑖𝑑, π‘π‘›π‘Žπ‘šπ‘’, and 𝑑𝑖𝑑 denote player-id, player- name and the team-id of the player, respectively Which ONE of the following tuple relational calculus queries returns the name of the players who play for the team having π‘‘π‘›π‘Žπ‘šπ‘’ as ′𝑀𝐼′?

Q23medium

[GATE CS 2025 Set-1 Q40] A packet with the destination IP address 145.36.109.70 arrives at a router whose routing table is shown. Which interface will the packet be forwarded to?

Q24medium

[GATE CS 2025 Set-1 Q41] 1 1 𝐴 = [ ] 1 βˆ’1 W hat are the eigenvalues of the matrix 𝐴13 ?

Q25medium

[GATE CS 2025 Set-1 Q42] Consider the following four variable Boolean function in sum-of-product form 𝐹(𝑏 ,𝑏 ,𝑏 ,𝑏 ) = βˆ‘(0,2,4,8,10,11,12). 3 2 1 0 where the value of the function is computed by considering 𝑏 𝑏 𝑏 𝑏 as a 4-bit 3 2 1 0 binary number, where 𝑏 denotes the most significant bit and 𝑏 denotes the least 3 0 significant bit. Note that there are no don’t care terms. Which ONE of the following options is the CORRECT minimized Boolean expression for 𝐹?

Q26medium

[GATE CS 2025 Set-1 Q43] Let 𝐺(𝑉,𝐸) be an undirected and unweighted graph with 100 vertices. Let 𝑑(𝑒,𝑣) denote the number of edges in a shortest path between vertices 𝑒 and 𝑣 in 𝑉. Let the maximum value of 𝑑(𝑒,𝑣), 𝑒,𝑣 ∈ 𝑉 such that 𝑒 β‰  𝑣, be 30. Let 𝑇 be any breadth- first-search tree of 𝐺. Which ONE of the given options is CORRECT for every such graph 𝐺?

Q27medium

[GATE CS 2025 Set-1 Q44] Consider the following two languages over the alphabet {π‘Ž,𝑏}: 𝐿 = { 𝛼𝛽𝛼 | 𝛼 ∈ {π‘Ž,𝑏}+ AND 𝛽 ∈ {π‘Ž,𝑏}+ } 1 𝐿 = { 𝛼𝛽𝛼 | 𝛼 ∈ {π‘Ž}+ AND 𝛽 ∈ {π‘Ž,𝑏}+ } 2 Which ONE of the following statements is CORRECT?

Q28medium

[GATE CS 2025 Set-1 Q45] Consider the following two languages over the alphabet {π‘Ž,𝑏,𝑐}, where π‘š and 𝑛 are natural numbers. 𝐿 = {π‘Žπ‘šπ‘π‘šπ‘π‘š+𝑛 | π‘š,𝑛 β‰₯ 1} 1 𝐿 = {π‘Žπ‘šπ‘π‘›π‘π‘š+𝑛 | π‘š,𝑛 β‰₯ 1} 2 Which ONE of the following statements is CORRECT?

Q29medium

[GATE CS 2025 Set-1 Q46] Which of the following statement(s) is/are TRUE while computing First and Follow during top down parsing by a compiler?

Q30medium

[GATE CS 2025 Set-1 Q47] Consider a relational schema π‘‘π‘’π‘Žπ‘š(π‘›π‘Žπ‘šπ‘’,𝑐𝑖𝑑𝑦,π‘œπ‘€π‘›π‘’π‘Ÿ), with functional dependencies {π‘›π‘Žπ‘šπ‘’ β†’ 𝑐𝑖𝑑𝑦, π‘›π‘Žπ‘šπ‘’ β†’ π‘œπ‘€π‘›π‘’π‘Ÿ}. The relation π‘‘π‘’π‘Žπ‘š is decomposed into two relations, 𝑑1(π‘›π‘Žπ‘šπ‘’,𝑐𝑖𝑑𝑦) and 𝑑2(π‘›π‘Žπ‘šπ‘’,π‘œπ‘€π‘›π‘’π‘Ÿ). Which of the following statement(s) is/are TRUE?

...

Quiz Pages

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