CS/IT Gate Yearwise
CS/IT Gate 2025 (Set 2)
CS/IT Gate 2024 (Set 1)
CS/IT Gate 2024 (Set 2)
CS/IT Gate 2023
CS/IT Gate 2022
CS/IT Gate 2021 (Set 1)
CS/IT Gate 2021 (Set 2)
CS/IT Gate 2020
CS/IT Gate 2019
CS/IT Gate 2018
CS/IT Gate 2017 (Set 1)
CS/IT Gate 2017 (Set 2)
CS/IT Gate 2016 (Set 1)
CS/IT Gate 2016 (Set 2)
CS/IT Gate 2015 (Set 1)
CS/IT Gate 2015 (Set 2)
CS/IT Gate 2015 (Set 3)
CS/IT Gate 2014 (Set 1)
CS/IT Gate 2014 (Set 2)
CS/IT Gate 2014 (Set 3)
CS and IT GATE 2021 Set-1 Questions with Answer
Ques 27 Mathematics
There are five bags each containing identical sets of ten distinct chocolates. One chocolate is picked from each bag. The probability that at least two chocolates are identical is __________ .
Ques 28 Operating Systems
Three processes arrive at time zero with CPU bursts of 16, 20 and 10 milliseconds. If the scheduler has prior knowledge about the length of the CPU bursts, the minimum achievable average waiting time for these three processes in a non-preemptive scheduler (rounded to nearest integer) is _________ milliseconds.
12 is the correct answer.
Ques 29 Operating Systems
In the context of operating systems, which of the following statements is/are correct with respect to paging?
Ques 30 Programming and Data Structures
Consider the following ANSI C program.

Ques 31 Programming and Data Structures
Consider the following statements.
S1: The sequence of procedure calls corresponds to a preorder traversal of the activation tree.
S2: The sequence of procedure returns corresponds to a postorder traversal of the activation tree.
Which one of the following options is correct?
Ques 32 Programming and Data Structures
A binary search tree T contains n distinct elements. What is the time complexity of picking an element in T that is smaller than the maximum element in T?
Ques 33 Programming and Data Structures
Consider the following array.

Ques 34 Programming and Data Structures
A binary search tree T contains n distinct elements.
What is the time complexity of picking an element in T that is smaller than the maximum element in T?
Ques 35 Programming and Data Structures
Consider the following sequence of operations on an empty stack.
push(54); push(52); pop(); push(55); push(62); s = pop();
Consider the following sequence of operations on an empty queue.
enqueue(21); enqueue(24); dequeue(); enqueue(28); enqueue(32); q = dequeue();
The value of s + q is
86 is the correct answer.
Ques 36 Quantitative Aptitude
A polygon is convex if, for every pair of points, P and Q belonging to the polygon, the line segment PQ lies completely inside or on the polygon.
Which one of the following is NOT a convex polygon?
Ques 37 Quantitative Aptitude

The paper, after being punched in the final folded state as shown and unfolded in the reverse order of folding, will look like
Ques 38 Quantitative Aptitude

The ratio of cost of item P to cost of item Q is 3:4.
Discount is calculated as the difference between the marked price and the selling price.
The profit percentage is calculated as the ratio of the difference between selling price and cost, to the cost
(Profit % =((Selling price − cost)/cost) × 100).
The discount on item Q, as a percentage of its marked price, is
Ques 39 Theory of Computation
Consider the following grammar (that admits a series of declarations, followed by expressions) and the associated syntax directed translation (SDT) actions, given as pseudo-code:
P -> DE
D -> int ID {record that ID.lexeme is of type int}
D -> bool ID {record that ID.lexeme is of type bool}
E -> E1 + E2 {check that E1.type = E2.type = int; set E.type:= int}
E ->!E1 {check that E1.type = bool; set E.type:= bool}
E -> ID {set E.type:= int}
With respect to the above grammar, which one of the following choices is correct?

Total Unique Visitors