CS and IT GATE 2025 SET-2 Questions with Answer

Ques 40 Engineering Mathematics


A quadratic polynomial (x-α)(x-β) over complex numbers is said to be square invariant if (x-α)(x-β)=(x-α2)(x-β2). Suppose from the set of all square invariant quadratic polynomials we choose one at random.
The probability that the roots of the chosen polynomial are equal is ______ (rounded off to one decimal place)


Ques 41 Engineering Mathematics


The unit interval (0,1) is divided at a point chosen uniformly distributed over (0,1) in IR into two disjoint subintervals.
The expected length of the subinterval that contains 0.4 is ______ (rounded off to two decimal places)


Ques 42 General Aptitude


Despite his initial hesitation, Rehman's ______ to contribute to the success of the project never wavered.
Select the most appropriate option to complete the above sentence.

A

ambivalence

B

satisfaction

C

resolve

D

revolve


The most appropriate option is:
c) resolve
So the complete sentence is: "Despite his initial hesitation, Rehman's resolve to contribute to the success of the project never wavered."
Explanation:
Resolve means determination or firmness of purpose, which fits the context of unwavering intent despite hesitation.
Ambivalence means having mixed feelings, which does not fit with "never wavered."
Satisfaction is about contentment, not determination.
Revolve is a verb and does not make sense in this context.

Ques 43 General Aptitude


Bird: Nest :: Bee: ______
Select the correct option to complete the analogy.

A

Kennel

B

Hammock

C

Hive

D

Lair


A bird lives in a nest. This relationship is between an animal and its home. To solve the analogy, we need to find the place where a bee lives. A kennel is the home of a dog, so it is not correct. A hammock is used by humans for resting, so it is also incorrect. A lair is the home of a wild animal like a lion or tiger, which is not a bee’s home. The correct answer is hive, because bees live in hives, just like birds live in nests.

✅ Final Answer: Hive

Birds live in nests, and bees live in hives. This shows a similar relationship between a creature and its home.

Ques 44 General Aptitude


If Pex=Qe-x for all real values of x, which one of the following statements is true?

A

P=Q=0

B

P=Q=1

C

P=1; Q=-1

D

P/Q=0


We are given the equation P·ex = Q·e-x for all real x.

Multiplying both sides by ex gives P·e2x = Q.

Since this must hold true for all real values of x, and e2x changes with x, the only way the left-hand side remains a constant equal to Q is if P = 0. Substituting P = 0 into the equation gives Q = 0.

✅ Final Answer: Option (a) — P = Q = 0.

Reason: The equation can only hold for all x if both P and Q are zero, since e2x is not constant.

Ques 45 General Aptitude


The paper as shown in the figure is folded to make a cube where each square corresponds to a particular face of the cube. Which one of the following options correctly represents the cube?
Note: The figures shown are representative.

A

B

C

D


Ques 46 General Aptitude


Let p1 and p2 denote two arbitrary prime numbers. Which one of the following statements is correct for all values of p1 and p2?

A

p1+p2 is not a prime number.

B

p1p2 is not a prime number.

C

p1+p2+1 is a prime number.

D

p1p2+1 is a prime number.


Let p₁ and p₂ be two arbitrary prime numbers.

Option (a) states that p₁ + p₂ is not a prime number — this is false because, for example, 2 + 5 = 7, which is prime.

Option (b) states that p₁ × p₂ is not a prime number — this is always true, because the product of two primes is always composite (it has factors other than 1 and itself).

Option (c) states that p₁ + p₂ + 1 is a prime number — this is not always true as there is no guarantee.

Option (d) states that p₁ × p₂ + 1 is a prime number — also not always true.

✅ Final Answer: Option (b) — p₁ × p₂ is not a prime number.

Reason: The product of two prime numbers is always composite, because it has at least the two prime factors p₁ and p₂.

Ques 47 General Aptitude


Based only on the conversation below, identify the logically correct inference:
""Even if I had known that you were in the hospital, I would not have gone there to see you"", Ramya told Josephine.

A

Ramya knew that Josephine was in the hospital.

B

Ramya did not know that Josephine was in the hospital.

C

Ramya and Josephine were once close friends; but now, they are not.

D

Josephine was in the hospital due to an injury to her leg.


Ramya said to Josephine: "Even if I had known that you were in the hospital, I would not have gone there to see you."

The phrase "Even if I had known..." is a past unreal conditional, which means that in reality she did not know about it. The rest of the sentence simply states that even with the knowledge, she still would not have gone.

Therefore, the only logically correct inference is that Ramya did not know that Josephine was in the hospital.

✅ Final Answer: Option (b) — Ramya did not know that Josephine was in the hospital.

Reason: The statement structure implies the condition was not true in reality, so the knowledge about Josephine’s hospitalization was absent.

Ques 48 General Aptitude


If IMAGE and FIELD are coded as FHBNJ and EMFJG respectively then, which one among the given options is the most appropriate code for BEACH ?

A

CEADP

B

IDBFC

C

JGIBC

D

IBCEC


In the given code examples (IMAGE → FHBNJ and FIELD → EMFJG), the letter shifts vary in each position, with a mix of positive and negative changes rather than a single fixed shift. This means that each position in the word may have its own coding rule.

To find the code for BEACH, we test each option letter by letter to see which matches the shifting style of the examples.

Testing option (d) IBCEC:
B(2) → I(9) = +7 shift
E(5) → B(2) = -3 shift
A(1) → C(3) = +2 shift
C(3) → E(5) = +2 shift
H(8) → C(3) = -5 shift

This pattern of mixed positive and negative shifts (+7, -3, +2, +2, -5) is consistent with the variations seen in the given coded words, especially the ending shift of -5 which appears in the examples.

✅ Final Answer: Option (d) — IBCEC.

Reason: Among all choices, IBCEC matches the irregular positional shift pattern style used in the provided code examples.

Ques 49 General Aptitude


Which one of the following options is correct for the given data in the table?

Iteration (i)0123
Input (I)20-41015
Output (X)20162641
Output (Y)20-80-800-12000

A

X(i)=X(i-1)+I(i); Y(i)=Y(i-1)I(i); i>0

B

X(i)=X(i-1)I(i); Y(i)=Y(i-1)+I(i); i>0

C

X(i)=X(i-1)I(i); Y(i)=Y(i-1)I(i); i>0

D

X(i)=X(i-1)+I(i); Y(i)=Y(i-1)I(i-1); i>0


Ques 50 General Aptitude


In the given figure, PQRS is a square of side 2 cm and PLMN is a rectangle. The corner L of the rectangle is on the side QR. Side MN of the rectangle passes through the corner S of the square.
What is the area (in cm2) of the rectangle PLMN?
Note: The figure shown is representative.

A

2√2

B

2

C

8

D

4


Ques 51 General Aptitude


The diagram below shows a river system consisting of 7 segments, marked P, Q, R, S, T, U, and V. It splits the land into 5 zones, marked Z1, Z2, Z3, Z4, and Z5. We need to connect these zones using the least number of bridges. Out of the following options, which one is correct?
Note: The figure shown is representative.

A

Bridges on P, Q, and T

B

Bridges on P, Q, S, and T

C

Bridges on Q, R, T, and V

D

Bridges on P, Q, S, U, and V


Ques 52 Operating Systems


Processes P1, P2, P3, P4 arrive in that order at times 0, 1, 2, and 8 milliseconds respectively, and have execution times of 10, 13, 6, and 9 milliseconds respectively. Shortest Remaining Time First (SRTF) algorithm is used as the CPU scheduling policy. Ignore context switching times.
Which ONE of the following correctly gives the average turnaround time of the four processes in milliseconds?

A

22

B

15

C

37

D

19


Average Turnaround Time: 19 milliseconds

Using Shortest Remaining Time First (SRTF) scheduling for processes P1, P2, P3, and P4 with arrival times 0, 1, 2, and 8 ms and burst times 10, 13, 6, and 9 ms respectively.

Gantt Chart:

P1 (0-1)
P3 (1-2)
P3 (2-8)
P1 (8-13)
P4 (13-22)
P2 (22-35)
0128132235

Unique Visitor Count

Total Unique Visitors

Loading......