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-2 Questions with Answer
Ques 27 GATE 2021 SET-2
If θ is the angle, in degrees, between the longest diagonal of the cube and any one of the edges of the cube, then, cos θ =
Ques 28 GATE 2021 SET-2
If (x-1/2)2 - (x-3/2)2 = x + 2, then the value of x is:
Ques 29 GATE 2021 SET-2
The number of students in three classes is in the ratio 3:13:6. If 18 students are added to each class, the ratio changes to 15:35:21. The total number of students in all the three classes in the beginning was:
Ques 30 GATE 2021 SET-2

Ques 31 GATE 2021 SET-2
Consider the following sets, where n ≥ 2:
S1: Set of all n x n matrices with entries from the set {a,b,c}
S2: Set of all functions from the set {0,1,2,...,n2-1} to the set {0,1,2}
Which of the following choice(s) is/are correct?
Ques 32 GATE 2021 SET-2
For a given biased coin, the probability that the outcome of a toss is a head is 0.4. This coin is tossed 1,000 times. Let X denote the random variable whose value is the number of times that head appeared in these 1,000 tosses. The standard deviation of X (rounded to 2 decimal places) is _______.
Ques 33 GATE 2021 SET-2
Suppose that P is a 4 x 5 matrix such that every solution of the equation Px = 0 is a scalar multiple of [2 5 4 3 1]T. The rank of P is _______.
Ques 34 GATE 2021 SET-2
Suppose that f: R → R is a continuous function on the interval [-3,3] and a differentiable function in the interval (-3,3) such that for every x in the interval, f'(x) ≤ 2. If f(-3) = 7 then f(3) is at most _______.
Ques 35 GATE 2021 SET-2
In an examination, a student can choose the order in which two questions (QuesA and QuesB) must be attempted.
If the first question is answered wrong, the student gets zero marks. If the first question is answered correctly and the second question is not answered correctly, the student gets the marks only for the first question. If both the questions are answered correctly, the student gets the sum of the marks of the two questions. The following table shows the probability of correctly answering a question and the marks of the question respectively.

Ques 36 GATE 2021 SET-2
Let S be a set consisting of 10 elements. The number of tuples of the form (A, B) such that A and B are subsets of S, and A ⊆ B is _______.
Ques 37 GATE 2021 SET-2
Which of the following statement(s) is/are correct in the context of CPU scheduling?
Ques 38 GATE 2021 SET-2
Consider the following multi-threaded code segment (in a mix of C and pseudo-code), invoked by two processes P1 and P2, and each of the processes spawns two threads T1 and T2:
int x = 0; // global
Lock L1; // global
main() {
create a thread to execute foo(); // Thread T1
create a thread to execute foo(); // Thread T2
wait for the two threads to finish execution;
print (x); }
foo() {
int y = 0;
Acquire L1;
x = x + 1;
y = y + 1;
Release L1;
print (y); }
Which of the following statement(s) is/are correct?
Ques 39 GATE 2021 SET-2
Consider a computer system with multiple shared resource types, with one instance per resource type. Each instance can be owned by only one process at a time. Owning and freeing of resources are done by holding a global lock (L). The following scheme is used to own a resource instance:

Total Unique Visitors