GATE DA 2025

65 questions · Previous year paper

The GATE 2025 Data Science and Artificial Intelligence paper: 65 questions for 100 marks in 180 minutes, with General Aptitude (15 marks) and the technical section (85 marks). Answers follow the official final answer key; every question has a short explanation.

Take it as a timed test: ₹49

Data Science and Artificial Intelligence

Question 11

MCQ · 1 mark · −0.33

Suppose \(X\) and \(Y\) are random variables. The conditional expectation of \(X\) given \(Y\) is denoted by \(E[X|Y]\). Then \(E[E[X|Y]]\) equals

Options for Question 11

Explanation

Answer: (C)

\(E[X|Y]\) is itself a random variable: a function of \(Y\) that gives the average of \(X\) for each value \(Y\) can take. Averaging it over the distribution of \(Y\) recovers the overall average of \(X\). For discrete variables,

\(E[E[X|Y]] = \sum_{y} E[X|Y = y]\,P(Y = y) = \sum_{y}\sum_{x} x\,P(X = x, Y = y) = \sum_{x} x\,P(X = x) = E[X]\).

This is the law of total expectation (the tower property). Option A is still random, not a fixed number, and B and D fail in general: if \(Y\) is independent of \(X\), then \(E[X|Y] = E[X]\), so the result is \(E[X]\) whatever \(E[Y]\) is.

Answer: C

Question 12

MCQ · 1 mark · −0.33

The number of additions and multiplications involved in performing Gaussian elimination on any \(n \times n\) upper triangular matrix is of the order

Options for Question 12

Explanation

Answer: (B)

Gaussian elimination first creates zeros below the diagonal. For a full matrix this costs about \(\frac{2}{3}n^{3}\) additions and multiplications, the source of the \(O(n^{3})\) option. An upper triangular matrix already has those zeros, so this phase has nothing to do, and only back substitution remains:

\(x_{i} = \dfrac{1}{a_{ii}}\Big(b_{i} - \sum_{j \gt i} a_{ij}x_{j}\Big)\) for \(i = n, n - 1, \dots, 1\).

Row \(i\) needs \(n - i\) multiplications and \(n - i\) additions, so the total is \(\frac{n(n-1)}{2}\) of each: \(O(n^{2})\). \(O(n)\) is too small, because each of the roughly \(\frac{n^{2}}{2}\) entries above the diagonal is used once.

Answer: B

Question 13

MCQ · 1 mark · −0.33

The sum of the elements in each row of \(A \in \mathbb{R}^{n \times n}\) is 1. If \(B = A^{3} - 2A^{2} + A\), which one of the following statements is correct (for \(x \in \mathbb{R}^{n}\))?

Options for Question 13

Explanation

Answer: (C)

Let \(e = (1, 1, \dots, 1)^{T}\). Each row of \(A\) sums to 1, so \(Ae = e\); then \(A^{2}e = e\) and \(A^{3}e = e\) as well. Hence

\[Be = A^{3}e - 2A^{2}e + Ae = e - 2e + e = 0.\]

(Equivalently, \(B = A(A - I)^{2}\) and \((A - I)e = 0\).) So \(Bx = 0\) has the non-zero solution \(e\), and every multiple \(ce\) solves it too: infinitely many solutions.

  • A fails: \(x = 0\) always solves \(Bx = 0\).
  • B is impossible: the solutions form a subspace, so there is exactly one solution or infinitely many.
  • D fails: \(e \ne 0\) is a second solution.

Answer: C

Question 14

MCQ · 1 mark · −0.33

Let \(f(x) = \dfrac{e^{x} - e^{-x}}{2}\), \(x \in \mathbb{R}\). Let \(f^{(k)}(a)\) denote the \(k^{th}\) derivative of \(f\) evaluated at \(a\). What is the value of \(f^{(10)}(0)\)? (Note: ! denotes factorial)

Options for Question 14

Explanation

Answer: (A)

Differentiating \(f\) once gives \(f'(x) = \frac{e^{x} + e^{-x}}{2}\), and differentiating again brings back \(f''(x) = \frac{e^{x} - e^{-x}}{2} = f(x)\). So every even-order derivative equals \(f\) itself: \(f^{(10)}(x) = f(x)\), and \(f^{(10)}(0) = \frac{1 - 1}{2} = 0\).

Another view: \(f\) (the hyperbolic sine) is an odd function, so its Maclaurin series \(x + \frac{x^{3}}{3!} + \frac{x^{5}}{5!} + \cdots\) has only odd powers. The coefficient of \(x^{10}\), which equals \(\frac{f^{(10)}(0)}{10!}\), is therefore 0. Options C and D look like series coefficients rather than derivatives.

Answer: A

Question 15

MCQ · 1 mark · −0.33

Let \(p\) and \(q\) be any two propositions. Consider the following propositional statements.
\(S_{1} : p \to q\), \(S_{2} : \neg p \wedge q\), \(S_{3} : \neg p \vee q\), \(S_{4} : \neg p \vee \neg q\),
where \(\wedge\) denotes conjunction (AND operation), \(\vee\) denotes disjunction (OR operation), and \(\neg\) denotes negation (NOT operation). Which one of the following options is correct? (Note: \(\equiv\) denotes logical equivalence)

Options for Question 15

Explanation

Answer: (A)

\(p \to q\) is false only when \(p\) is true and \(q\) is false, and \(\neg p \vee q\) is false in exactly the same case, so \(S_{1} \equiv S_{3}\).

Every other pair differs on at least one row of the truth table:

  • \(S_{2}\) and \(S_{3}\): with \(p\) and \(q\) both true, \(S_{2}\) is false but \(S_{3}\) is true.
  • \(S_{2}\) and \(S_{4}\): with both false, \(S_{2}\) is false but \(S_{4}\) is true.
  • \(S_{1}\) and \(S_{4}\): with both true, \(S_{1}\) is true but \(S_{4}\) is false.

Answer: A

Question 16

MCQ · 1 mark · −0.33

If a relational decomposition is not dependency-preserving, which one of the following relational operators will be executed more frequently in order to maintain the dependencies?

Options for Question 16

Explanation

Answer: (C)

A functional dependency is cheap to enforce when all its attributes sit in one relation of the decomposition: each insert or update is checked against that relation alone. In a decomposition that is not dependency-preserving, some dependency \(X \to Y\) cannot be derived from the dependencies holding within the individual relations, because its attributes are spread over several of them. To check it after every change, those relations must first be joined to bring \(X\) and \(Y\) back together, so joins are executed far more often. Selection, projection and set union cannot reunite attributes stored in different relations.

Answer: C

Question 17

MCQ · 1 mark · −0.33

Consider the following three relations:

Car (model, year, serial, color)
Make (maker, model)
Own (owner, serial)

A tuple in Car represents a specific car of a given model, made in a given year, with a serial number and a color. A tuple in Make specifies that a maker company makes cars of a certain model. A tuple in Own specifies that an owner owns the car with a given serial number. Keys are underlined; (owner, serial) together form key for Own. (\(\bowtie\) denotes natural join)

\[\pi_{\texttt{owner}}(\texttt{Own} \bowtie (\sigma_{\texttt{color}=\text{“}\mathit{red}\text{”}}(\texttt{Car} \bowtie (\sigma_{\texttt{maker}=\text{“}\mathit{ABC}\text{”}}\texttt{Make}))))\]

Which one of the following options describes what the above expression computes?

Options for Question 17

Explanation

Answer: (C)

Evaluate the expression from the innermost part outwards.

  1. \(\sigma_{\texttt{maker}=\text{“}\mathit{ABC}\text{”}}\texttt{Make}\) keeps the models that ABC makes.
  2. Joining with Car (on model) keeps only cars of those models, and \(\sigma_{\texttt{color}=\text{“}\mathit{red}\text{”}}\) then keeps the red ones. Both conditions hold for the same car.
  3. Joining with Own (on serial) pairs each such car with its owners, and \(\pi_{\texttt{owner}}\) keeps only the owners.

The result is every owner of a red car made by ABC. Option A would need a union of separate selections, B needs a count that the expression never takes, and D describes cars although the projection outputs owners.

Answer: C

Question 18

MCQ · 1 mark · −0.33

Consider a hash table of size 10 with indices \(\{0, 1, \ldots, 9\}\), with the hash function

\[h(x) = 3x \pmod{10},\]

where linear probing is used to handle collisions. The hash table is initially empty and then the following sequence of keys is inserted into the hash table: \(1, 4, 5, 6, 14, 15\). The indices where the keys 14 and 15 are stored are, respectively

Options for Question 18

Explanation

Answer: (D)

Compute the home slot \(h(x) = 3x \bmod 10\) of each key in order, moving to the next index whenever a slot is taken.

  • \(h(1) = 3\), \(h(4) = 12 \bmod 10 = 2\), \(h(5) = 15 \bmod 10 = 5\) and \(h(6) = 18 \bmod 10 = 8\). All four slots are free.
  • \(h(14) = 42 \bmod 10 = 2\). Slot 2 holds 4 and slot 3 holds 1, so 14 goes to slot 4.
  • \(h(15) = 45 \bmod 10 = 5\). Slot 5 holds 5, so 15 goes to slot 6.

Option A lists the home slots 2 and 5, which were already occupied when 14 and 15 arrived.

Answer: D

Question 19

MCQ · 1 mark · −0.33

Let \(X\) be a continuous random variable whose cumulative distribution function (CDF) \(F_{X}(x)\), for some \(t\), is given as follows:

\[F_{X}(x) = \begin{cases} 0 & x \leq t \\ \dfrac{x - t}{4 - t} & t \leq x \leq 4 \\ 1 & x \geq 4 \end{cases}\]

If the median of \(X\) is 3, then what is the value of \(t\)?

Options for Question 19

Explanation

Answer: (A)

The median \(m\) is the point where the CDF reaches one half, \(F_{X}(m) = \frac{1}{2}\). Since 3 lies in the middle piece (\(t \leq 3 \leq 4\)),

\[\frac{3 - t}{4 - t} = \frac{1}{2} \;\Rightarrow\; 6 - 2t = 4 - t \;\Rightarrow\; t = 2.\]

Check: with \(t = 2\), \(X\) is uniform on \([2, 4]\), whose midpoint is 3. The other options fail; for example, \(t = 0\) gives \(F_{X}(3) = \frac{3}{4}\), so the median would be 2 instead.

Answer: A

Question 20

MCQ · 1 mark · −0.33

Let \(X = aZ + b\), where \(Z\) is a standard normal random variable, and \(a\), \(b\) are two unknown constants. It is given that

\[E[X] = 1, \quad E[(X - E[X])Z] = -2, \quad E[(X - E[X])^{2}] = 4,\]

where \(E[X]\) denotes the expectation of random variable \(X\). The values of \(a, b\) are:

Options for Question 20

Explanation

Answer: (A)

Use \(E[Z] = 0\) and \(E[Z^{2}] = \operatorname{Var}(Z) = 1\).

  • \(E[X] = aE[Z] + b = b\), so \(b = 1\).
  • \(X - E[X] = aZ\), so \(E[(X - E[X])Z] = aE[Z^{2}] = a\), which gives \(a = -2\).
  • Check: \(E[(X - E[X])^{2}] = a^{2}E[Z^{2}] = 4\) holds. This condition alone cannot fix the sign of \(a\); the second one does.

Option C has the right \(a\) but the wrong mean, while B and D fail the condition \(E[(X - E[X])Z] = -2\).

Answer: A

Questions 11 to 20 of 65