GATE 2025 DA

All 65 questions of GATE 2025 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

In the given figure, the numbers associated with the rectangle, triangle, and ellipse are 1, 2, and 3, respectively. Which one among the given options is the most appropriate combination of P, Q, and R?

Figure for GATE 2025 DA question 1 (Analytical Aptitude)

  • (A)
    P = 6; Q = 5; R = 3
  • (B)
    P = 5; Q = 6; R = 3
  • (C)
    P = 3; Q = 6; R = 6
  • (D)
    P = 5; Q = 3; R = 6

Answer (official key): A

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

Q2 · General Aptitude · MCQ · 1 mark

Courage : Bravery :: Yearning : __________

Select the most appropriate option to complete the analogy.

  • (A)
    Longing
  • (B)
    Yelling
  • (C)
    Yawning
  • (D)
    Glaring

Answer (official key): A

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

Q3 · General Aptitude · MCQ · 1 mark

A 4 × 4 digital image has pixel intensities (U)(U) as shown below. The number of pixels with U≤4U \le 4 is:

0102
4733
5544
6732
  • (A)
    3
  • (B)
    8
  • (C)
    11
  • (D)
    9

Answer (official key): C

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

Q4 · General Aptitude · MCQ · 1 mark

We __________ tennis in the lawn when it suddenly started to rain.

Select the most appropriate option to complete the above sentence.

  • (A)
    have been playing
  • (B)
    had been playing
  • (C)
    would have been playing
  • (D)
    could be playing

Answer (official key): B

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

Q5 · General Aptitude · MCQ · 1 mark

A rectangle has a length LL and a width WW, where L>WL > W. If the width, WW, is increased by 10%, which one of the following statements is correct for all values of LL and WW?

  • (A)
    Perimeter increases by 10%.
  • (B)
    Length of the diagonals increases by 10%.
  • (C)
    Area increases by 10%.
  • (D)
    The rectangle becomes a square.

Answer (official key): C

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

Q6 · General Aptitude · MCQ · 2 marks

If a real variable xx satisfies

3x2=27×9x,3^{x^2} = 27 \times 9^x,

then the value of

2x2(2x)2\frac{2^{x^2}}{(2^x)^2}

is:

  • (A)
    2−12^{-1}
  • (B)
    202^0
  • (C)
    232^3
  • (D)
    2152^{15}

Answer (official key): C

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

Q7 · General Aptitude · MCQ · 2 marks

Weight of a person can be expressed as a function of their age. The function usually varies from person to person. Suppose this function is identical for two brothers, and it monotonically increases till the age of 50 years and then it monotonically decreases. Let a1a_1 and a2a_2 (in years) denote the ages of the brothers and a1<a2a_1 < a_2.

Which one of the following statements is correct about their age on the day when they attain the same weight?

  • (A)
    a1<a2<50a_1 < a_2 < 50
  • (B)
    a1<50<a2a_1 < 50 < a_2
  • (C)
    50<a1<a250 < a_1 < a_2
  • (D)
    Either a1=50a_1 = 50 or a2=50a_2 = 50

Answer (official key): B

Read the worked solution

Q8 · General Aptitude · MCQ · 2 marks

A regular dodecagon (12-sided regular polygon) is inscribed in a circle of radius rr cm as shown in the figure. The side of the dodecagon is dd cm. All the triangles (numbered 1 to 12) in the figure are used to form squares of side rr cm and each numbered triangle is used only once to form a square.

The number of squares that can be formed and the number of triangles required to form each square, respectively, are:

Note: The figure shown is representative.

Figure for GATE 2025 DA question 8 (Quantitative Aptitude)

  • (A)
    3; 4
  • (B)
    4; 3
  • (C)
    3; 3
  • (D)
    3; 2

Answer (official key): A

Read the worked solution

Q9 · General Aptitude · MCQ · 2 marks

Column-I has statements made by Shanthala; and, Column-II has responses given by Kanishk.

Column-IColumn-II
P. This house is in a mess.1. Alright, I won’t bring it up during our conversations.
Q. I am not happy with the marks given to me.2. Well, you can easily look it up.
R. Politics is a subject I avoid talking about.3. No problem, let me clear it up for you.
S. I don’t know what this word means.4. Don’t worry, I will take it up with your teacher.

Identify the option that has the correct match between Column-I and Column-II.

  • (A)
    P – 2; Q – 3; R – 1; S – 4
  • (B)
    P – 3; Q – 4; R – 1; S – 2
  • (C)
    P – 4; Q – 1; R – 2; S – 3
  • (D)
    P – 1; Q – 2; R – 4; S – 3

Answer (official key): B

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

Q10 · General Aptitude · MCQ · 2 marks

The number of patients per shift (X)(X) consulting Dr. Gita in her past 100 shifts is shown in the figure. If the amount she earns is ₹ 1000(X−0.2)(X - 0.2), what is the average amount (in ₹) she has earned per shift in the past 100 shifts?

Note: The figure shown is representative.

Figure for GATE 2025 DA question 10 (Quantitative Aptitude)

  • (A)
    6,100
  • (B)
    6,300
  • (C)
    6,000
  • (D)
    6,500

Answer (official key): A

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

Q11 · Calculus and Optimization · MCQ · 1 mark

Let f(x)=ex−e−x2,x∈R.f(x)=\frac{e^x-e^{-x}}{2}, \quad x \in \mathbb{R}. Let f(k)(a)f^{(k)}(a) denote the kkth derivative of ff evaluated at aa. What is the value of f(10)(0)f^{(10)}(0)? (Note: !! denotes factorial)

  • (A)
    00
  • (B)
    11
  • (C)
    110!\dfrac{1}{10!}
  • (D)
    210!\dfrac{2}{10!}

Answer (official key): A

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

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

Consider a hash table of size 10 with indices {0,1,…,9}\{0,1,\ldots,9\}, with the hash function h(x)=3x(mod10),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

  • (A)
    2 and 5
  • (B)
    2 and 6
  • (C)
    4 and 5
  • (D)
    4 and 6

Answer (official key): D

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

Q13 · Database Management and Warehousing · MCQ · 1 mark

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?

  • (A)
    Selection
  • (B)
    Projection
  • (C)
    Join
  • (D)
    Set union

Answer (official key): C

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

Q14 · Linear Algebra · MCQ · 1 mark

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

  • (A)
    The equation Bx=0Bx = 0 has no solution
  • (B)
    The equation Bx=0Bx = 0 has exactly two solutions
  • (C)
    The equation Bx=0Bx = 0 has infinitely many solutions
  • (D)
    The equation Bx=0Bx = 0 has a unique solution

Answer (official key): C

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

Q15 · Artificial Intelligence · MCQ · 1 mark

Let pp and qq be any two propositions. Consider the following propositional statements.

S1:p→q,S2:¬p∧q,S3:¬p∨q,S4:¬p∨¬q,S_1: p \to q,\quad S_2: \neg p \land q,\quad S_3: \neg p \lor q,\quad S_4: \neg p \lor \neg q,

where ∧\land denotes conjunction (AND operation), ∨\lor denotes disjunction (OR operation), and ¬\neg denotes negation (NOT operation). Which one of the following options is correct? (Note: ≡\equiv denotes logical equivalence)

  • (A)
    S1≡S3S_1 \equiv S_3
  • (B)
    S2≡S3S_2 \equiv S_3
  • (C)
    S2≡S4S_2 \equiv S_4
  • (D)
    S1≡S4S_1 \equiv S_4

Answer (official key): A

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

Q16 · Probability and Statistics · MCQ · 1 mark

Let XX be a continuous random variable whose cumulative distribution function (CDF) FX(x)F_X(x), for some tt, is given as follows:

FX(x)={0,x≤tx−t4−t,t≤x≤41,x≥4F_X(x)= \begin{cases} 0, & x \le t \\ \dfrac{x-t}{4-t}, & t \le x \le 4 \\ 1, & x \ge 4 \end{cases}

If the median of XX is 3, then what is the value of tt?

  • (A)
    2
  • (B)
    1
  • (C)
    -1
  • (D)
    0

Answer (official key): A

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

Q17 · Probability and Statistics · MCQ · 1 mark

Let X=aZ+bX=aZ+b, where ZZ is a standard normal random variable, and a,ba,b are two unknown constants. It is given that E[X]=1,E[(X−E[X])Z]=−2,E[(X−E[X])2]=4,E[X]=1,\quad E[(X-E[X])Z]=-2,\quad E[(X-E[X])^2]=4, where E[X]E[X] denotes the expectation of random variable XX. The values of a,ba,b are:

  • (A)
    a=−2,  b=1a=-2,\; b=1
  • (B)
    a=2,  b=−1a=2,\; b=-1
  • (C)
    a=−2,  b=−1a=-2,\; b=-1
  • (D)
    a=1,  b=1a=1,\; b=1

Answer (official key): A

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

Q18 · Probability and Statistics · MCQ · 1 mark

Suppose XX and YY are random variables. The conditional expectation of XX given YY is denoted by E[X∣Y]E[X \mid Y]. Then E[E[X∣Y]]E[E[X \mid Y]] equals

  • (A)
    E[X∣Y]E[X \mid Y]
  • (B)
    E[X]E[Y]\dfrac{E[X]}{E[Y]}
  • (C)
    E[X]E[X]
  • (D)
    E[Y]E[Y]

Answer (official key): C

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

Q19 · Database Management and Warehousing · MCQ · 1 mark

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)(owner, serial) together form key for Own. (./)(./) denotes natural join.

πowner(Own  ./  (σcolor=“red”(Car  ./  (σmaker=“ABC”Make))))\pi_{owner}\Bigl(Own \;./\; (\sigma_{color=\text{“red”}}(Car \;./\; (\sigma_{maker=\text{“ABC”}} Make)))\Bigr)

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

  • (A)
    All owners of a red car, a car made by ABC, or a red car made by ABC
  • (B)
    All owners of more than one car, where at least one car is red and made by ABC
  • (C)
    All owners of a red car made by ABC
  • (D)
    All red cars made by ABC

Answer (official key): C

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

Q20 · Linear Algebra · MCQ · 1 mark

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

  • (A)
    O(n)O(n)
  • (B)
    O(n2)O(n^2)
  • (C)
    O(n3)O(n^3)
  • (D)
    O(n4)O(n^4)

Answer (official key): B

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

Q21 · Linear Algebra · MSQ · 1 mark

Which of the following statements is/are correct?

  • (A)
    Rn\mathbb{R}^n has a unique set of orthonormal basis vectors
  • (B)
    Rn\mathbb{R}^n does not have a unique set of orthonormal basis vectors
  • (C)
    Linearly independent vectors in Rn\mathbb{R}^n are orthonormal
  • (D)
    Orthonormal vectors in Rn\mathbb{R}^n are linearly independent

Answer (official key): B, D

Read the worked solution

Q22 · Artificial Intelligence · MSQ · 1 mark

Which of the following statements is/are correct in a Bayesian network?

  • (A)
    Variable elimination is an approximate inference algorithm
  • (B)
    Gibbs sampling is an exact inference algorithm
  • (C)
    Variable elimination is used to determine conditional probabilities
  • (D)
    Rejection sampling is an approximate inference algorithm

Answer (official key): C, D

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

Q23 · Machine Learning · MCQ · 1 mark

Consider designing a linear classifier y=sign⁡(f(x;w,b)),f(x;w,b)=w⊤x+by=\operatorname{sign}(f(x;w,b)), \qquad f(x;w,b)=w^\top x+b on a dataset D={(x1,y1),(x2,y2),…,(xN,yN)}D=\{(x_1,y_1),(x_2,y_2),\ldots,(x_N,y_N)\}, xi∈Rdx_i\in\mathbb{R}^d, yi∈{+1,−1}y_i\in\{+1,-1\}, i=1,2,…,Ni=1,2,\ldots,N. Recall that the sign function outputs +1+1 if the argument is positive, and −1-1 if the argument is non-positive. The parameters ww and bb are updated as per the following training algorithm: wnew=wold+ynxn,bnew=bold+ynw_{\text{new}}=w_{\text{old}}+y_nx_n,\qquad b_{\text{new}}=b_{\text{old}}+y_n whenever sign⁡(f(xn;wold,bold))≠yn\operatorname{sign}(f(x_n;w_{\text{old}},b_{\text{old}}))\ne y_n. In other words, whenever the classifier wrongly predicts a sample (xn,yn)(x_n,y_n) from the dataset, woldw_{\text{old}} gets updated to wneww_{\text{new}}, and likewise boldb_{\text{old}} gets updated to bnewb_{\text{new}}. Consider the case (xn,+1)(x_n,+1), f(xn;wold,bold)<0f(x_n;w_{\text{old}},b_{\text{old}})<0. Then

  • (A)
    f(xn;wnew,bnew)>f(xn;wold,bold)f(x_n;w_{\text{new}},b_{\text{new}}) > f(x_n;w_{\text{old}},b_{\text{old}})
  • (B)
    f(xn;wnew,bnew)<f(xn;wold,bold)f(x_n;w_{\text{new}},b_{\text{new}}) < f(x_n;w_{\text{old}},b_{\text{old}})
  • (C)
    f(xn;wnew,bnew)=f(xn;wold,bold)f(x_n;w_{\text{new}},b_{\text{new}}) = f(x_n;w_{\text{old}},b_{\text{old}})
  • (D)
    ynf(xn;wold,bold)>1y_nf(x_n;w_{\text{old}},b_{\text{old}}) > 1

Answer (official key): A

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

Q24 · Probability and Statistics · MCQ · 1 mark

It is given that P(X≥2)=0.25P(X \ge 2)=0.25 for an exponentially distributed random variable XX with E[X]=1λE[X]=\frac{1}{\lambda}, where E[X]E[X] denotes the expectation of XX. What is the value of λ\lambda? (ln⁡\ln denotes natural logarithm)

  • (A)
    ln⁡2\ln 2
  • (B)
    ln⁡4\ln 4
  • (C)
    ln⁡3\ln 3
  • (D)
    ln⁡0.25\ln 0.25

Answer (official key): A

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

Q25 · Machine Learning · MSQ · 1 mark

Let C1C_1 and C2C_2 be two sets of objects. Let D(x,y)D(x,y) be a measure of dissimilarity between two objects xx and yy. Consider the following definitions of dissimilarity between C1C_1 and C2C_2:

DIS-1(C1,C2)=max⁡x∈C1,  y∈C2D(x,y)\mathrm{DIS\text{-}1}(C_1,C_2)=\max_{x\in C_1,\; y\in C_2} D(x,y) DIS-2(C1,C2)=min⁡x∈C1,  y∈C2D(x,y)\mathrm{DIS\text{-}2}(C_1,C_2)=\min_{x\in C_1,\; y\in C_2} D(x,y)

Which of the following statements is/are correct?

  • (A)
    Single Linkage Clustering uses DIS-1
  • (B)
    Single Linkage Clustering uses DIS-2
  • (C)
    Complete Linkage Clustering uses DIS-2
  • (D)
    Complete Linkage Clustering uses DIS-1

Answer (official key): B, D

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

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

Consider the following Python declarations of two lists.

A = [1,2,3]
B = [4,5,6]

Which one of the following statements results in A = [1, 2, 3, 4, 5, 6]?

  • (A)
    A.extend(B)
  • (B)
    A.append(B)
  • (C)
    A.update(B)
  • (D)
    A.insert(B)

Answer (official key): A

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

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

For which of the following inputs does binary search take time O(log⁡n)O(\log n) in the worst case?

  • (A)
    An array of nn integers in any order
  • (B)
    A linked list of nn integers in any order
  • (C)
    An array of nn integers in increasing order
  • (D)
    A linked list of nn integers in increasing order

Answer (official key): C

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

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

Suppose that insertion sort is applied to the array [1, 3, 5, 7, 9, 11, x, 15, 13] and it takes exactly two swaps to sort the array. Select all possible values of xx.

  • (A)
    10
  • (B)
    12
  • (C)
    14
  • (D)
    16

Answer (official key): A, C

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

Q29 · Linear Algebra · MSQ · 1 mark

Let A=In+xx⊤A = I_n + xx^\top, where InI_n is the n×nn \times n identity matrix and x∈Rnx \in \mathbb{R}^n, x⊤x=1x^\top x = 1. Which of the following options is/are correct?

  • (A)
    Rank of AA is nn
  • (B)
    AA is invertible
  • (C)
    00 is an eigenvalue of AA
  • (D)
    A−1A^{-1} has a negative eigenvalue

Answer (official key): A, B

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

Q30 · Calculus and Optimization · MSQ · 1 mark

Consider two functions f:R→Rf:\mathbb{R}\to\mathbb{R} and g:R→(1,∞)g:\mathbb{R}\to(1,\infty). Both functions are differentiable at a point cc. Which of the following functions is/are ALWAYS differentiable at cc? The symbol ⋅\cdot denotes product and the symbol ∘\circ denotes composition of functions.

  • (A)
    f±gf \pm g
  • (B)
    f⋅gf \cdot g
  • (C)
    fg\dfrac{f}{g}
  • (D)
    f∘g+g∘ff \circ g + g \circ f

Answer (official key): A, B, C

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

Q31 · Database Management and Warehousing · Numerical · 1 mark

On a relation named Loan of a bank:

loan_numberbranch_nameamount
L11Banjara Hills90000
L14Kondapur50000
L15SR Nagar40000
L22SR Nagar25000
L23Balanagar80000
L25Kondapur70000
L19SR Nagar65000

the following SQL query is executed.

SELECT L1.loan_number
FROM Loan L1
WHERE L1.amount > (
  SELECT MAX(L2.amount)
  FROM Loan L2
  WHERE L2.branch_name = 'SR Nagar'
);

The number of rows returned by the query is __________.

(Answer in integer)

Answer (official key): 3

Read the worked solution

Q32 · Calculus and Optimization · Numerical · 1 mark

lim⁡t→+∞(t2+t−t)=\lim_{t \to +\infty}\left(\sqrt{t^2+t}-t\right)=

(Round off to one decimal place)

Answer (official key): 0.5

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

Q33 · Machine Learning · Numerical · 1 mark

Given data {(−1,1),(2,−5),(3,5)}\{(-1,1),(2,-5),(3,5)\} of the form (x,y)(x,y), we fit a model y=wxy=wx using linear least-squares regression. The optimal value of ww is __________.

(Round off to three decimal places)

Answer (official key): 0.285 to 0.287

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

Q34 · Probability and Statistics · Numerical · 1 mark

There are three boxes containing white balls and black balls.

  • Box-1 contains 2 black and 1 white ball.
  • Box-2 contains 1 black and 2 white balls.
  • Box-3 contains 3 black and 3 white balls.

In a random experiment, one of these boxes is selected, with probabilities of 12\frac{1}{2} for Box-1, 16\frac{1}{6} for Box-2, and 13\frac{1}{3} for Box-3. A ball is drawn at random from the selected box. Given that the ball drawn is white, the probability that it is drawn from Box-2 is __________.

(Round off to two decimal places)

Answer (official key): 0.25

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

Q35 · Machine Learning · Numerical · 1 mark

The naive Bayes classifier is used to solve a two-class classification problem with class labels y1,y2y_1, y_2. Suppose the prior probabilities are

P(y1)=13,P(y2)=23.P(y_1)=\frac{1}{3}, \qquad P(y_2)=\frac{2}{3}.

Assuming a discrete feature space with

P(x∣y1)=34,P(x∣y2)=14P(x \mid y_1)=\frac{3}{4}, \qquad P(x \mid y_2)=\frac{1}{4}

for a specific feature vector xx. The probability of misclassifying xx is __________.

(Round off to two decimal places)

Answer (official key): 0.39 to 0.41

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

Q36 · Linear Algebra · MCQ · 2 marks

Let {x1,x2,…,xn}\{x_1, x_2, \ldots, x_n\} be a set of linearly independent vectors in Rn\mathbb{R}^n. Let the (i,j)(i,j)-th element of matrix A∈Rn×nA \in \mathbb{R}^{n\times n} be given by Aij=xi⊤xjA_{ij}=x_i^\top x_j, 1≤i,j≤n1 \le i,j \le n. Which one of the following statements is correct?

  • (A)
    AA is invertible
  • (B)
    0 is a singular value of AA
  • (C)
    Determinant of AA is 0
  • (D)
    z⊤Az=0z^\top A z = 0 for some non-zero z∈Rnz \in \mathbb{R}^n

Answer (official key): A

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

Q37 · Artificial Intelligence · MCQ · 2 marks

Consider game trees Tree-1 and Tree-2 as shown. The first level is a MAX agent and the second level is a MIN agent. The value in the square node is the output of the utility function.

For what ranges of xx and yy, the right child of node B and the right child of node E will be pruned by alpha-beta pruning algorithm?

Game trees for Q43

  • (A)
    x∈[1,∞)x \in [1,\infty) and y∈(−∞,2]y \in (-\infty,2]
  • (B)
    x∈(−∞,2]x \in (-\infty,2] and y∈(−∞,5]y \in (-\infty,5]
  • (C)
    x∈(−∞,2]x \in (-\infty,2] and y∈[2,∞)y \in [2,\infty)
  • (D)
    x∈[1,∞)x \in [1,\infty) and y∈(−∞,5]y \in (-\infty,5]

Answer (official key): C

Read the worked solution

Q38 · Probability and Statistics · MCQ · 2 marks

Consider the cumulative distribution function (CDF) of a random variable XX:

FX(x)={0,x≤−114(x+1)2,−1≤x≤11,x≥1F_X(x)= \begin{cases} 0, & x \le -1 \\ \frac{1}{4}(x+1)^2, & -1 \le x \le 1 \\ 1, & x \ge 1 \end{cases}

The value of P(X2≤0.25)P(X^2 \le 0.25) is

  • (A)
    0.625
  • (B)
    0.25
  • (C)
    0.5
  • (D)
    0.5625

Answer (official key): C

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

Q39 · Machine Learning · MCQ · 2 marks

Consider the neural network shown in the figure with inputs: u,vu, v, weights: a,b,c,d,e,fa, b, c, d, e, f, and output: yy. RR denotes the ReLU function, R(x)=max⁡(0,x)R(x)=\max(0,x).

Given u=2u=2, v=3v=3, a=1a=1, b=1b=1, c=1c=1, d=−1d=-1, e=4e=4, f=−1f=-1, which one of the following is correct?

Neural network for Q42

  • (A)
    ∂y/∂a = 8, ∂y/∂f = 0
  • (B)
    ∂y/∂a = 1, ∂y/∂f = 0
  • (C)
    ∂y/∂a = 1, ∂y/∂f = -1
  • (D)
    ∂y/∂a = 2, ∂y/∂f = -1

Answer (official key): A

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

Q40 · Linear Algebra · MCQ · 2 marks

Let A∈Rn×nA \in \mathbb{R}^{n\times n} be such that A3=AA^3=A. Which one of the following statements is ALWAYS correct?

  • (A)
    AA is invertible
  • (B)
    Determinant of AA is 0
  • (C)
    The sum of the diagonal elements of AA is 1
  • (D)
    AA and A2A^2 have the same rank

Answer (official key): D

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

Q41 · Artificial Intelligence · MCQ · 2 marks

The state graph shows the action cost along the edges and the heuristic function hh associated with each state.

Suppose A* algorithm is applied on this state graph using priority queue to store the frontier. In what sequence are the nodes expanded?

State graph for Q44

  • (A)
    S,A,E,C,B,D,G
  • (B)
    S,E,A,C,B,D,G
  • (C)
    S,A,E,B,C,D,G
  • (D)
    S,A,B,E,C,D,G

Answer (official key): C

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

Q42 · Probability and Statistics · MCQ · 2 marks

A random experiment consists of throwing 100 fair dice, each die having six faces numbered 1 to 6. An event AA represents the set of all outcomes where at least one of the dice shows a 1. Then, P(A)=P(A)=

  • (A)
    0
  • (B)
    1
  • (C)
    1−(56)1001-\left(\frac{5}{6}\right)^{100}
  • (D)
    (56)100\left(\frac{5}{6}\right)^{100}

Answer (official key): C

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

Q43 · Probability and Statistics · MCQ · 2 marks

For x∈Rx \in \mathbb{R}, the floor function is denoted by f(x)=⌊x⌋f(x)=\lfloor x \rfloor and defined as follows

⌊x⌋=k,k≤x<k+1,\lfloor x \rfloor = k,\qquad k \le x < k+1,

where kk is an integer. Let Y=⌊X⌋Y=\lfloor X \rfloor, where XX is an exponentially distributed random variable with mean 1ln⁡10\dfrac{1}{\ln 10}, where ln⁡\ln denotes natural logarithm. For any positive integer ℓ\ell, one can write the probability of the event Y=ℓY=\ell as follows

P(Y=ℓ)=qℓ(1−q)P(Y=\ell)=q^\ell (1-q)

The value of qq is

  • (A)
    0.1
  • (B)
    0.01
  • (C)
    0.5
  • (D)
    0.434

Answer (official key): A

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

Q44 · Probability and Statistics · MCQ · 2 marks

A random variable XX is said to be distributed as Bernoulli(θ\theta), denoted by X∼Bernoulli(θ)X \sim \text{Bernoulli}(\theta), if

P(X=1)=θ,P(X=0)=1−θP(X=1)=\theta,\qquad P(X=0)=1-\theta

for 0<θ<10<\theta<1. Let

Y=∑i=1300Xi,Y=\sum_{i=1}^{300} X_i,

where Xi∼Bernoulli(θ)X_i \sim \text{Bernoulli}(\theta), i=1,2,…,300i=1,2,\ldots,300 be independent and identically distributed random variables with θ=0.25\theta=0.25. The value of P(60≤Y≤90)P(60 \le Y \le 90), after approximation through Central Limit Theorem, is given by

Recall that

ϕ(x)=12π∫−∞xe−t2/2 dt\phi(x)=\frac{1}{\sqrt{2\pi}}\int_{-\infty}^{x} e^{-t^2/2}\,dt
  • (A)
    ϕ(2)−ϕ(−2)\phi(2)-\phi(-2)
  • (B)
    ϕ(1)−ϕ(−1)\phi(1)-\phi(-1)
  • (C)
    ϕ(3)−ϕ(−3)\phi(3)-\phi(-3)
  • (D)
    ϕ(90)−ϕ(60)\phi(90)-\phi(60)

Answer (official key): A

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

Q45 · Probability and Statistics · MCQ · 2 marks

Let Y=Z2Y = Z^2, Z=X−μσZ=\dfrac{X-\mu}{\sigma}, where XX is a normal random variable with mean μ\mu and variance σ2\sigma^2. The variance of YY is

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

Answer (official key): B

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

Q46 · Linear Algebra · MSQ · 2 marks

Let x1,x2,x3,x4,x5x_1, x_2, x_3, x_4, x_5 be a system of orthonormal vectors in R10\mathbb{R}^{10}. Consider the matrix

A=x1x1⊤+⋯+x5x5⊤.A=x_1x_1^\top+\cdots+x_5x_5^\top.

Which of the following statements is/are correct?

  • (A)
    Singular values of AA are also its eigenvalues
  • (B)
    Singular values of AA are either 0 or 1
  • (C)
    Determinant of AA is 1
  • (D)
    AA is invertible

Answer (official key): A, B

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

Q47 · Calculus and Optimization · MSQ · 2 marks

Let f:R→Rf:\mathbb{R}\to\mathbb{R} be a twice-differentiable function and suppose its second derivative satisfies f′′(x)>0f''(x) > 0 for all x∈Rx \in \mathbb{R}. Which of the following statements is/are ALWAYS correct?

  • (A)
    ff has a local minima
  • (B)
    There do not exist distinct x,yx,y such that f′(x)=f′(y)=0f'(x)=f'(y)=0
  • (C)
    ff has at most one global minimum
  • (D)
    ff has at most one local minimum

Answer (official key): B, C, D

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

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

Consider the following Python code snippet.

A = {"this", "that"}
B = {"that", "other"}
C = {"other", "this"}

while "other" in C:
    if "this" in A:
        A, B, C = A-B, B-C, C-A
    if "that" in B:
        A, B, C = C|A, A|B, B|C

When the above program is executed, at the end, which of the following sets contains "this"?

  • (A)
    Only A
  • (B)
    Only B
  • (C)
    Only C
  • (D)
    A, C

Answer (official key): B

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

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

Let GG be a simple, unweighted, and undirected graph. A subset of the vertices and edges of GG are shown below.

Graph for Q58

It is given that a−b−c−da-b-c-d is a shortest path between aa and dd; e−f−g−he-f-g-h is a shortest path between ee and hh; a−f−c−ha-f-c-h is a shortest path between aa and hh. Which of the following is/are NOT the edges of GG?

  • (A)
    (b,d)(b,d)
  • (B)
    (b,g)(b,g)
  • (C)
    (b,h)(b,h)
  • (D)
    (e,g)(e,g)

Answer (official key): A, C, D

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

Q50 · Database Management and Warehousing · MSQ · 2 marks

Consider the following two relations, named Customer and Person, in a database:

Person ( aadhaar CHAR(12) PRIMARY KEY, name VARCHAR(32) )

Customer ( name VARCHAR(32), email VARCHAR(32) PRIMARY KEY, phone CHAR(10), aadhaar CHAR(12), FOREIGN KEY (aadhaar) REFERENCES Person(aadhaar) )

Which of the following statements is/are correct?

  • (A)
    aadhaar is a candidate key in the Customer relation
  • (B)
    phone can be NULL in the Customer relation
  • (C)
    aadhaar is a candidate key in the Person relation
  • (D)
    aadhaar can be NULL in the Person relation

Answer (official key): B, C

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

Q51 · Calculus and Optimization · MSQ · 2 marks

Consider the function

f(x)=x33+72x2+10x+1332,x∈[−8,0].f(x)=\frac{x^3}{3}+\frac{7}{2}x^2+10x+\frac{133}{2}, \qquad x \in [-8,0].

Which of the following statements is/are correct?

  • (A)
    The maximum value of ff is attained at x=−5x=-5
  • (B)
    The minimum value of ff is attained at x=−2x=-2
  • (C)
    The maximum value of ff is 133/2133/2
  • (D)
    The minimum value of the derivative of ff is attained at x=−7/2x=-7/2

Answer (official key): C, D

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

Q52 · Machine Learning · MSQ · 2 marks

Consider a two-class problem in Rd\mathbb{R}^d with class labels red and green. Let μred\mu_{\text{red}} and μgreen\mu_{\text{green}} be the means of the two classes. Given test sample x∈Rdx \in \mathbb{R}^d, a classifier calculates the squared Euclidean distance between xx and the means of the two classes and assigns the class label that the sample xx is closest to. That is, the classifier computes

f(x)=∥μred−x∥22−∥μgreen−x∥22f(x)=\|\mu_{\text{red}}-x\|_2^2 - \|\mu_{\text{green}}-x\|_2^2

and assigns the label red to xx if f(x)<0f(x) < 0, and green otherwise. Which of the following statements is/are correct?

  • (A)
    The sample x=0x=0 is assigned the label green if ∥μred∥<∥μgreen∥\|\mu_{\text{red}}\| < \|\mu_{\text{green}}\|
  • (B)
    ff is a linear function of xx
  • (C)
    f(x)=w⊤x+bf(x)=w^\top x+b, where ww and bb are functions of the class means
  • (D)
    ff is a quadratic polynomial in xx

Answer (official key): B, C

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

Q53 · Machine Learning · MSQ · 2 marks

Consider designing a linear binary classifier

f(x)=sign⁡(w⊤x+b),x∈R2f(x)=\operatorname{sign}(w^\top x+b), \qquad x \in \mathbb{R}^2

on the following training data:

Class-1:

{(20),(02),(22)},\left\{ \begin{pmatrix}2\\0\end{pmatrix}, \begin{pmatrix}0\\2\end{pmatrix}, \begin{pmatrix}2\\2\end{pmatrix} \right\},

Class-2:

{(00)}.\left\{ \begin{pmatrix}0\\0\end{pmatrix} \right\}.

Hard-margin support vector machine (SVM) formulation is solved to obtain ww and bb. Which of the following options is/are correct?

  • (A)
    w=(44)w=\begin{pmatrix}4\\4\end{pmatrix} and b=1b=1
  • (B)
    The number of support vectors is 3
  • (C)
    The margin is 2\sqrt{2}
  • (D)
    Training accuracy is 98%

Answer (official key): B, C

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

Q54 · Probability and Statistics · MSQ · 2 marks

Consider a coin-toss experiment where the probability of head showing up is pp. In the iith coin toss, let Xi=1X_i=1 if head appears, and Xi=0X_i=0 if tail appears. Consider

p^b=1n∑i=1nXi\hat p_b = \frac1n \sum_{i=1}^n X_i

where nn is the total number of independent coin tosses. Which of the following statements is/are correct?

  • (A)
    E[p^b]=pE[\hat p_b]=p
  • (B)
    E[p^b]=pnE[\hat p_b]=\frac{p}{n}
  • (C)
    As nn increases, variance of p^b\hat p_b decreases
  • (D)
    Variance of p^b\hat p_b does not depend on nn

Answer (official key): A, C

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

Q55 · Linear Algebra · MSQ · 2 marks

An n×nn \times n matrix AA with real entries satisfies the property:

∥Ax∥2=∥x∥2,for all x∈Rn,\|Ax\|_2 = \|x\|_2, \qquad \text{for all } x \in \mathbb{R}^n,

where ∥⋅∥\|\cdot\| denotes the Euclidean norm. Which of the following statements is/are ALWAYS correct?

  • (A)
    AA must be orthogonal
  • (B)
    A=IA=I is the only solution
  • (C)
    The eigenvalues of AA are either +1+1 or −1-1
  • (D)
    AA has full rank

Answer (official key): A, D

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

Q56 · Database Management and Warehousing · MSQ · 2 marks

Consider a database relation RR with attributes ABCDEFGABCDEFG, and having the following functional dependencies:

A→BCEF,E→DG,BC→AA \to BCEF, \qquad E \to DG, \qquad BC \to A

Which of the following statements is/are correct?

  • (A)
    AA is the only candidate key of RR
  • (B)
    A,BCA, BC are the candidate keys of RR
  • (C)
    A,BC,EA, BC, E are the candidate keys of RR
  • (D)
    Relation RR is not in Boyce-Codd Normal Form (BCNF)

Answer (official key): B, D

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

Q57 · Database Management and Warehousing · MCQ · 2 marks

Consider a fact table in an OLAP application: Facts(D1, D2, val), where D1 and D2 are its dimension attributes and val is a dependent attribute. Suppose attribute D1 takes 3 values and D2 takes 2 values, and all combinations of these values are present in the table Facts. How many tuples are there in the result of the following query?

SELECT D1, D2, sum(val)
FROM Facts
GROUP BY CUBE (D1, D2);
  • (A)
    1
  • (B)
    6
  • (C)
    9
  • (D)
    12

Answer (official key): D

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

Q58 · Machine Learning · MSQ · 2 marks

Which of the following statements is/are correct about the rectified linear unit (ReLU) activation function defined as ReLU(x)=max⁡(x,0)\mathrm{ReLU}(x)=\max(x,0), where x∈Rx \in \mathbb{R}?

  • (A)
    ReLU is continuous everywhere
  • (B)
    ReLU is differentiable everywhere
  • (C)
    ReLU is not differentiable at x=0x=0
  • (D)
    ReLU(x)=ReLU(ax)\mathrm{ReLU}(x)=\mathrm{ReLU}(ax), for all a∈Ra \in \mathbb{R}

Answer (official key): A, C

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

Q59 · Probability and Statistics · Numerical · 2 marks

A bag contains 5 white balls and 10 black balls. In a random experiment, nn balls are drawn from the bag one at a time with replacement. Let SnS_n denote the total number of black balls drawn in the experiment.

The expectation of S100S_{100} denoted by E[S100]=E[S_{100}] = __________

(Round off to one decimal place)

Answer (official key): 66.6 to 66.7

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

Q60 · Programming, Data Structures and Algorithms · Numerical · 2 marks

Consider the following Python code snippet.

def f(a,b):
    if (a==0):
        return b
    if (a%2==1):
        return 2*f((a-1)/2,b)
    return b+f(a-1,b)

print(f(15,10))

The value printed by the code snippet is __________

(Answer in integer)

Answer (official key): 160

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

Q61 · Database Management and Warehousing · Numerical · 2 marks

Consider the following tables, Loan and Borrower, of a bank.

Loan

loan_numbranch_nameamount
L11Banjara Hills90000
L14Kondapur50000
L15SR Nagar40000
L22SR Nagar25000
L23Balanagar80000
L25Kondapur70000
L19SR Nagar65000

Borrower

customer_nameloan_num
AnandL11
KarteekL11
KarteekL14
AnkitaL15
GopalL19
KarteekL22
KarteekL23
SunilL23
SunilL25

Query:

πbranch_name, customer_name(Loan  ./  Borrower)÷πbranch_name(Loan)\pi_{\text{branch\_name, customer\_name}}(\text{Loan} \; ./ \; \text{Borrower}) \div \pi_{\text{branch\_name}}(\text{Loan})

where ./ denotes natural join.

The number of tuples returned by the above relational algebra query is __________

(Answer in integer)

Answer (official key): 1

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

Q62 · Programming, Data Structures and Algorithms · Numerical · 2 marks

Consider the following pseudocode.

Create empty stack S
Set x=0, flag=0, sum=0
Push x onto S
while (S is not empty){
  if (flag equals 0){
    Set x = x+1
    Push x onto S
  }
  if (x equals 8):
    Set flag=1
  if (flag equals 1){
    x = Pop(S)
    if (x is odd):
      Pop(S)
    Set sum = sum + x
  }
}
Output sum

The value of sum output by a program executing the above pseudocode is __________

(Answer in integer)

Answer (official key): 24

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

Q63 · Calculus and Optimization · Numerical · 2 marks

Let f:R→Rf : \mathbb{R} \to \mathbb{R} be such that

∣f(x)−f(y)∣≤(x−y)2|f(x)-f(y)| \le (x-y)^2

for all x,y∈Rx, y \in \mathbb{R}. Then

f(1)−f(0)=f(1)-f(0)=

(Answer in integer)

Answer (official key): 0

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

Q64 · Programming, Data Structures and Algorithms · Numerical · 2 marks

Consider a directed graph G=(V,E)G = (V, E), where

V={0,1,2,…,100}V = \{0, 1, 2, \ldots, 100\}

and

E={(i,j):0<j−i≤2, for all i,j∈V}.E = \{(i, j) : 0 < j-i \le 2,\ \text{for all } i, j \in V\}.

Suppose the adjacency list of each vertex is in decreasing order of vertex number, and depth-first search (DFS) is performed at vertex 0.

The number of vertices that will be discovered after vertex 50 is __________

(Answer in integer)

Answer (official key): 75

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

Q65 · Machine Learning · Numerical · 2 marks

Let D={x(1),…,x(n)}D = \{x^{(1)}, \ldots, x^{(n)}\} be a dataset of nn observations where each x(i)∈R100x^{(i)} \in \mathbb{R}^{100}. It is given that

∑i=1nx(i)=0.\sum_{i=1}^{n} x^{(i)} = 0.

The covariance matrix computed from DD has eigenvalues

λi=100 2−i,1≤i≤100.\lambda_i = 100^{\,2-i}, \qquad 1 \le i \le 100.

Let u∈R100u \in \mathbb{R}^{100} be the direction of maximum variance with

u⊤u=1.u^\top u = 1.

The value of

1n∑i=1n(u⊤x(i))2=\frac{1}{n}\sum_{i=1}^{n} \left(u^\top x^{(i)}\right)^2 =

(Answer in integer)

Answer (official key): 100

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