CS and IT Gate 2024 Set-2 Questions with Answer

Ques 53 GATE 2024 SET-2


Let p and q be the following propositions:
p: Fail grade can be given.
q: Student scores more than 50% marks.
Consider the statement: "Fail grade cannot be given when student scores more than 50% marks."
Which one of the following is the CORRECT representation of the above statement in propositional logic?

A

q→¬p

B

q→p

C

p→q

D

¬p→q


(a) is the correct answer.

To find the correct propositional logic representation, let us analyze the conditional structure of the statement:
Identify the Propositions:
    • p: Fail grade can be given.
    • ¬p: Fail grade cannot be given (the negation of p).
    • q: Student scores more than 50% marks.

Analyze the Phrase Structure:
The statement is written as: "Fail grade cannot be given when student scores more than 50% marks."
In logic, the word "when" introduces the sufficient condition (the premise or antecedent). The sentence can be rephrased into standard "If... then..." form without changing its meaning:
    "If a student scores more than 50% marks, then a fail grade cannot be given."

Map to Logical Operators:
    • Antecedent (If part): q
    • Consequent (Then part): ¬p
    • Conditional operator:

Combining these components gives the logical implication expression: q → ¬p.

Thus, the correct representation is option (a).

Ques 54 GATE 2024 SET-2


If →' denotes increasing order of intensity, then the meaning of the words [walk →jog→sprint] is analogous to [bothered →_______→daunted].
Which one of the given options is appropriate to fill the blank?

A

phased

B

phrased

C

fazed

D

fused


(c) is the correct answer.

The sequence walk → jog → sprint shows an increasing level of intensity, where each action is stronger or faster than the previous one.
In the same way, we need to find a word that shows increasing emotional intensity in the sequence:
bothered → _______ → daunted

Here is what each word means:

  • Bothered – slightly upset or disturbed.
  • Fazed – noticeably disturbed, shaken, or upset; stronger than "bothered."
  • Daunted – intimidated or overwhelmed; stronger than "fazed."

So the correct increasing order of emotional intensity is:
bothered → fazed → daunted
Therefore, the appropriate word to fill the blank is (c) fazed.

Ques 55 GATE 2024 SET-2


Two wizards try to create a spell using all the four elements, water, air, fire, and earth. For this, they decide to mix all these elements in all possible orders. They also decide to work independently. After trying all possible combination of elements, they conclude that the spell does not work. The number of trials does each wizard make before coming to this conclusion?

A

24

B

48

C

16

D

12


(a) is the correct answer.

Explanation:
To find the number of trials each wizard makes, we need to calculate the total number of unique ways to arrange the four elements.
1. Identify the Permutation Problem:
• There are 4 distinct elements available: {water, air, fire, earth}.
• The problem states that they mix all four elements in all possible orders.
• Since the order of mixing matters and all items are used without repetition, this is a standard permutation problem of $n$ distinct objects.

2. Calculate the Total Combinations ($n!$):
The number of unique ways to arrange $n$ distinct objects is given by $n$ factorial ($n!$):
• For 4 elements: 4! = 4 × 3 × 2 × 1 = 24.

3. Evaluate per Wizard:
• The question asks for the number of trials each wizard makes before coming to the conclusion.
• Since they work independently and both try all possible combinations, each wizard completes the full set of 24 unique arrangements.

4. Conclusion:
Each wizard makes exactly 24 trials, making option (a) the correct choice.

Ques 56 GATE 2024 SET-2


In an engineering college of 10,000 students, 1,500 like neither their core branches nor other branches. The number of students who like their core branches is 1/4th of the number of students who like other branches. The number of students who like both their core and other branches is 500. The number of students who like their core branches is

A

1,800

B

3,500

C

1,600

D

1,500


(a) is the correct answer.

Explanation:
Let us solve this problem using a Venn diagram approach.
1. Identify the Total Population Breakdown:
• Total number of students = 10,000
• Students who like neither branch = 1,500
• Therefore, the total number of students who like at least one branch (the union of both sets) is:
    10,000 - 1,500 = 8,500
2. Define the Variables:
• Let C be the total number of students who like their core branches.
• Let O be the total number of students who like other branches.
• The problem states that the number of students who like both branches is:
    C ∩ O = 500
3. Set up the Algebraic Equations:
• According to the problem, the number of students who like core branches is 1/4th of those who like other branches:
    C = O / 4 → O = 4C
• Using the standard set union formula:
    Total Union = C + O - (C ∩ O)
    8,500 = C + 4C - 500
4. Solve for C:
    8,500 + 500 = 5C
    9,000 = 5C
    C = 9,000 / 5 = 1,800

Ques 57 GATE 2024 SET-2


For positive non-zero real variables x and y, if ln((x+y)/2)=1/2[ln(x)+ln(y)], then , the value of x/y+y/x

A

1/2

B

1

C

2

D

4


(c) is the correct answer.

Explanation:
Let us simplify the given logarithmic equation step-by-step using standard logarithm rules.
1. Apply Logarithmic Properties:
The given equation is:
    ln((x + y) / 2) = 1/2 [ln(x) + ln(y)]

Using the log addition rule, ln(x) + ln(y) = ln(xy):
    ln((x + y) / 2) = 1/2 ln(xy)

Using the power rule, b · ln(a) = ln(ab):
    ln((x + y) / 2) = ln((xy)1/2)

2. Remove the Natural Logarithm from Both Sides:
    (x + y) / 2 = √(xy)
    x + y = 2√(xy)

3. Square Both Sides to Eliminate the Radical:
    (x + y)2 = (2√(xy))2
    x2 + 2xy + y2 = 4xy

Bring 4xy to the left side:
    x2 - 2xy + y2 = 0
    (x - y)2 = 0
    x - y = 0 → x = y

4. Evaluate the Target Expression:
Since x = y, we substitute y for x (or vice versa) in the expression x/y + y/x:
    x/y + y/x = y/y + y/y = 1 + 1 = 2

5. Conclusion:
The value of the expression is exactly 2, making option (c) the correct choice.

Ques 58 GATE 2024 SET-2


In the sequence 6, 9, 14, x, 30, 41, a possible value of x is

A

25

B

21

C

18

D

20


(b) is the correct answer.

Explanation:
Let us look at the differences between consecutive terms in the sequence to identify the underlying pattern:
• 1st term to 2nd term: 9 - 6 = 3
• 2nd term to 3rd term: 14 - 9 = 5

The difference increases by 2 each time, indicating a sequence of consecutive odd numbers (+3, +5, +7, +9, +11). Let's test this pattern to find the value of x:

• 3rd term to 4th term (x): 14 + 7 = 21

Ques 59 GATE 2024 SET-2


Sequence the following sentences in a coherent passage.
P: This fortuitous geological event generated a colossal amount of energy and heat that resulted in the rocks rising to an average height of 4 km across the contact zone.
Q: Thus, the geophysicists tend to think of the Himalayas as an active geological event rather than as a static geological feature.
R: The natural process of the cooling of this massive edifice absorbed large quantities of atmospheric carbon dioxide, altering the earth's atmosphere and making it better suited for life.
S: Many millennia ago, a breakaway chunk of Antarctic Plate collided with the massive Eurasian Plate.

A

QPSR

B

SQRP

C

RSPQ

D

SRQP


(d) is the correct answer.

To find the correct sequence, let us analyze the logical connections and structural transitions between the sentences:
Sentence S introduces the primary historical action—a breakaway chunk of the Antarctic Plate colliding with the Eurasian Plate. This serves as the natural starting point for the passage.
Sentence P opens with "This fortuitous geological event," which directly references the tectonic collision described in sentence S. It explains the immediate physical result of that collision (rocks rising to a height of 4 km). Therefore, P must follow S.
Sentence R talks about "the cooling of this massive edifice." This phrase directly connects back to the hot, rising mountains described in sentence P. It details the long-term environmental consequences of the cooling process. Therefore, R must follow P.
Sentence Q begins with the concluding transition word "Thus" and summarizes the modern scientific perspective derived from the preceding sequence of events (viewing the Himalayas as an active event rather than a static feature). This serves as the perfect concluding thought for the passage.

Combining these connections gives the logical flow: S → P → R → Q. This perfectly matches option (d).

Ques 60 GATE 2024 SET-2


A person sold two different items at the same price. He made 10% profit in one item, and 10% loss in the other item. In selling these two items, the person made a total of

A

1% profit

B

2% profit

C

1% loss

D

2% loss


(c) is the correct answer.

Let the Selling Price (SP) of each item = ₹100
For Item 1 (10% Profit):
SP = CP × (100 + Profit%) ÷ 100
100 = CP × 110 ÷ 100
CP = 100 × 100 ÷ 110
CP1 = ₹90.91
For Item 2 (10% Loss):
SP = CP × (100 − Loss%) ÷ 100
100 = CP × 90 ÷ 100
CP = 100 × 100 ÷ 90
CP2 = ₹111.11
Total SP = 100 + 100 = ₹200
Total CP = 90.91 + 111.11 = ₹202.02
Since Total CP > Total SP, there is a Loss
Net Loss = 202.02 − 200 = ₹2.02
Loss% = (Net Loss ÷ Total CP) × 100
Loss% = (2.02 ÷ 202.02) × 100
Loss% = 1%
Shortcut Formula:
Net Loss% = (Common%)2 ÷ 100
Net Loss% = (10)2 ÷ 100
Net Loss% = 100 ÷ 100
Net Loss% = 1%
The person made a net loss of 1%

Ques 61 GATE 2024 SET-2


The pie charts depict the shares of various power generation technologies in the total electricity generation of a country for the years 2007 and 2023. The renewable sources of electricity generation consist of Hydro, Solar and Wind. Assuming that the total electricity generated remains the same from 2007 to 2023, what is the percentage increase in the share of the renewable sources of electricity generation over this period?

A

25%

B

50%

C

77.5%

D

62.5%


(d) is the correct answer.

From the pie charts:
Year 2007:
Hydro = 30%, Solar = 5%, Wind = 5%
Total Renewable in 2007 = 30 + 5 + 5 = 40%
Year 2023:
Hydro = 35%, Solar = 20%, Wind = 10%
Total Renewable in 2023 = 35 + 20 + 10 = 65%
Increase in renewable share = 65 − 40 = 25%
Percentage increase = (25 ÷ 40) × 100 = 62.5%
The percentage increase in the share of renewable sources = 62.5% (Option D)

Ques 62 GATE 2024 SET-2


A cube is to be cut into 8 pieces of equal size and shape. Here, each cut should be straight and it should not stop till it reaches the other end of the cube.
The minimum number of such cuts required is

A

3

B

4

C

7

D

8


(a) is the correct answer.

To find the minimum number of cuts required to divide a cube into 8 pieces of equal size and shape, let us analyze the dimensions of the cube:
• A cube is a three-dimensional object with three distinct axes: length, width, and height.
• To ensure that all resulting pieces have the exact same size and shape, our cuts must be symmetrical along these axes.
• If we make 1 straight cut passing completely through the middle along the length, the cube is divided into 2 equal parts.
• Making a 2nd straight cut through the middle along the width divides those parts further, resulting in 4 equal pieces.
• Making a 3rd straight cut through the middle along the height cuts all existing pieces in half, resulting in exactly 8 equal pieces (each piece being a smaller, identical cube).

Since each cut must go completely from one side to the other, making 1 cut along each of the 3 coordinate planes gives us exactly 2 × 2 × 2 = 8 identical pieces. Thus, the minimum number of cuts required is 3, matching option (a).

Ques 63 GATE 2024 SET-2


In the 4×4 array shown below, each cell of the first three rows has either a cross (X) or a number. The number in a cell represents the count of the immediate neighboring cells (left, right, top, bottom, diagonals) NOT having a cross (X).

Given that the last row has no crosses (X), the sum of the four numbers to be filled in the last row is

A

11

B

10

C

12

D

9


(b) is the correct answer.

Ques 64 Gate 2024 Set-2


Consider a multi-threaded program with two threads T1 and T2. The threads share two semaphores: s1 (initialized to 1) and s2 (initialized to 0). The threads also share a global variable x (initialized to 0). The threads execute the code shown below.

Which of the following outcomes is/are possible when threads T1 and T2 execute concurrently?

A

T1 runs first and prints 1, T2 runs next and prints 2

B

T2 runs first and prints 1, T1 runs next and prints 2

C

T1 runs first and prints 1, T2 does not print anything (deadlock)

D

T2 runs first and prints 1, T1 does not print anything (deadlock)


(b,c) is the correct answer.

Explanation:
Let us analyze the possible execution sequences of threads T1 and T2 based on which thread acquires the shared semaphore s1 (initialized to 1) first.
Case 1: T1 executes first 1. T1 executes wait(s1) successfully (s1 becomes 0). 2. T1 increments x to 1 and prints 1. 3. T1 executes wait(s2). Since s2 = 0, T1 blocks here. 4. If a context switch occurs, T2 tries to execute wait(s1). Since s1 = 0, T2 also blocks.
Both threads are permanently blocked waiting for each other, resulting in a deadlock where only 1 was printed.
This validates Option (c).
Case 2: T2 executes first 1. T2 executes wait(s1) successfully (s1 becomes 0). 2. T2 increments x to 1 and prints 1. 3. T2 signals s2 (s2 = 1) and signals s1 (s1 = 1), completing its execution. 4. T1 is now free to run. It passes wait(s1), increments x to 2, and prints 2. 5. T1 passes wait(s2) without blocking because s2 was set to 1 by T2.
Both threads finish successfully, printing 1 followed by 2.
This validates Option (b).
Conclusion: The possible outcomes are b and c.

Ques 65 GATE 2024 SET-2


Consider the following C program. Assume parameters to a function are evaluated from right to left.

Which one of the following options is the CORRECT output of the above C program?

A

10201020

B

10202010

C

20101020

D

20102010


(b) is the correct answer.

Unique Visitor Count

Total Unique Visitors

Loading......