GATE 2025 Data Science and Artificial Intelligence (DA) Questions with Solutions

GATE 2025

65 questions

MCQ 35 · MSQ 18 · NAT 121-mark 30 · 2-mark 35

Questions 31–35 of 65

Q31Probability and Bayes Theorem1 markNAT
There are three boxes containing white balls and black balls.

Box-1 contains 2 black and 1 white balls.
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, where the probability of choosing Box-1 is 12\dfrac{1}{2}, Box-2 is 16\dfrac{1}{6}, and Box-3 is 13\dfrac{1}{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)

Q32Limits, Continuity and Differentiability1 markNAT
lim⁡t→+∞t2+t−t=\lim\limits_{t \to +\infty} \sqrt{t^2 + t} - t =_____ (Round off to one decimal place)

Q33SQL1 markNAT
On a relation named Loan of a bank:

Loanloan numberbranch nameamountL11Banjara Hills90000L14Kondapur50000L15SR Nagar40000L22SR Nagar25000L23Balanagar80000L25Kondapur70000L19SR Nagar65000\begin{array}{c} \textbf{Loan}\\ \begin{array}{|c|c|c|} \hline \text{loan number} & \text{branch name} & \text{amount} \\ \hline L11 & \text{Banjara Hills} & 90000 \\ \hline L14 & \text{Kondapur} & 50000 \\ \hline L15 & \text{SR Nagar} & 40000 \\ \hline L22 & \text{SR Nagar} & 25000 \\ \hline L23 & \text{Balanagar} & 80000 \\ \hline L25 & \text{Kondapur} & 70000 \\ \hline L19 & \text{SR Nagar} & 65000 \\ \hline \end{array}\end{array}

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)

Q34Regression1 markNAT
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)

Q35Classification1 markNAT
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)=13P(y_1) = \frac{1}{3} and P(y2)=23P(y_2) = \frac{2}{3}. Assuming a discrete feature space with

P(x∣y1)=34andP(x∣y2)=14P(x|y_1) = \frac{3}{4} \quad \text{and} \quad P(x|y_2) = \frac{1}{4}

for a specific feature vector xx. The probability of misclassifying xx is _______ (Round off to two decimal places)