GATE · Data Science & Artificial Intelligence · 2025 Set 1Practice Mode
Score:0/100(0 attempted)

General Aptitude

Q1General Aptitude · 1 mark · MCQ

Courage : Bravery :: Yearning : ______ ?. Select the most appropriate option to complete the analogy.

Q2General Aptitude · 1 mark · MCQ

We _______ tennis in the lawn when it suddenly started to rain. Select the most appropriate option to complete the above sentence.

Q3General Aptitude · 1 mark · MCQ

A 4 × 4 digital image has pixel intensities (𝑈) as shown in the figure. The number of pixels with 𝑈≤4 is:

Question 3
Q4General Aptitude · 1 mark · MCQ

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?

Question 4
Q5General Aptitude · 1 mark · MCQ

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

Q6General Aptitude · 2 marks · MCQ

Column-I has statements made by Shanthala and Column-II has responses given by Kanishk. Identify the option that has the correct match between Column-I and Column-II.

Question 6
Q7General Aptitude · 2 marks · MCQ

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?

Q8General Aptitude · 2 marks · MCQ

A regular dodecagon (12-sided regular polygon) is inscribed in a circle of radius r cm as shown in the figure. The side of the dodecagon is d cm. All the triangles (numbered 1 to 12) in the figure are used to form squares of side r 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

Question 8
Q9General Aptitude · 2 marks · MCQ

If a real variable xx satisfies 3x2=27×9x3^{x^2} = 27 \times 9^x, then the value of 2x2(2x)2\frac{2^{x^2}}{(2^x)^2} is?

Q10General Aptitude · 2 marks · MCQ

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

Question 10

Data Science & Artificial Intelligence

Q11Data Science & Artificial Intelligence · 1 mark · MCQ

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

Q12Data Science & Artificial Intelligence · 1 mark · MCQ

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

Q13Data Science & Artificial Intelligence · 1 mark · MCQ

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

Q14Data Science & Artificial Intelligence · 1 mark · MCQ

Let f(x)=exex2f(x) = \frac{e^x - e^{-x}}{2}, xRx \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)?

Q15Data Science & Artificial Intelligence · 1 mark · MCQ

Let p and q be any two propositions. Consider the following propositional statements: S1: pqp \to q, S2: ¬pq\lnot p \land q, S3: ¬pq\lnot p \lor q, S4: ¬p¬q\lnot p \lor \lnot q, where \land denotes conjunction (AND operation), \lor denotes disjunction (OR operation), and ¬\lnot denotes negation (NOT operation). Which one of the following options is correct? (Note: \equiv denotes logical equivalence)

Q16Data Science & Artificial Intelligence · 1 mark · MCQ

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?

Q17Data Science & Artificial Intelligence · 1 mark · MCQ
Question 17
Q18Data Science & Artificial Intelligence · 1 mark · MCQ

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

Q19Data Science & Artificial Intelligence · 1 mark · MCQ

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)={0xtxt4ttx41x4F_X(x) = \begin{cases} 0 & x \leq t \\ \frac{x - t}{4 - t} & t \leq x \leq 4 \\ 1 & x \geq 4 \end{cases}. If the median of XX is 3, then what is the value of tt?

Q20Data Science & Artificial Intelligence · 1 mark · MCQ

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]=1E[X] = 1, E[(XE[X])Z]=2E[(X-E[X])Z] = -2, E[(XE[X])2]=4E[(X -E[X])^2] = 4,
where E[X]E[X] denotes the expectation of random variable XX. The values of a,ba, b are

Q21Data Science & Artificial Intelligence · 1 mark · MCQ

It is given that P(X2)=0.25P(X \geq 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?

Q22Data Science & Artificial Intelligence · 1 mark · MCQ

Consider designing a linear classifier y=sign(f(x;w,b))y = \mathrm{sign}(f(x; w, b)), where f(x;w,b)=wTx+bf(x; w, b) = w^T 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)\}, with xiRdx_i \in \mathbb{R}^d and 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+ynxnw_{\text{new}} = w_{\text{old}} + y_n x_n, bnew=bold+ynb_{\text{new}} = b_{\text{old}} + y_n
whenever sign(f(xn;wold,bold))yn\mathrm{sign}(f(x_n; w_{\text{old}}, b_{\text{old}})) \neq 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) with f(xn;wold,bold)<0f(x_n; w_{\text{old}}, b_{\text{old}}) < 0. Then

Q23Data Science & Artificial Intelligence · 1 mark · MCQ

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]?

Q24Data Science & Artificial Intelligence · 1 mark · MSQ

Consider two functions f:RRf : \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.

Q25Data Science & Artificial Intelligence · 1 mark · MSQ

Which of the following statements is/are correct?

Q26Data Science & Artificial Intelligence · 1 mark · MSQ

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

Q27Data Science & Artificial Intelligence · 1 mark · MCQ

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

Q28Data Science & Artificial Intelligence · 1 mark · MSQ

Let A=InxxTA = I_n - xx^T, where InI_n is the n×nn \times n identity matrix and xRnx \in \mathbb{R}^n, xTx=1x^T x = 1. Which of the following options is/are correct?

Q29Data Science & Artificial Intelligence · 1 mark · MSQ

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.

Q30Data Science & Artificial Intelligence · 1 mark · MSQ

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: D(C1,C2)=maxxC1,yC2D(x,y)D(C_1, C_2) = \max_{x \in C_1, y \in C_2} D(x, y),
DIS-2: D(C1,C2)=minxC1,yC2D(x,y)D(C_1, C_2) = \min_{x \in C_1, y \in C_2} D(x, y).
Which of the following statements is/are correct?

Q31Data Science & Artificial Intelligence · 1 mark · NAT

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\frac{1}{2}, Box-2 is 16\frac{1}{6}, and Box-3 is 13\frac{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)

Q32Data Science & Artificial Intelligence · 1 mark · NAT

limt+(t2+tt)=\lim_{t\to+\infty} \left(\sqrt{t^2 + t} - t\right) = ______. (Round off to one decimal place)

Q33Data Science & Artificial Intelligence · 1 mark · NAT

On a relation named Loan of a bank: 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)

Question 33
Q34Data Science & Artificial Intelligence · 1 mark · NAT

Given data {(-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)

Q35Data Science & Artificial Intelligence · 1 mark · NAT

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(xy1)=34P(x|y_1) = \frac{3}{4} and P(xy2)=14P(x|y_2) = \frac{1}{4} for a specific feature vector xx. The probability of misclassifying xx is ______. (Round off to two decimal places)

Q36Data Science & Artificial Intelligence · 2 marks · MCQ

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

Q37Data Science & Artificial Intelligence · 2 marks · MCQ

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

Q38Data Science & Artificial Intelligence · 2 marks · MCQ

Let {x1,x2,...,xn}\{x_1, x_2, ..., x_n\} be a set of linearly independent vectors in Rn\mathbb{R}^n. Let the (i,j)(i, j)-th element of matrix ARn×nA \in \mathbb{R}^{n \times n} be given by Aij=xiTxjA_{ij} = x_i^T x_j, 1i,jn1 \leq i, j \leq n. Which one of the following statements is correct?

Q39Data Science & Artificial Intelligence · 2 marks · MCQ

Consider the cumulative distribution function (CDF) of a random variable XX: FX(x)={0x<114(x+1)21x11x1F_X(x) = \begin{cases} 0 & x < -1 \\ \frac{1}{4}(x+1)^2 & -1 \leq x \leq 1 \\ 1 & x \geq 1 \end{cases}. The value of P(X20.25)P(X^2 \leq 0.25) is

Q40Data Science & Artificial Intelligence · 2 marks · MCQ

A random variable XX is said to be distributed as Bernoulli(θ)\text{Bernoulli}(\theta), denoted by XBernoulli(θ)X \sim \text{Bernoulli}(\theta),
if P(X=1)=θP(X = 1) = \theta and P(X=0)=1θP(X = 0) = 1 - \theta
for 0<θ<10 < \theta < 1. Let Y=i=1300XiY = \sum_{i=1}^{300} X_i, where XiBernoulli(θ)X_i \sim \text{Bernoulli}(\theta) for i=1,2,,300i = 1, 2, \ldots, 300 are independent and identically distributed random variables with θ=0.25\theta = 0.25. The value of P(60Y90)P(60 \leq Y \leq 90), after approximation through the Central Limit Theorem, is given by. Recall that ϕ(x)=12πxet2/2dt\phi(x) = \frac{1}{\sqrt{2\pi}} \int_{-\infty}^x e^{-t^2/2} \, dt.

Q41Data Science & Artificial Intelligence · 2 marks · MCQ

For xRx \in \mathbb{R}, the floor function is denoted by f(x)=xf(x) = \lfloor x \rfloor and defined as follows: x=k\lfloor x \rfloor = k, where kx<k+1k \leq x < k + 1, where kk is an integer. Let Y=XY = \lfloor X \rfloor, where XX is an exponentially distributed random variable with mean 1ln10\frac{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(1q)P(Y = \ell) = q^\ell(1 - q). The value of qq is

Q42Data Science & Artificial Intelligence · 2 marks · MCQ

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;
output yy;
RR denotes the ReLU function, R(x)=max{0,x}R(x) = \max\{0, x\}. Given u=2,v=3,a=1,b=1,c=1,d=1,e=4,f=1u = 2, v = 3, a = 1, b = 1, c = 1, d = 1, e = 4, f = -1, which one of the following is correct?

Question 42
Q43Data Science & Artificial Intelligence · 2 marks · MCQ

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?

Question 43
Q44Data Science & Artificial Intelligence · 2 marks · MCQ

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?

Question 44
Q45Data Science & Artificial Intelligence · 2 marks · MCQ

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

Q46Data Science & Artificial Intelligence · 2 marks · MCQ

Consider a fact table in an OLAP application: Facts(D1,D2,val)\mathbf{Facts}(D_1, D_2, \text{val}), where D1D_1 and D2D_2 are its dimension attributes and val\text{val} is a dependent attribute. Suppose attribute D1D_1 takes 3 values and D2D_2 takes 2 values, and all combinations of these values are present in the table Facts\mathbf{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)\texttt{SELECT } D_1, D_2, \texttt{SUM(val) FROM Facts GROUP BY CUBE}(D_1, D_2)

Q47Data Science & Artificial Intelligence · 2 marks · MCQ

Consider the following Python code snippet. When the below program is executed, at the end, which of the following sets contains "this"?

Question 47
Q48Data Science & Artificial Intelligence · 2 marks · MSQ

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

Q49Data Science & Artificial Intelligence · 2 marks · MSQ

Consider the function f(x)=x33+7x22+10x+1332f(x) = \frac{x^3}{3} + \frac{7x^2}{2} + 10x + \frac{133}{2}, x[8,0]x \in [-8, 0]. Which of the following statements is/are correct?

Q50Data Science & Artificial Intelligence · 2 marks · MSQ

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=x1x1T+...+x5x5TA = x_1 x_1^T + ... + x_5 x_5^T. Which of the following statements is/are correct?

Q51Data Science & Artificial Intelligence · 2 marks · MSQ

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

Q52Data Science & Artificial Intelligence · 2 marks · MSQ

An n×nn \times n matrix AA with real entries satisfies the property Ax2=x2\|Ax\|^2 = \|x\|^2, for all xRnx \in \mathbb{R}^n, where \|\cdot\| denotes the Euclidean norm. Which of the following statements is/are ALWAYS correct?

Q53Data Science & Artificial Intelligence · 2 marks · MSQ

Consider designing a linear binary classifier f(x)=sign(wTx+b)f(x) = \mathrm{sign}(w^T x + b), xR2x \in \mathbb{R}^2, on the following training data: Class1:\mathbf{Class-1:} {[20],[02],[22]}\{ \begin{bmatrix} 2 \\ 0 \end{bmatrix}, \begin{bmatrix} 0 \\ 2 \end{bmatrix}, \begin{bmatrix} 2 \\ 2 \end{bmatrix} \}; Class2:\mathbf{Class-2:} {[00]}\{ \begin{bmatrix} 0 \\ 0 \end{bmatrix} \}. The hard-margin support vector machine (SVM) formulation is solved to obtain ww and bb. Which of the following options is/are correct?

Q54Data Science & Artificial Intelligence · 2 marks · MSQ

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^=1ni=1nXi\hat{p} = \frac{1}{n} \sum_{i=1}^{n} X_i where nn is the total number of independent coin tosses. Which of the following statements is/are correct?

Q55Data Science & Artificial Intelligence · 2 marks · MSQ

Consider a two-class problem in Rd\mathbb{R}^d with class labels red and green. Let μred\mu_{red} and μgreen\mu_{green} be the means of the two classes. Given test sample xRdx \in \mathbb{R}^d, a classifier calculates the squared Euclidean distance denoted by 2\|\cdot\|^2 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)=μredx2μgreenx2f(x) = \|\mu_{red} - x\|^2 - \|\mu_{green} - x\|^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?

Q56Data Science & Artificial Intelligence · 2 marks · MSQ

Consider the following two relations, named Customer and Person, in a database. Which of the following statements is/are correct?

Question 56
Q57Data Science & Artificial Intelligence · 2 marks · MSQ

Consider a database relation RR with attributes ABCDEFGABCDEFG, and having the following functional dependencies: ABCEFA \to BCEF, EDGE \to DG, BCABC \to A. Which of the following statements is/are correct?

Q58Data Science & Artificial Intelligence · 2 marks · MSQ

Let GG be a simple, unweighted, and undirected graph. A subset of the vertices and edges of GG are shown below. It is given that: abcda \to b \to c \to d is a shortest path between aa and dd; efghe \to f \to g \to h is a shortest path between ee and hh; afcha \to f \to c \to h is a shortest path between aa and hh. Which of the following is/are NOT the edges of GG?

Question 58
Q59Data Science & Artificial Intelligence · 2 marks · NAT

Let f:RRf : \mathbb{R} \to \mathbb{R} be such that f(x)f(y)(xy)2|f(x) - f(y)| \leq (x - y)^2 for all x,yRx, y \in \mathbb{R}. Then f(1)f(0)=f(1) - f(0) = (Answer in integer).

Q60Data Science & Artificial Intelligence · 2 marks · NAT

Let D={x(1),,x(n)}D = \{x^{(1)}, \dots, 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=1002i\lambda_i = 100^{2-i}, 1i1001 \leq i \leq 100. Let uR100u \in \mathbb{R}^{100} be the direction of maximum variance with uTu=1{u^T}u = 1. The value of 1ni=1n(uTx(i))2\frac{1}{n} \sum_{i=1}^{n} (u^T x^{(i)})^2 = ________ (Answer in integer).

Q61Data Science & Artificial Intelligence · 2 marks · NAT

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)

Q62Data Science & Artificial Intelligence · 2 marks · NAT

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

Question 62
Q63Data Science & Artificial Intelligence · 2 marks · NAT

Consider the following Python code snippet. The value printed by the code snippet is ______.

Question 63
Q64Data Science & Artificial Intelligence · 2 marks · NAT

Consider the following pseudocode. The value of sum output by a program executing the above pseudocode is ______.

Question 64
Q65Data Science & Artificial Intelligence · 2 marks · NAT

Consider a directed graph G=(V,E)G = (V, E), where V={0,1,2,...,100}V = \{0, 1, 2, ..., 100\} and E={(i,j):0<ji2,for all i,jV}E = \{(i, j): 0 < j - i \leq 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 ______.