GATE 2024 DA

All 65 questions of GATE 2024 DA

Question text and figures as in the official paper, with the answer from the official key. Worked solutions for every question are in your report after you take the paper as a 3-hour test.

Q1 · General Aptitude · MCQ · 1 mark

The 15 parts of the given figure are to be painted such that no two adjacent parts with shared boundaries (excluding corners) have the same color. The minimum number of colors required is

Figure for GATE 2024 DA question 1 (Spatial Aptitude)

  • (A)
    4
  • (B)
    3
  • (C)
    5
  • (D)
    6

Answer (official key): A

Worked solution: in your report after you take this paper.

Q2 · General Aptitude · MCQ · 1 mark

How many 4-digit positive integers divisible by 3 can be formed using only the digits {1, 3, 4, 6, 7}, such that no digit appears more than once in a number?

  • (A)
    24
  • (B)
    48
  • (C)
    72
  • (D)
    12

Answer (official key): B

Worked solution: in your report after you take this paper.

Q3 · General Aptitude · MCQ · 1 mark

In an election, the share of valid votes received by the four candidates A, B, C, and D is represented by the pie chart shown. The total number of votes cast in the election were 1,15,000, out of which 5,000 were invalid.

Based on the data provided, the total number of valid votes received by the candidates B and C is

Pie chart for Q5

  • (A)
    45,000
  • (B)
    49,500
  • (C)
    51,750
  • (D)
    54,000

Answer (official key): B

Read the worked solution

Q4 · General Aptitude · MCQ · 1 mark

If ‘→’ denotes increasing order of intensity, then the meaning of the words

[sick → infirm → moribund]

is analogous to

[silly → _______ → daft].

Which one of the given options is appropriate to fill the blank?

  • (A)
    frown
  • (B)
    fawn
  • (C)
    vein
  • (D)
    vain

Answer (official key): D

Read the worked solution

Q5 · General Aptitude · MCQ · 1 mark

The sum of the following infinite series is

2+12+13+14+18+19+116+127+⋯2 + \frac{1}{2} + \frac{1}{3} + \frac{1}{4} + \frac{1}{8} + \frac{1}{9} + \frac{1}{16} + \frac{1}{27} + \cdots
  • (A)
    11/3
  • (B)
    7/2
  • (C)
    13/4
  • (D)
    9/2

Answer (official key): B

Worked solution: in your report after you take this paper.

Q6 · General Aptitude · MCQ · 2 marks

Visualize two identical right circular cones such that one is inverted over the other and they share a common circular base. If a cutting plane passes through the vertices of the assembled cones, what shape does the outer boundary of the resulting cross-section make?

  • (A)
    A rhombus
  • (B)
    A triangle
  • (C)
    An ellipse
  • (D)
    A hexagon

Answer (official key): A

Worked solution: in your report after you take this paper.

Q7 · General Aptitude · MCQ · 2 marks

The probability of a boy or a girl being born is 1/2. For a family having only three children, what is the probability of having two girls and one boy?

  • (A)
    3/8
  • (B)
    1/8
  • (C)
    1/4
  • (D)
    1/2

Answer (official key): A

Worked solution: in your report after you take this paper.

Q8 · General Aptitude · MCQ · 2 marks

Thousands of years ago, some people began dairy farming. This coincided with a number of mutations in a particular gene that resulted in these people developing the ability to digest dairy milk.

Based on the given passage, which of the following can be inferred?

  • (A)
    All human beings can digest dairy milk.
  • (B)
    No human being can digest dairy milk.
  • (C)
    Digestion of dairy milk is essential for human beings.
  • (D)
    In human beings, digestion of dairy milk resulted from a mutated gene.

Answer (official key): D

Worked solution: in your report after you take this paper.

Q9 · General Aptitude · MCQ · 2 marks

Three different views of a dice are shown in the figure below.

Dice views for Q9

The piece of paper that can be folded to make this dice is

  • (A)
    GATE 2024 DA question 9 (Spatial Aptitude), option A
  • (B)
    GATE 2024 DA question 9 (Spatial Aptitude), option B
  • (C)
    GATE 2024 DA question 9 (Spatial Aptitude), option C
  • (D)
    GATE 2024 DA question 9 (Spatial Aptitude), option D

Answer (official key): A

Worked solution: in your report after you take this paper.

Q10 · General Aptitude · MCQ · 2 marks

Person 1 and Person 2 invest in three mutual funds A, B, and C. The amounts they invest in each of these mutual funds are given in the table.

Mutual fund AMutual fund BMutual fund C
Person 1₹10,000₹20,000₹20,000
Person 2₹20,000₹15,000₹15,000

At the end of one year, the total amount that Person 1 gets is ₹500 more than Person 2. The annual rate of return for the mutual funds B and C is 15% each. What is the annual rate of return for the mutual fund A?

  • (A)
    7.5%
  • (B)
    10%
  • (C)
    15%
  • (D)
    20%

Answer (official key): B

Worked solution: in your report after you take this paper.

Q11 · Machine Learning · MCQ · 1 mark

Euclidean distance based kk-means clustering algorithm was run on a dataset of 100 points with k=3k=3. If the points

[11]and[−11]\begin{bmatrix}1\\1\end{bmatrix} \quad \text{and} \quad \begin{bmatrix}-1\\1\end{bmatrix}

are both part of cluster 3, then which ONE of the following points is necessarily also part of cluster 3?

  • (A)
    [00]\begin{bmatrix}0\\0\end{bmatrix}
  • (B)
    [02]\begin{bmatrix}0\\2\end{bmatrix}
  • (C)
    [20]\begin{bmatrix}2\\0\end{bmatrix}
  • (D)
    [01]\begin{bmatrix}0\\1\end{bmatrix}

Answer (official key): D

Worked solution: in your report after you take this paper.

Q12 · Linear Algebra · MCQ · 1 mark

Consider the matrix

M=[2−131].M=\begin{bmatrix} 2 & -1\\ 3 & 1 \end{bmatrix}.

Which ONE of the following statements is TRUE?

  • (A)
    The eigenvalues of MM are non-negative and real
  • (B)
    The eigenvalues of MM are complex conjugate pairs
  • (C)
    One eigenvalue is positive and real, and another is zero
  • (D)
    One eigenvalue is non-negative and real, and another is negative and real

Answer (official key): B

Worked solution: in your report after you take this paper.

Q13 · Probability and Statistics · MCQ · 1 mark

Three fair coins are tossed independently. TT is the event that two or more tosses result in heads. SS is the event that two or more tosses result in tails.

What is the probability of the event T∩ST \cap S?

  • (A)
    0
  • (B)
    0.5
  • (C)
    0.25
  • (D)
    1

Answer (official key): A

Worked solution: in your report after you take this paper.

Q14 · Programming, Data Structures and Algorithms · MCQ · 1 mark

Match the items in Column 1 with the items in Column 2 in the following table:

Column 1Column 2
(p) First In First Out(i) Stacks
(q) Lookup Operation(ii) Queues
(r) Last In First Out(iii) Hash Tables
  • (A)
    (p) − (ii), (q) − (iii), (r) − (i)
  • (B)
    (p) − (ii), (q) − (i), (r) − (iii)
  • (C)
    (p) − (i), (q) − (ii), (r) − (iii)
  • (D)
    (p) − (i), (q) − (iii), (r) − (ii)

Answer (official key): A

Worked solution: in your report after you take this paper.

Q15 · Calculus and Optimization · MCQ · 1 mark

For any twice differentiable function f:R→Rf:\mathbb{R}\to\mathbb{R}, if at some x∗∈Rx^* \in \mathbb{R},

f′(x∗)=0andf′′(x∗)>0,f'(x^*)=0 \quad \text{and} \quad f''(x^*)>0,

then the function ff necessarily has a ______ at x=x∗x=x^*.

  • (A)
    local minimum
  • (B)
    global minimum
  • (C)
    local maximum
  • (D)
    global maximum

Answer (official key): A

Worked solution: in your report after you take this paper.

Q16 · Machine Learning · MCQ · 1 mark

Consider the dataset with six datapoints:

{(x1,y1),(x2,y2),…,(x6,y6)},\{(x_1,y_1),(x_2,y_2),\dots,(x_6,y_6)\},

where

x1=[10],  x2=[01],  x3=[0−1],  x4=[−10],  x5=[22],  x6=[−2−2]x_1=\begin{bmatrix}1\\0\end{bmatrix},\; x_2=\begin{bmatrix}0\\1\end{bmatrix},\; x_3=\begin{bmatrix}0\\-1\end{bmatrix},\; x_4=\begin{bmatrix}-1\\0\end{bmatrix},\; x_5=\begin{bmatrix}2\\2\end{bmatrix},\; x_6=\begin{bmatrix}-2\\-2\end{bmatrix}

and the labels are given by

y1=y2=y5=1,y3=y4=y6=−1.y_1=y_2=y_5=1,\qquad y_3=y_4=y_6=-1.

A hard margin linear support vector machine is trained on the above dataset. Which ONE of the following sets is a possible set of support vectors?

  • (A)
    {x1,x2,x5}\{x_1,x_2,x_5\}
  • (B)
    {x3,x4,x5}\{x_3,x_4,x_5\}
  • (C)
    {x4,x5}\{x_4,x_5\}
  • (D)
    {x1,x2,x3,x4}\{x_1,x_2,x_3,x_4\}

Answer (official key): D

Worked solution: in your report after you take this paper.

Q17 · Machine Learning · MCQ · 1 mark

Given a dataset with KK binary-valued attributes (where K>2K > 2) for a two-class classification task, the number of parameters to be estimated for learning a naïve Bayes classifier is

  • (A)
    2K+12^K + 1
  • (B)
    2K+12K + 1
  • (C)
    2K+1+12^{K+1} + 1
  • (D)
    K2+1K^2 + 1

Answer (official key): B

Worked solution: in your report after you take this paper.

Q18 · Programming, Data Structures and Algorithms · MCQ · 1 mark

Consider performing depth-first search (DFS) on an undirected and unweighted graph GG starting at vertex ss. For any vertex uu in GG, d[u]d[u] is the length of the shortest path from ss to uu. Let (u,v)(u,v) be an edge in GG such that d[u]<d[v]d[u] < d[v]. If the edge (u,v)(u,v) is explored first in the direction from uu to vv during the above DFS, then (u,v)(u,v) becomes a ______ edge.

  • (A)
    tree
  • (B)
    cross
  • (C)
    back
  • (D)
    gray

Answer (official key): A

Worked solution: in your report after you take this paper.

Q19 · Machine Learning · MCQ · 1 mark

Match the items in Column 1 with the items in Column 2 in the following table:

Column 1Column 2
(p) Principal Component Analysis(i) Discriminative Model
(q) Naïve Bayes Classification(ii) Dimensionality Reduction
(r) Logistic Regression(iii) Generative Model
  • (A)
    (p) − (iii), (q) − (i), (r) − (ii)
  • (B)
    (p) − (ii), (q) − (i), (r) − (iii)
  • (C)
    (p) − (ii), (q) − (iii), (r) − (i)
  • (D)
    (p) − (iii), (q) − (ii), (r) − (i)

Answer (official key): C

Worked solution: in your report after you take this paper.

Q20 · Probability and Statistics · MCQ · 1 mark

Consider the following statements:

(i) The mean and variance of a Poisson random variable are equal.
(ii) For a standard normal random variable, the mean is zero and the variance is one.

Which ONE of the following options is correct?

  • (A)
    Both (i) and (ii) are true
  • (B)
    (i) is true and (ii) is false
  • (C)
    (ii) is true and (i) is false
  • (D)
    Both (i) and (ii) are false

Answer (official key): A

Worked solution: in your report after you take this paper.

Q21 · Artificial Intelligence · MCQ · 1 mark

Consider the following statement:

In adversarial search, α\alpha–β\beta pruning can be applied to game trees of any depth where α\alpha is the (m) value choice we have formed so far at any choice point along the path for the MAX player and β\beta is the (n) value choice we have formed so far at any choice point along the path for the MIN player.

Which ONE of the following choices of (m) and (n) makes the above statement valid?

  • (A)
    (m) = highest, (n) = highest
  • (B)
    (m) = lowest, (n) = highest
  • (C)
    (m) = highest, (n) = lowest
  • (D)
    (m) = lowest, (n) = lowest

Answer (official key): C

Worked solution: in your report after you take this paper.

Q22 · Database Management and Warehousing · MCQ · 1 mark

Consider a database that includes the following relations:

Defender(name, rating, side, goals)
Forward(name, rating, assists, goals)
Team(name, club, price)

Which ONE of the following relational algebra expressions checks that every name occurring in Team appears in either Defender or Forward, where ϕ\phi denotes the empty set?

  • (A)
    Πname(Team)∖(Πname(Defender)∩Πname(Forward))=ϕ\Pi_{name}(Team) \setminus (\Pi_{name}(Defender)\cap \Pi_{name}(Forward))=\phi
  • (B)
    (Πname(Defender)∩Πname(Forward))∖Πname(Team)=ϕ(\Pi_{name}(Defender)\cap \Pi_{name}(Forward)) \setminus \Pi_{name}(Team)=\phi
  • (C)
    Πname(Team)∖(Πname(Defender)∪Πname(Forward))=ϕ\Pi_{name}(Team) \setminus (\Pi_{name}(Defender)\cup \Pi_{name}(Forward))=\phi
  • (D)
    (Πname(Defender)∪Πname(Forward))∖Πname(Team)=ϕ(\Pi_{name}(Defender)\cup \Pi_{name}(Forward)) \setminus \Pi_{name}(Team)=\phi

Answer (official key): C

Worked solution: in your report after you take this paper.

Q23 · Probability and Statistics · MCQ · 1 mark

Let the minimum, maximum, mean and standard deviation values for the attribute income of data scientists be ₹46000, ₹170000, ₹96000, and ₹21000, respectively. The z-score normalized income value of ₹106000 is closest to which ONE of the following options?

  • (A)
    0.217
  • (B)
    0.476
  • (C)
    0.623
  • (D)
    2.304

Answer (official key): B

Worked solution: in your report after you take this paper.

Q24 · Programming, Data Structures and Algorithms · MCQ · 1 mark

Consider performing uniform hashing on an open address hash table with load factor

α=nm<1,\alpha=\frac{n}{m}<1,

where nn elements are stored in the table with mm slots. The expected number of probes in an unsuccessful search is at most

11−α.\frac{1}{1-\alpha}.

Inserting an element in this hash table requires at most ______ probes, on average.

  • (A)
    ln⁡(11−α)\ln\left(\frac{1}{1-\alpha}\right)
  • (B)
    11−α\frac{1}{1-\alpha}
  • (C)
    1+α21+\frac{\alpha}{2}
  • (D)
    11+α\frac{1}{1+\alpha}

Answer (official key): B

Worked solution: in your report after you take this paper.

Q25 · Artificial Intelligence · MCQ · 1 mark

Let h1h_1 and h2h_2 be two admissible heuristics used in A* search.

Which ONE of the following expressions is always an admissible heuristic?

  • (A)
    h1+h2h_1+h_2
  • (B)
    h1×h2h_1 \times h_2
  • (C)
    h1/h2h_1/h_2, (h2≠0)(h_2 \ne 0)
  • (D)
    ∣h1−h2∣|h_1-h_2|

Answer (official key): D

Worked solution: in your report after you take this paper.

Q26 · Machine Learning · MCQ · 1 mark

For any binary classification dataset, let SB∈Rd×dS_B \in \mathbb{R}^{d \times d} and SW∈Rd×dS_W \in \mathbb{R}^{d \times d} be the between-class and within-class scatter matrices, respectively. The Fisher linear discriminant is defined by u∗∈Rdu^* \in \mathbb{R}^d, that maximizes

J(u)=u⊤SBuu⊤SWu.J(u)=\frac{u^\top S_B u}{u^\top S_W u}.

If λ=J(u∗)\lambda = J(u^*), SWS_W is non-singular and SB≠0S_B \ne 0, then (u∗,λ)(u^*, \lambda) must satisfy which ONE of the following equations?

  • (A)
    SW−1SBu∗=λu∗S_W^{-1}S_Bu^*=\lambda u^*
  • (B)
    SWu∗=λSBu∗S_Wu^*=\lambda S_Bu^*
  • (C)
    SBSWu∗=λu∗S_BS_Wu^*=\lambda u^*
  • (D)
    u∗⊤u∗=λ2u^{*\top}u^*=\lambda^2

Answer (official key): A

Worked solution: in your report after you take this paper.

Q27 · Artificial Intelligence · MCQ · 1 mark

Consider five random variables U,V,W,X,U, V, W, X, and YY whose joint distribution satisfies:

P(U,V,W,X,Y)=P(U)P(V)P(W∣U,V)P(X∣W)P(Y∣W).P(U,V,W,X,Y)=P(U)P(V)P(W|U,V)P(X|W)P(Y|W).

Which ONE of the following statements is FALSE?

  • (A)
    YY is conditionally independent of VV given WW
  • (B)
    XX is conditionally independent of UU given WW
  • (C)
    UU and VV are conditionally independent given WW
  • (D)
    YY and XX are conditionally independent given WW

Answer (official key): C

Worked solution: in your report after you take this paper.

Q28 · Programming, Data Structures and Algorithms · MSQ · 1 mark

Consider the following tree traversals on a full binary tree:

(i) Preorder
(ii) Inorder
(iii) Postorder

Which of the following traversal options is/are sufficient to uniquely reconstruct the full binary tree?

  • (A)
    (i) and (ii)
  • (B)
    (ii) and (iii)
  • (C)
    (i) and (iii)
  • (D)
    (ii) only

Answer (official key): A, B, C

Read the worked solution

Q29 · Programming, Data Structures and Algorithms · Numerical · 1 mark

Consider sorting the following array of integers in ascending order using an in-place Quicksort algorithm that uses the last element as the pivot.

60    70    80    90    10060 \;\; 70 \;\; 80 \;\; 90 \;\; 100

The minimum number of swaps performed during this Quicksort is ______.

Answer (official key): 0

Read the worked solution

Q30 · Artificial Intelligence · MSQ · 1 mark

Let xx and yy be two propositions. Which of the following statements is a tautology / are tautologies?

  • (A)
    (¬x∧y)  ⟹  (y  ⟹  x)(\neg x \land y) \implies (y \implies x)
  • (B)
    (x∧¬y)  ⟹  (¬x  ⟹  y)(x \land \neg y) \implies (\neg x \implies y)
  • (C)
    (¬x∧y)  ⟹  (¬x  ⟹  y)(\neg x \land y) \implies (\neg x \implies y)
  • (D)
    (x∧¬y)  ⟹  (y  ⟹  x)(x \land \neg y) \implies (y \implies x)

Answer (official key): B, C, D

Worked solution: in your report after you take this paper.

Q31 · Calculus and Optimization · Numerical · 1 mark

Let f:R→Rf:\mathbb{R} \to \mathbb{R} be the function

f(x)=11+e−x.f(x)=\frac{1}{1+e^{-x}}.

The value of the derivative of ff at xx where f(x)=0.4f(x)=0.4 is ______.

(Rounded off to two decimal places)

Answer (official key): 0.24

Worked solution: in your report after you take this paper.

Q32 · Probability and Statistics · Numerical · 1 mark

The sample average of 50 data points is 40. The updated sample average after including a new data point taking the value of 142 is ______.

Answer (official key): 42

Worked solution: in your report after you take this paper.

Q33 · Linear Algebra · Numerical · 1 mark

Consider the 3×33 \times 3 matrix

M=[123313436].M= \begin{bmatrix} 1 & 2 & 3 \\ 3 & 1 & 3 \\ 4 & 3 & 6 \end{bmatrix}.

The determinant of (M2+12M)(M^2 + 12M) is ______.

Answer (official key): 0

Worked solution: in your report after you take this paper.

Q34 · Database Management and Warehousing · Numerical · 1 mark

Consider the following two tables named Raider and Team in a relational database maintained by a Kabaddi league. The attribute ID in table Team references the primary key of the Raider table, ID.

Raider

IDNameRaidsRaidPoints
1Arjun200250
2Ankush190219
3Sunil150200
4Reza150190
5Pratham175220
6Gopal193215

Team

CityIDBidPoints
Jaipur2200
Patna3195
Hyderabad5175
Jaipur1250
Patna4200
Jaipur6200

The SQL query described below is executed on this database:

SELECT *
FROM Raider, Team
WHERE Raider.ID = Team.ID
  AND City = 'Jaipur'
  AND RaidPoints > 200;

The number of rows returned by this query is ______.

Answer (official key): 3

Worked solution: in your report after you take this paper.

Q35 · Programming, Data Structures and Algorithms · Numerical · 1 mark

The fundamental operations in a double-ended queue D are:

  • insertFirst(e) – Insert a new element e at the beginning of D
  • insertLast(e) – Insert a new element e at the end of D
  • removeFirst() – Remove and return the first element of D
  • removeLast() – Remove and return the last element of D

In an empty double-ended queue, the following operations are performed:

insertFirst(10)
insertLast(32)
a ← removeFirst()
insertLast(28)
insertLast(17)
a ← removeFirst()
a ← removeLast()

The value of a is ______.

Answer (official key): 17

Worked solution: in your report after you take this paper.

Q36 · Calculus and Optimization · MCQ · 2 marks

Let f:R→Rf:\mathbb{R} \to \mathbb{R} be a function:

f(x)={−x,x<−2ax2+bx+c,x∈[−2,2]x,x>2f(x)= \begin{cases} -x, & x < -2 \\ ax^2 + bx + c, & x \in [-2,2] \\ x, & x > 2 \end{cases}

Which ONE of the following choices gives the values of a,b,ca, b, c that make the function ff continuous and differentiable?

  • (A)
    a=14, b=0, c=1a=\frac14,\, b=0,\, c=1
  • (B)
    a=12, b=0, c=0a=\frac12,\, b=0,\, c=0
  • (C)
    a=0, b=0, c=0a=0,\, b=0,\, c=0
  • (D)
    a=1, b=1, c=−4a=1,\, b=1,\, c=-4

Answer (official key): A

Worked solution: in your report after you take this paper.

Q37 · Probability and Statistics · MCQ · 2 marks

A fair six-sided die (with faces numbered 1, 2, 3, 4, 5, 6) is repeatedly thrown independently.

What is the expected number of times the die is thrown until two consecutive throws of even numbers are seen?

  • (A)
    2
  • (B)
    4
  • (C)
    6
  • (D)
    8

Answer (official key): C

Worked solution: in your report after you take this paper.

Q38 · Programming, Data Structures and Algorithms · MCQ · 2 marks

Let F(n)F(n) denote the maximum number of comparisons made while searching for an entry in a sorted array of size nn using binary search.

Which ONE of the following options is TRUE?

  • (A)
    F(n)=F(⌊n/2⌋)+1F(n)=F(\lfloor n/2 \rfloor)+1
  • (B)
    F(n)=F(⌊n/2⌋)+F(⌈n/2⌉)F(n)=F(\lfloor n/2 \rfloor)+F(\lceil n/2 \rceil)
  • (C)
    F(n)=F(⌊n/2⌋)F(n)=F(\lfloor n/2 \rfloor)
  • (D)
    F(n)=F(n−1)+1F(n)=F(n-1)+1

Answer (official key): A

Worked solution: in your report after you take this paper.

Q39 · Programming, Data Structures and Algorithms · MCQ · 2 marks

Consider the following Python code:

def count(child_dict, i):
    if i not in child_dict.keys():
        return 1
    ans = 1
    for j in child_dict[i]:
        ans += count(child_dict, j)
    return ans

child_dict = dict()
child_dict[0] = [1,2]
child_dict[1] = [3,4,5]
child_dict[2] = [6,7,8]

print(count(child_dict,0))

Which ONE of the following is the output of this code?

  • (A)
    6
  • (B)
    1
  • (C)
    8
  • (D)
    9

Answer (official key): D

Worked solution: in your report after you take this paper.

Q40 · Programming, Data Structures and Algorithms · MCQ · 2 marks

Consider the function computeS(X) whose pseudocode is given below:

computeS(X)
S[1] ← 1
for i ← 2 to length(X)
    S[i] ← 1
    if X[i − 1] ≤ X[i]
        S[i] ← S[i] + S[i − 1]
    end if
end for
return S

Which ONE of the following values is returned by the function computeS(X) for

X=[6,3,5,4,10]?X = [6, 3, 5, 4, 10]?
  • (A)
    [1, 1, 2, 3, 4]
  • (B)
    [1, 1, 2, 3, 3]
  • (C)
    [1, 1, 2, 1, 2]
  • (D)
    [1, 1, 2, 1, 5]

Answer (official key): C

Worked solution: in your report after you take this paper.

Q41 · Linear Algebra · MSQ · 2 marks

Select all choices that are subspaces of R3\mathbb{R}^3.

  • (A)
    {x∈R3:x=α[110]+β[100],α,β∈R}\left\{ \mathbf{x}\in\mathbb{R}^3 : \mathbf{x}=\alpha \begin{bmatrix}1\\1\\0\end{bmatrix} + \beta \begin{bmatrix}1\\0\\0\end{bmatrix}, \alpha,\beta\in\mathbb{R} \right\}
  • (B)
    {x∈R3:x=α2[120]+β2[101],α,β∈R}\left\{ \mathbf{x}\in\mathbb{R}^3 : \mathbf{x}=\alpha^2 \begin{bmatrix}1\\2\\0\end{bmatrix} + \beta^2 \begin{bmatrix}1\\0\\1\end{bmatrix}, \alpha,\beta\in\mathbb{R} \right\}
  • (C)
    {x∈R3:5x1+2x3=0,  4x1−2x2+3x3=0}\left\{ \mathbf{x}\in\mathbb{R}^3 : 5x_1+2x_3=0,\; 4x_1-2x_2+3x_3=0 \right\}
  • (D)
    {x∈R3:5x1+2x3+4=0}\left\{ \mathbf{x}\in\mathbb{R}^3 : 5x_1+2x_3+4=0 \right\}

Answer (official key): A, C

Worked solution: in your report after you take this paper.

Q42 · Artificial Intelligence · MCQ · 2 marks

Consider a state space where the start state is number 1. The successor function for the state numbered nn returns two states numbered n+1n+1 and n+2n+2. Assume that the states in the unexpanded state list are expanded in the ascending order of numbers and the previously expanded states are not added to the unexpanded state list.

Which ONE of the following statements about breadth-first search (BFS) and depth-first search (DFS) is true, when reaching the goal state number 6?

  • (A)
    BFS expands more states than DFS.
  • (B)
    DFS expands more states than BFS.
  • (C)
    Both BFS and DFS expand equal number of states.
  • (D)
    Both BFS and DFS do not reach the goal state number 6.

Answer (official key): C

Worked solution: in your report after you take this paper.

Q43 · Programming, Data Structures and Algorithms · MCQ · 2 marks

Consider the following sorting algorithms:

(i) Bubble sort
(ii) Insertion sort
(iii) Selection sort

Which ONE among the following choices of sorting algorithms sorts the numbers in the array

[4,3,2,1,5][4, 3, 2, 1, 5]

in increasing order after exactly two passes over the array?

  • (A)
    (i) only
  • (B)
    (iii) only
  • (C)
    (i) and (iii) only
  • (D)
    (ii) and (iii) only

Answer (official key): B

Worked solution: in your report after you take this paper.

Q44 · Programming, Data Structures and Algorithms · MCQ · 2 marks

Consider the following Python function:

def fun(D, s1, s2):
    if s1 < s2:
        D[s1], D[s2] = D[s2], D[s1]
        fun(D, s1+1, s2-1)

What does this Python function fun() do? Select the ONE appropriate option below.

  • (A)
    It finds the smallest element in D from index s1 to s2, both inclusive.
  • (B)
    It performs a merge sort in-place on this list D between indices s1 and s2, both inclusive.
  • (C)
    It reverses the list D between indices s1 and s2, both inclusive.
  • (D)
    It swaps the elements in D at indices s1 and s2, and leaves the remaining elements unchanged.

Answer (official key): C

Worked solution: in your report after you take this paper.

Q45 · Linear Algebra · MSQ · 2 marks

Which of the following statements is/are TRUE?

Note: R\mathbb{R} denotes the set of real numbers.

  • (A)
    There exist M∈R3×3M \in \mathbb{R}^{3\times 3}, p∈R3p \in \mathbb{R}^3, and q∈R3q \in \mathbb{R}^3 such that Mx=pMx=p has a unique solution and Mx=qMx=q has infinite solutions.
  • (B)
    There exist M∈R3×3M \in \mathbb{R}^{3\times 3}, p∈R3p \in \mathbb{R}^3, and q∈R3q \in \mathbb{R}^3 such that Mx=pMx=p has no solutions and Mx=qMx=q has infinite solutions.
  • (C)
    There exist M∈R2×3M \in \mathbb{R}^{2\times 3}, p∈R2p \in \mathbb{R}^2, and q∈R2q \in \mathbb{R}^2 such that Mx=pMx=p has a unique solution and Mx=qMx=q has infinite solutions.
  • (D)
    There exist M∈R3×2M \in \mathbb{R}^{3\times 2}, p∈R3p \in \mathbb{R}^3, and q∈R3q \in \mathbb{R}^3 such that Mx=pMx=p has a unique solution and Mx=qMx=q has no solutions.

Answer (official key): B, D

Worked solution: in your report after you take this paper.

Q46 · Linear Algebra · MSQ · 2 marks

Let R\mathbb{R} be the set of real numbers, UU be a subspace of R3\mathbb{R}^3 and M∈R3×3M \in \mathbb{R}^{3\times 3} be the matrix corresponding to the projection on to the subspace UU.

Which of the following statements is/are TRUE?

  • (A)
    If UU is a 1-dimensional subspace of R3\mathbb{R}^3, then the null space of MM is a 1-dimensional subspace.
  • (B)
    If UU is a 2-dimensional subspace of R3\mathbb{R}^3, then the null space of MM is a 1-dimensional subspace.
  • (C)
    M2=MM^2 = M
  • (D)
    M3=MM^3 = M

Answer (official key): B, C, D

Worked solution: in your report after you take this paper.

Q47 · Calculus and Optimization · MSQ · 2 marks

Consider the function

f:R→R,f(x)=x44−2x33−3x22+1.f:\mathbb{R}\to\mathbb{R},\qquad f(x)=\frac{x^4}{4}-\frac{2x^3}{3}-\frac{3x^2}{2}+1.

Which of the following statements is/are TRUE?

  • (A)
    x=0x=0 is a local maximum of ff
  • (B)
    x=3x=3 is a local minimum of ff
  • (C)
    x=−1x=-1 is a local maximum of ff
  • (D)
    x=0x=0 is a local minimum of ff

Answer (official key): A, B

Worked solution: in your report after you take this paper.

Q48 · Database Management and Warehousing · MSQ · 2 marks

Given the relational schema

R=(U,V,W,X,Y,Z)R=(U,V,W,X,Y,Z)

and the set of functional dependencies

{U→V,  U→W,  WX→Y,  WX→Z,  V→X},\{U \to V,\; U \to W,\; WX \to Y,\; WX \to Z,\; V \to X\},

which of the following functional dependencies can be derived from the above set?

  • (A)
    VW→YZVW \to YZ
  • (B)
    WX→YZWX \to YZ
  • (C)
    VW→UVW \to U
  • (D)
    VW→YVW \to Y

Answer (official key): A, B, D

Worked solution: in your report after you take this paper.

Q49 · Machine Learning · MCQ · 2 marks

Consider the table below, where the (i,j)(i,j)-th element of the table is the distance between points xix_i and xjx_j. Single linkage clustering is performed on data points x1,x2,x3,x4,x5x_1, x_2, x_3, x_4, x_5.

x1x_1x2x_2x3x_3x4x_4x5x_5
x1x_101436
x2x_210353
x3x_343025
x4x_435201
x5x_563510

Which ONE of the following is the correct representation of the clusters produced?

  • (A)
    First merge (x1,x2)(x_1,x_2) and (x4,x5)(x_4,x_5), then merge x3x_3 with (x4,x5)(x_4,x_5), and finally merge the two larger clusters.
  • (B)
    First merge (x1,x2)(x_1,x_2), then merge x3x_3 with (x1,x2)(x_1,x_2), while separately merging (x4,x5)(x_4,x_5), and finally merge the two larger clusters.
  • (C)
    First merge (x1,x2)(x_1,x_2) and (x3,x4)(x_3,x_4), then merge x5x_5 with (x3,x4)(x_3,x_4), and finally merge the two larger clusters.
  • (D)
    First merge (x1,x2)(x_1,x_2) and (x3,x4)(x_3,x_4), then merge those two clusters, and finally merge x5x_5 at the end.

Answer (official key): A

Worked solution: in your report after you take this paper.

Q50 · Machine Learning · MCQ · 2 marks

Consider the two neural networks (NNs) shown in Figures 1 and 2, with ReLU activation

ReLU(z)=max⁡{0,z},z∈R.\mathrm{ReLU}(z)=\max\{0,z\}, \quad z \in \mathbb{R}.

The biases at every neuron are set to 0. For what values of p,q,rp, q, r in Figure 2 are the two NNs equivalent, when x1,x2,x3x_1, x_2, x_3 are positive?

Figure 1

Figure for GATE 2024 DA question 50 (Machine Learning)

Figure 2

Figure for GATE 2024 DA question 50 (Machine Learning)

  • (A)
    p=36,q=24,r=24p = 36, q = 24, r = 24
  • (B)
    p=24,q=24,r=36p = 24, q = 24, r = 36
  • (C)
    p=18,q=36,r=24p = 18, q = 36, r = 24
  • (D)
    p=36,q=36,r=36p = 36, q = 36, r = 36

Answer (official key): A

Read the worked solution

Q51 · Programming, Data Structures and Algorithms · MSQ · 2 marks

Let H,I,L,H, I, L, and NN represent height, number of internal nodes, number of leaf nodes, and the total number of nodes respectively in a rooted binary tree.

Which of the following statements is/are always TRUE?

  • (A)
    L≤I+1L \le I + 1
  • (B)
    H+1≤N≤2H+1−1H + 1 \le N \le 2^{H+1} - 1
  • (C)
    H≤I≤2H−1H \le I \le 2^H - 1
  • (D)
    H≤L≤2H−1H \le L \le 2^{H-1}

Answer (official key): A, B, C

Worked solution: in your report after you take this paper.

Q52 · Machine Learning · Numerical · 2 marks

Details of ten international cricket games between two teams “Green” and “Blue” are given in Table C. This table consists of matches played on different pitches, across formats along with their winners. The attribute Pitch can take one of two values: spin-friendly (represented as S) or pace-friendly (represented as F). The attribute Format can take one of two values: one-day match (represented as O) or test match (represented as T).

A cricket organization would like to use the information given in Table C to develop a decision-tree model to predict outcomes of future games between these two teams. To develop such a model, the computed InformationGain(C, Pitch) with respect to the target is ______ (rounded off to two decimal places).

Match NumberPitchFormatWinner (Target)
1STGreen
2STBlue
3FOBlue
4SOBlue
5FTGreen
6FOBlue
7SOGreen
8FTBlue
9FOBlue
10SOGreen

Answer (official key): 0.12 to 0.13

Worked solution: in your report after you take this paper.

Q53 · Calculus and Optimization · Numerical · 2 marks

Evaluate the following limit:

lim⁡x→0ln⁡((x2+1)cos⁡x)x2\lim_{x\to 0}\frac{\ln\left((x^2+1)\cos x\right)}{x^2}

Answer (official key): 0.5

Worked solution: in your report after you take this paper.

Q54 · Artificial Intelligence · MSQ · 2 marks

Let game(ball, rugby) be true if the ball is used in rugby and false otherwise.
Let shape(ball, round) be true if the ball is round and false otherwise.

Consider the following logical sentences:

  • s1:∀ball  ¬game(ball,rugby)⇒shape(ball,round)s_1: \forall ball\; \neg game(ball, rugby) \Rightarrow shape(ball, round)
  • s2:∀ball  ¬shape(ball,round)⇒game(ball,rugby)s_2: \forall ball\; \neg shape(ball, round) \Rightarrow game(ball, rugby)
  • s3:∀ball  game(ball,rugby)⇒¬shape(ball,round)s_3: \forall ball\; game(ball, rugby) \Rightarrow \neg shape(ball, round)
  • s4:∀ball  shape(ball,round)⇒¬game(ball,rugby)s_4: \forall ball\; shape(ball, round) \Rightarrow \neg game(ball, rugby)

Which of the following choices is/are logical representations of the assertion,
“All balls are round except balls used in rugby”?

  • (A)
    s1∧s3s_1 \land s_3
  • (B)
    s1∧s2s_1 \land s_2
  • (C)
    s2∧s3s_2 \land s_3
  • (D)
    s3∧s4s_3 \land s_4

Answer (official key): A, C

Worked solution: in your report after you take this paper.

Q55 · Artificial Intelligence · Numerical · 2 marks

Given the following Bayesian Network consisting of four Bernoulli random variables and the associated conditional probability tables:

Bayesian Network for Q64

The value of

P(U=1,  V=1,  W=1,  Z=1)P(U=1,\;V=1,\;W=1,\;Z=1)

is ______ (rounded off to three decimal places).

Answer (official key): 0.125

Worked solution: in your report after you take this paper.

Q56 · Machine Learning · Numerical · 2 marks

Given the two-dimensional dataset consisting of 5 data points from two classes (circles and squares), and assuming that the Euclidean distance is used to measure the distance between two points, the minimum odd value of kk in the kk-nearest neighbor algorithm for which the diamond-shaped data point is assigned the label square is ______.

Dataset for Q63

Answer (official key): 5

Worked solution: in your report after you take this paper.

Q57 · Programming, Data Structures and Algorithms · MSQ · 2 marks

Consider the directed acyclic graph (DAG) below.

DAG for Q51

Which of the following is/are valid vertex orderings that can be obtained from a topological sort of the DAG?

  • (A)
    P Q R S T U V
  • (B)
    P R Q V S U T
  • (C)
    P Q R S V U T
  • (D)
    P R Q S V T U

Answer (official key): B, D

Worked solution: in your report after you take this paper.

Q58 · Probability and Statistics · Numerical · 2 marks

Two fair coins are tossed independently. XX is a random variable that takes a value of 1 if both tosses are heads and 0 otherwise. YY is a random variable that takes a value of 1 if at least one of the tosses is heads and 0 otherwise.

The value of the covariance of XX and YY is ______ (rounded off to three decimal places).

Answer (official key): 0.062 to 0.063

Worked solution: in your report after you take this paper.

Q59 · Probability and Statistics · Numerical · 2 marks

Let XX be a random variable exponentially distributed with parameter λ>0\lambda > 0. The probability density function of XX is given by:

fX(x)={λe−λx,x≥00,otherwisef_X(x)= \begin{cases} \lambda e^{-\lambda x}, & x \ge 0 \\ 0, & \text{otherwise} \end{cases}

If 5E(X)=Var⁡(X)5E(X) = \operatorname{Var}(X), where E(X)E(X) and Var⁡(X)\operatorname{Var}(X) indicate the expectation and variance of XX, respectively, the value of λ\lambda is ______ (rounded off to one decimal place).

Answer (official key): 0.2

Worked solution: in your report after you take this paper.

Q60 · Probability and Statistics · Numerical · 2 marks

Consider two events TT and SS. Let Tˉ\bar T denote the complement of the event TT. The probabilities associated with different events are given as follows:

P(Tˉ)=0.6,P(S∣T)=0.3,P(S∣Tˉ)=0.6.P(\bar T) = 0.6,\qquad P(S|T) = 0.3,\qquad P(S|\bar T) = 0.6.

Then,

P(T∣S)P(T|S)

is ______ (rounded off to two decimal places).

Answer (official key): 0.25

Worked solution: in your report after you take this paper.

Q61 · Machine Learning · MSQ · 2 marks

Consider the following figures representing datasets consisting of two-dimensional features with two classes denoted by circles and squares.

Datasets for Q53

Which of the following is/are TRUE?

  • (A)
    (i) is linearly separable.
  • (B)
    (ii) is linearly separable.
  • (C)
    (iii) is linearly separable.
  • (D)
    (iv) is linearly separable.

Answer (official key): A, D

Worked solution: in your report after you take this paper.

Q62 · Database Management and Warehousing · MSQ · 2 marks

An OTT company is maintaining a large disk-based relational database of different movies with the following schema:

  • Movie(ID, CustomerRating)
  • Genre(ID, Name)
  • Movie_Genre(MovieID, GenreID)

Consider the following SQL query on the relational database above:

SELECT *
FROM Movie, Genre, Movie_Genre
WHERE 
  Movie.CustomerRating > 3.4 AND
  Genre.Name = 'Comedy' AND
  Movie_Genre.MovieID = Movie.ID AND
  Movie_Genre.GenreID = Genre.ID;

This SQL query can be sped up using which of the following indexing options?

  • (A)
    B+ tree on all the attributes.
  • (B)
    Hash index on Genre.Name and B+ tree on the remaining attributes.
  • (C)
    Hash index on Movie.CustomerRating and B+ tree on the remaining attributes.
  • (D)
    Hash index on all the attributes.

Answer (official key): A, B

Worked solution: in your report after you take this paper.

Q63 · Linear Algebra · Numerical · 2 marks

Let

u=[12345],u= \begin{bmatrix} 1\\2\\3\\4\\5 \end{bmatrix},

and let σ1,σ2,σ3,σ4,σ5\sigma_1, \sigma_2, \sigma_3, \sigma_4, \sigma_5 be the singular values of the matrix

M=uu⊤.M=uu^\top.

The value of

∑i=15σi\sum_{i=1}^{5}\sigma_i

is ______.

Answer (official key): 55

Worked solution: in your report after you take this paper.

Q64 · Probability and Statistics · Numerical · 2 marks

Let XX be a random variable uniformly distributed in the interval [1,3][1,3] and YY be a random variable uniformly distributed in the interval [2,4][2,4]. If XX and YY are independent of each other, the probability

P(X≥Y)P(X \ge Y)

is ______ (rounded off to three decimal places).

Answer (official key): 0.125

Worked solution: in your report after you take this paper.

Q65 · Probability and Statistics · Numerical · 2 marks

Consider a joint probability density function of two random variables XX and YY

fX,Y(x,y)={2xy,0<x<2,  0<y<x0,otherwisef_{X,Y}(x,y)= \begin{cases} 2xy, & 0 < x < 2,\; 0 < y < x \\ 0, & \text{otherwise} \end{cases}

Then,

E[Y∣X=1.5]E[Y \mid X = 1.5]

is ______.

Answer (official key): 1

Worked solution: in your report after you take this paper.