You can boost your Computer Science Engineering (CSE) 2026 exam preparation with this GATE Mock Test Computer Science Engineering (CSE) - 2 (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.
Direction: Study the bar graph carefully to answer the following question.
The bar graph represents the profit earned by two individuals A and B over 5 years.

If the profit made by A is 50% more and that of B is 100% more in 2018, as compare to 2017, then what is the total profit made by A and B together in 2018?
Detailed Solution: Question 1
Direction: In the following question, one part of the sentence may have an error. Find out which part of the sentence has an error. If the sentence is free from error, select the 'No error' option.
Rarely I have seen (A)/such a scene of (B)/ violence on the streets. (C)/ No error (D)
Detailed Solution: Question 2
In the figure given below, ABC is a right-angled triangle where ∠A=90∘,AB=p cm and AC=q cm. On the three sides as diameters semicircles are drawn as shown in the figure. The area of the shaded portion, in square cm, is:

Detailed Solution: Question 3
Direction: Study the following pie chart carefully & answer the question given below it.
The pie chart given below shows the break-up of the cost of construction of a house (in degrees). Assuming that the total cost of construction is Rs. 60000, answer the question given below.

The amount spent on labour exceeds the amount spent on steel by:
Detailed Solution: Question 4
Direction: Choose the option that is the active form of the sentence.
The politician’s speech was loudly cheered.
Detailed Solution: Question 5
Which of the following is the antonym of the word SILENCE?
Detailed Solution: Question 6
Which of the following is the synonym of the word ADMONISH?
Detailed Solution: Question 7
Which of the following statements cannot be inferred from the passage?
Not stagnating moment to moment is called achievement. Inward humility is achievement, outward courtesy is virtue. Establishing myriad truth in your nature is achievement; the mind being essentially detached from thoughts is virtue. Not departing from one's essential nature is achievement; acting adaptively without being affected is virtue. Continuity moment to moment is achievement; balance and directness of mental activity are virtue. Refining your own nature is achievement. Refining your own person is virtue.
Detailed Solution: Question 8
Detailed Solution: Question 9
What will be the sum of the factors of 3129?
Detailed Solution: Question 10
Detailed Solution: Question 11
What is the value of following recurrence?
T(n) = 1 if n = 1
T(n) = T(n/2) + n else
Detailed Solution: Question 12
A system has n = 13 resources R0,…,R12, and k processes P0,…Pk−1. The implementation of the resource request logic of each process Pi is as follows:
if (i%2 == 0)
{
if (i < n) request Ri
if (i+2 < n) request Ri+2
}
else
{
if(i < n) request Rn - i
if (i+2 < n) request Rn-i-2
}
Minimum number of the process so deadlock is possible _________.
Detailed Solution: Question 13
Detailed Solution: Question 14
A circuit outputs a digit in the form of 4 bits. 0 is represented by 0000, 1 by 0001,…, 9 by a combinational circuit is to be designed which takes these 4 bits as input and outputs 1 if the digit ≥ 5, and 0 otherwise. If only AND, OR and NOT gates may be used, what is the minimum number of gates required?
Detailed Solution: Question 15
The circuit shown below acts as:

Detailed Solution: Question 16
Consider the equation (213)6 = (a3)b with a & b values to be unknown. Then what are the number of possible solutions for the values a & b?
Detailed Solution: Question 17
Consider a three-level page table to translate a 39-bit virtual address to a physical address as shown below:
The page size is 4 KB(1 KB = 210 bytes ) and page table entry size at every level is 8 bytes. A process P is currently using 2 GB(1 GB = 230 bytes) virtual memory which is mapped to 2 GB of physical memory. The minimum amount of memory required for the page table of P across all levels is _____________ KB.
Detailed Solution: Question 18
In X =
, how many one-address instructions are required to evaluate it?
Detailed Solution: Question 19
Which of the following statements is/are correct about the 3NF and BCNF normal forms?
Detailed Solution: Question 20
Consider the following statements:
S1: The relation ≤ is reflexive on any set of real numbers.
S2: If R1 and R2 are reflexive relations, R1∪R2 is also reflexive.
S3: Every superset of a symmetric relation is symmetric.
S4: Smallest relation which is irreflexive contains 1 element.
Which of the above statements are false?
Detailed Solution: Question 21
A micro-instruction format has micro-ops field which is divided into three subfields F1, F2, F3 each having seven distinct micro-operations, condition field CD for four status bits, branch field BR having four options used in conjunction with address field ADF. The address space is of 128 memory locations. The size of micro-instruction is:
Detailed Solution: Question 22
Consider a network having 6 routers P to U connected with links having weights as shown below:

All routers are using distance vector routing algorithm to update their routing table. Then what will be the shortest distance between router P and router U?
Detailed Solution: Question 23
Which among the following is the only difference between Turing Machine and Finite Automaton?
Detailed Solution: Question 24
The lexical analysis for a modern computer language such as Java needs the power of which one of the following machine models in a necessary and sufficient sense?
Detailed Solution: Question 25
Which of the following is/are false about deterministic context free language (DCFL)?
Detailed Solution: Question 26
Consider the following memory values and a single address machine with an accumulator:

Which of the following instructions will load 230 into the accumulator?
Detailed Solution: Question 27
The least number of computers required to connect 10 computers to 5 routers to guarantee 5 computers can directly access 5 routers is _________.
Detailed Solution: Question 28
A 4:1 multiplexer is to be used for generating the output carry of a full adder. A and B are the bits to be added while Cin is the input carry and Cout is the output carry. A and B are to be used as the select bits with A being the more significant select bit.

Detailed Solution: Question 29
Which one of the following array represents a binary max-heap?
Detailed Solution: Question 30