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