You can boost your Computer Science Engineering (CSE) 2026 exam preparation with this Sample GATE Mock Test - Computer Science And IT (CS/IT) (available with detailed solutions).. This mock test has been designed with the analysis of important topics, recent trends of the exam, and previous year questions of the last 3-years. All the questions have been designed to mirror the official pattern of Computer Science Engineering (CSE) 2026 exam, helping you build speed, accuracy as per the actual exam.
Mock Test Highlights:
Sign up on EduRev for free and get access to these mock tests, get your All India Rank, and identify your weak areas to improve your marks & rank in the actual exam.
I _____ made arrangements had I _____informed earlier.
Detailed Solution: Question 1
A rectangular room having dimensions 3.74 m x 5.78 m is required to be tiled using minimum number of identical square tiles. The number of such tiles and area of each tile (in cm2) is given by;
Detailed Solution: Question 2
In the following sentence, certain parts are underlined and marked P, Q, and R. One of the parts may contain an error or may not be acceptable in standard written communication. Select the part containing an error. Choose D if there is no error.
The student corrected all the errors (P) that the instructor marked (Q) on the answer book (R).Detailed Solution: Question 3
4 taps marked as T1, T2, T3 and T4 can fill a tank in 8 hours,12 hours, 16 hours and 24hours respectively. We have to fill up 2 identical tanks with 2 out of these 4 taps connected to tank 1 and remaining two taps connected to tank 2 so that the ratio of time taken to fill tank 1 and tank 2 is 2:3. so identify one of the pair of taps?
Detailed Solution: Question 4
Given below is information related to installed capacity and generation of electricity in India for a specific year:

The closet integral value of capacity utilization for the entire country in the year under consideration is ____%.
[Capacity utilization is the ratio of Electricity generated per hour and installed capacity. Assume that all plants work 365 days a year for 24 hours per day].
Detailed Solution: Question 5
12 years ago, age of a father was 4 times of that of his son. 6 years later age of father would be twice of that of son then what is present age of son?
Detailed Solution: Question 6
A water tank of capacity 6000 liters is connected to 2 taps ‘A’ and ‘B’. Water flows from these 2 taps at 90 liters per minute and 60 liters per minute respectively. To fill this empty tank, first tap ‘A’ is opened for some time and once it is closed, tap ‘B’ is opened till the tank is full taking a total of 90 minutes. What is the difference in the time (in minutes) for which the taps are opened to fill the tank?
Detailed Solution: Question 7
Two trains from Delhi to Ranchi and from Ranchi to Delhi started at the same time. Due to fog in winter season, after crossing each other, they took 16 hr and 9 hr respectively to complete their journey. If the speed of train going to Ranchi was 45 km/h, what was the speed of train going to Delhi?
Detailed Solution: Question 8
Chinnaswamy is driving to pick up his son from school on a Saturday which is a half day. On his way to school, he crossed a church which is 1/5th of the way to school at 9:50 hours and exactly 10 minutes later, he went past a temple which is 1/3rd of the way to school. The time after 10:00 hours at which he reaches his son’s school is ____ minutes.
Detailed Solution: Question 9
A group of 3000 students, which includes 1750 girls, in a school are engaged in exactly one of the 5 activities as per details given below in the table. What is the difference in the number of boys opting for craft and dancing when compared with drawing and swimming?

Detailed Solution: Question 10
Which of the following is not the disc scheduling algorithm.
Detailed Solution: Question 11
For slow and inefficient I/O peripherals, the interrupt mechanism to be designed must be fast enough. The best possible choice for interrupt handling would be;
Detailed Solution: Question 12
What is the time complexity to construct binary search tree when inorder and postorder traversal of tree is given?
Detailed Solution: Question 13
The different bus arbitration techniques are daisy chaining, polling and independent requesting. The bus grant and bus request lines are only assumed as control lines. For n requesting devices, the number of control lines for daisy chaining, polling and independent requesting are respectively;
Detailed Solution: Question 14
Consider a system has three processes and three resources are available of same type. If each process needs maximum two resources, which of the following is correct?
Detailed Solution: Question 15
Assume that source S and destination D are connected through two routers. Also there exists a gateway between these two routers. Let 'x' be the number of times a packet visits transport layer, 'y' be the number of times a packet visits network layer and 'z' be the number of times a packet visits data link layer during transmission from source to destination. Then calculate x+2y+3z = __________

Detailed Solution: Question 16
A student want to prove a relation between the “gradeup” and “gaterank”. If he prove that gradeup is reducible to “gaterank” and “gaterank” is decidable then which of the following is true? (Assume gradeup & gaterank are two problems)
Detailed Solution: Question 17
Which of the following is functionality complete set?
Detailed Solution: Question 18
Consider the following dependencies in a database
D → A
A → E
N → R
R → N
C → I
(R, C) → G
The relation (R, N, D, A) is
Detailed Solution: Question 19
If L1 is DCFL and L2 is CFL , then which statement is true:
Detailed Solution: Question 20
Consider the matrix

Find the eigenvalue of A for which the normalized eigen vector is given by;

Detailed Solution: Question 21
Consider the three problems :
Detailed Solution: Question 22
For the matrix
ONE of the normalized eigen vector is given as;
Detailed Solution: Question 23
IPv4 addressing system already gives information about network and host. Along with the Internet Protocol address of host, subnet mask is also needed by the routers inorder to direct the packet to intended network. Host doesn’t redirect packets, then Why does host need subnet mask?
Detailed Solution: Question 24
Consider the following BST.

Its pre-order and post-order are inserted in two separate arrays(arrays having same starting index) of same size in traversal sequence. How many elements will have same index numbers in the both the arrays?
Detailed Solution: Question 25
Consider two relations R1 and R2 given below:

How many tuples are there in relation (Natural join) R1 R2?
Detailed Solution: Question 26
In the spanning tree shown, what will be the minimum cost?

Detailed Solution: Question 27
Identify the true statements
I. Maintaining connection semantics between two directly connected nodes is done by network layer.
II. Recovering lost packet between two directly connected nodes is done by transport layer.
III. Recovering lost packets between two nodes separated by multiple hops is done by data link control.
IV. Arbitration is done between multiple nodes attached to a single medium to resolve conflicts.
Detailed Solution: Question 28
Find the output of the following program.
int main()
{
int i = _1_abc(10);
printf("%d\n", --i);
}
int _1_abc(int i)
{
return(i++);
}
Detailed Solution: Question 29
Consider the following grammar -
S -> ABa/BAc
A -> d/e/epsilon
B -> f/epsilon
Which of the following is true regarding the FIRST() & FOLLOW() function of LL(1) parser?
Detailed Solution: Question 30