You can boost your Computer Science Engineering (CSE) 2026 exam preparation with this GATE Mock Test Computer Science Engineering (CSE) - 7 (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.
How many 5 letter codes can be formed using the first 6 letters of the English alphabet if no letter can be repeated?
Detailed Solution: Question 1
Direction: Choose the correct synonym (word with similar meaning) of the head word form the four options given and mark the right option.
Perpetual
Detailed Solution: Question 2
If the length of a certain rectangle is decreased by 4 cm and the width is increased by 3 cm, a square with the same area as the original rectangle would result. Find the perimeter of the original rectangle:
Detailed Solution: Question 3
Direction: In the following question, there is a statement first, and two arguments, I and II, are given below it. You have to consider which of the argument/arguments are influential in the statement by considering the given arguments. Choose the correct answer from the given alternatives.
Statement: Should education be made compulsory for all children up to class XII?
Argument I: No, this will affect the industries employing school dropouts.
Argument II: Yes, school education forms the basis for higher education and a better future.
Detailed Solution: Question 4
Direction: In the following question, out of the four alternatives, choose the alternative which best expresses the meaning of Idiom/Phrase.
I don't know him from Adam
Detailed Solution: Question 5
Directions: Choose the most appropriate word(s) from the options given below to complete the following sentence.
I contemplated ________ Singapore for my vacation, but decided against it.
Detailed Solution: Question 6
The number lock of a suitcase has 4 wheels, each labelled with ten digits, i.e. from 0 to 9. The lock opens with a sequence of four digits with no repeats. What is the probability of a person getting the sequence to open the suitcase?
Detailed Solution: Question 7
Directions: The table lists the size of building lots in the Orange Grove subdivision and the people who are planning to build on those lots. For each lot, installation of utilities costs $12,516. The city charges impact fees of $3,879 per lot. There are also development fees of 16.15 cents per square foot of land.

What approximate percentage is the area of the smallest lot listed, as compared to the area of the largest lot?
Detailed Solution: Question 8
A reservoir will be filled in 12 hours if two pipes function simultaneously. The second pipe fills the reservoir 10 hours faster than the first. How many hours will the second pipe take to fill the reservoir?
Detailed Solution: Question 9
If prices are reduced by 20% and sales are increased by 15%, what is the net effect on gross receipts?
Detailed Solution: Question 10
If A and B are two events such that P(A) = 0.6,P(B) = 0.5 and P(A∩B) = 0.4, then consider the following statements:

Which of the statements is/are correct
Detailed Solution: Question 11
Complete the following program to find the maximum of given array:
Maximum(A, n)
{
Max = A[0];
for (i = 1 to n −1)
{
if (1)
then {2}
}
return Max;
}
Choose the correct expression for 1 and 2:
Detailed Solution: Question 12
Consider the following frequency of characters appear in a document:

What is the total number of bits needed to send?
Detailed Solution: Question 13
Consider the following way of retrieving the data from the database:
Which of the following has same power regarding queries?
Detailed Solution: Question 14
Assume ∑ = {a} and ε is the empty string:

What is the complement of the language accepted by the NFA shown above?
Detailed Solution: Question 15
Let P(E) denote the probability of the event E. Given, P(A) = 1 and P(B) = 1/2. The value of P(B|A) is
Detailed Solution: Question 16
Consider three processes (process id 0,1,2 respectively) with compute time bursts 2,4 and 8 time units. All processes arrive at time zero. Consider the longest remaining time first (LRTF) scheduling algorithm. In LRTF ties are broken by giving priority to the process with the lowest process id. The average turn around time is:
Detailed Solution: Question 17
What is output of the given code?
#include <stdio.h>
union abc {
char a,b,c,d,e,f,g,h;
int i;
}abc;
main()
{
printf( "%d", sizeof( abc ));
}
Detailed Solution: Question 18
What is postfix notation also known as?
Detailed Solution: Question 19
Which of the following statement is wrong?
Detailed Solution: Question 20
Which of the following statement is false?
Detailed Solution: Question 21
How many separate address and data lines are needed for a memory of 8 K × 16 ?
Detailed Solution: Question 22
An AB Flip-flop is designed using JK FF which of the following can be Boolean function for the input of JK Flip-Flop, consider the truth table of AB Flip-flop as given below:

Detailed Solution: Question 23
Consider the following statements about a TM that accepts a language L:
S1: If the string in the language L, then TM halts in final state.
S2: If the string not in the language L, then TM may halt in non-final state or never halt.
If the string given as an input to the TM, then which of the above statements are correct?
Detailed Solution: Question 24
Which of the following CFG generates a language where the language is CFL but not regular?
Detailed Solution: Question 25
Consider the following program:
int x = 0;
int y = 0;
par begin
begin
x = 1;
y = y + x;
end
begin
y = 4;
x = x + 5;
end
par end
What will be the final values of x and y after completion of the above concurrent program.
1. x = 1,y = 5
2. x = 6,y = 10
3. x = 6,y = 5
4. x = 1, y = 4
Detailed Solution: Question 26
Consider a memory unit of size 200K × 32, where the first component represents the number of words and that the second component represents the number of bits per word. What will be the number of address lines and input-output data lines?
Detailed Solution: Question 27
If Rank (A) = 2 and Rank (B) = 3, then Rank (AB) is __________.
Detailed Solution: Question 28
If (2.3)base 4 + (1.2)base 4 = (y)base 4, what is the value of y?
Detailed Solution: Question 29
What does the following fragment of C program print?
char c [ ] = "GATE2022";
char * p = c;
printf("%s", p + p [3] - p [1]);
Detailed Solution: Question 30