GATE 2026 DA

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

Verbosity : Brevity :: Insolence : __________

Choose the word that best fills the blank.

  • (A)
    Innocence
  • (B)
    Respect
  • (C)
    Solace
  • (D)
    Wealth

Answer (official key): B

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

Q2 · General Aptitude · MCQ · 1 mark

Consider two distinct positive real numbers m,nm, n, with m>nm > n.

Let

x=nlog⁡10(m)andy=mlog⁡10(n).x = n^{\log_{10}(m)} \quad \text{and} \quad y = m^{\log_{10}(n)}.

The relation between xx and yy is _______.

  • (A)
    x>yx > y
  • (B)
    x<yx < y
  • (C)
    x=yx = y
  • (D)
    x=log⁡10(y)x = \log_{10}(y)

Answer (official key): C

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

Q3 · General Aptitude · MCQ · 1 mark

The four pieces of a puzzle are shown in the figure below.

Puzzle pieces for Q3

Which one of the figures labelled as P, Q, R, and S can be constructed by using each of the four pieces only once without overlaps?

Candidate figures for Q3

  • (A)
    P
  • (B)
    Q
  • (C)
    R
  • (D)
    S

Answer (official key): A

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

Q4 · General Aptitude · MCQ · 1 mark

‘If his latest movie had been a commercial success, the actor would have made enough money to sponsor his next movie.’

Based only on the above sentence, which one of the following statements is true?

  • (A)
    The actor will certainly sponsor his next movie.
  • (B)
    His latest movie was a commercial success.
  • (C)
    The actor made enough money from his latest movie.
  • (D)
    His latest movie was not commercially successful.

Answer (official key): D

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

Q5 · General Aptitude · MCQ · 1 mark

The product of the digits of a three-digit number is 70. The sum of the digits of this three-digit number is _____

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

Answer (official key): B

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

Q6 · General Aptitude · MCQ · 2 marks

‘My friend and I parted __ the door __ the cabin that I had rented __ the night.’

Choose the option with the correct sequence of words to fill the blanks.

  • (A)
    at; of; for
  • (B)
    for; at; of
  • (C)
    of; for; in
  • (D)
    in; of; for

Answer (official key): A

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

Q7 · General Aptitude · MCQ · 2 marks

P,Q,R,S,XP, Q, R, S, X, and YY are distinct single-digit whole numbers taking values from 0 to 9.

PQPQ is a two-digit number with QQ being in the units place and PP in the tens place. Similarly, RSRS is a two-digit number.

It is known that PQPQ and RSRS are consecutive numbers and

(PQ)2+(RS)2=XYP,(PQ)^2 + (RS)^2 = XYP,

with XYPXYP being a three-digit number.

The value of YY is __________

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

Answer (official key): C

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

Q8 · General Aptitude · MCQ · 2 marks

In the given figure, PP, QQ, and RR are three points on a circle of radius 10 cm with OO as its center, PQ‾=RQ‾\overline{PQ} = \overline{RQ}, and ∠PQR=45∘\angle PQR = 45^\circ. The figure is representative.

The area of the shaded region PQROPQRO is ______________ cm2^2.

Figure for GATE 2026 DA question 8 (Quantitative Aptitude)

  • (A)
    50
  • (B)
    25225\sqrt{2}
  • (C)
    50250\sqrt{2}
  • (D)
    100

Answer (official key): C

Read the worked solution

Q9 · General Aptitude · MCQ · 2 marks

Rishi and Swathi are students of Class 5. Pavan and Tanvi are students of Class 4. Rishi and Pavan are boys. Swathi and Tanvi are girls. The four students played a total of three games of chess. The games were played one after another. A player who lost a game did not participate in any more games. It was observed that:

(i) the first game was the only game where two students of the same class played against each other,
(ii) the students of Class 5 won more games than the students of Class 4, and
(iii) the boys won two games and the girls won one game.

The student who did not lose any game is __________.

  • (A)
    Pavan
  • (B)
    Rishi
  • (C)
    Swathi
  • (D)
    Tanvi

Answer (official key): D

Read the worked solution

Q10 · General Aptitude · MCQ · 2 marks

Five integers are picked from 0 to 20, with possible repetitions, such that their mean is 12, median is 18, and they have a single mode of 20.

Ignoring permutations, the number of ways to pick these five integers is _____

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

Answer (official key): B

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

Q11 · Probability and Statistics · MCQ · 1 mark

Let MM be a randomly chosen non-empty subset of

S={1,2,3,…,2026}.S = \{1,2,3,\dots,2026\}.

Which of the following is the probability that the product of all the elements of MM is even?

  • (A)
    21013(21013−1)22026\dfrac{2^{1013}(2^{1013}-1)}{2^{2026}}
  • (B)
    2101322026\dfrac{2^{1013}}{2^{2026}}
  • (C)
    21013(21013−1)22026−1\dfrac{2^{1013}(2^{1013}-1)}{2^{2026}-1}
  • (D)
    122026−1\dfrac{1}{2^{2026}-1}

Answer (official key): C

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

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

Consider the given Python program.

def append_to_lst(val, lst=[]):
    lst.append(val)
    return lst

print(append_to_lst(1))
print(append_to_lst(2))
print(append_to_lst(3, []))

Which of the following is the correct output of this program?

  • (A)
    [1]
    [2]
    [3]
    
  • (B)
    [1]
    [1, 2]
    [3]
    
  • (C)
    [1]
    [2]
    [1, 2, 3]
    
  • (D)
    [1]
    [1, 2]
    [1, 3]
    

Answer (official key): B

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

Q13 · Machine Learning · MCQ · 1 mark

For a classification problem, Principal Component Analysis (PCA) has been used to reduce the dimensionality of a feature space from 100 to 10.

Which of the following options is true about the angle θ\theta between the first and the tenth principal components?

  • (A)
    θ=0∘\theta = 0^\circ
  • (B)
    θ=90∘\theta = 90^\circ
  • (C)
    90∘<θ≤180∘90^\circ < \theta \le 180^\circ
  • (D)
    0∘<θ<90∘0^\circ < \theta < 90^\circ

Answer (official key): B

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

Q14 · Probability and Statistics · MCQ · 1 mark

Suppose that a computer program provides a non-negative and integer-valued random solution to the equation

n1+n2+n3+n4=20.n_1 + n_2 + n_3 + n_4 = 20.

Which of the following is the probability that all of n1,n2,n3,n4n_1, n_2, n_3, n_4 in the provided solution are positive?

  • (A)
    (193)(233)\dfrac{\binom{19}{3}}{\binom{23}{3}}
  • (B)
    (204)(244)\dfrac{\binom{20}{4}}{\binom{24}{4}}
  • (C)
    (203)(233)\dfrac{\binom{20}{3}}{\binom{23}{3}}
  • (D)
    (194)(244)\dfrac{\binom{19}{4}}{\binom{24}{4}}

Answer (official key): A

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

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

Consider that the quick sort algorithm is used to sort an array of nn distinct randomly ordered elements. In every call, the pivot is chosen as the first element of the current subarray.

Let T(n)T(n) denote the expected time to sort the array. Assume that the time to partition is linear in the size of the current subarray.

Which of the following recurrence relations correctly represents T(n)T(n) in this scenario?

  • (A)
    T(n)=T(1)+T(n−1)+O(n)T(n) = T(1) + T(n - 1) + O(n)
  • (B)
    T(n)=T(n4)+T(3n4)+O(n)T(n) = T\left(\frac{n}{4}\right) + T\left(\frac{3n}{4}\right) + O(n)
  • (C)
    T(n)=2T(n2)+O(n)T(n) = 2T\left(\frac{n}{2}\right) + O(n)
  • (D)
    T(n)=1n∑k=0n−1[T(k)+T(n−k−1)]+O(n)T(n) = \frac{1}{n}\sum_{k=0}^{n-1}\bigl[T(k) + T(n-k-1)\bigr] + O(n)

Answer (official key): D

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

Q16 · Database Management and Warehousing · MCQ · 1 mark

Consider that the visualization of a 3-dimensional data cube is showing Sales Quantity for each combination of the attributes Product Type, Month and Country.

From this, if we want to further visualize the Sales Quantity for each combination of Product Type, Month and State, which of the following OLAP operations should be performed?

  • (A)
    Slicing
  • (B)
    Dicing
  • (C)
    Roll-up
  • (D)
    Drill-down

Answer (official key): D

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

Q17 · Artificial Intelligence · MCQ · 1 mark

Which of the following statements is NOT true?
(The names of the predicates are intuitive.)

  • (A)
    ∀x∀y Classmate(x,y)⇒Classmate(y,x)\forall x \forall y\ \mathrm{Classmate}(x,y) \Rightarrow \mathrm{Classmate}(y,x)
  • (B)
    ∀x Likes(x,Icecream)⇒¬∃x ¬Likes(x,Icecream)\forall x\ \mathrm{Likes}(x,\mathrm{Icecream}) \Rightarrow \neg \exists x\ \neg \mathrm{Likes}(x,\mathrm{Icecream})
  • (C)
    “Each king is a person” is equivalent to ∀x IsKing(x)∧IsPerson(x)\forall x\ \mathrm{IsKing}(x) \wedge \mathrm{IsPerson}(x)
  • (D)
    “All humans are mortal” is equivalent to ∀x IsHuman(x)⇒IsMortal(x)\forall x\ \mathrm{IsHuman}(x) \Rightarrow \mathrm{IsMortal}(x)

Answer (official key): C

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

Q18 · Database Management and Warehousing · MCQ · 1 mark

Let R(A,B,C,D,E)R(A,B,C,D,E) be a relational schema with functional dependency set

F={A→BC,  CD→E,  E→A}.F = \{A \to BC,\; CD \to E,\; E \to A\}.

Which of the following statements is correct?

  • (A)
    ADAD, EDED and CDCD are the only candidate keys of RR.
  • (B)
    ADAD and EDED are the only candidate keys of RR.
  • (C)
    AA, EE and CDCD are the only candidate keys of RR.
  • (D)
    AA and CDCD are the only candidate keys of RR.

Answer (official key): A

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

Q19 · Artificial Intelligence · MCQ · 1 mark

Which of the following algorithms is NOT an example of uninformed search?

  • (A)
    Breadth First Search
  • (B)
    Depth First Search
  • (C)
    A* Search
  • (D)
    Depth-limited Search

Answer (official key): C

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

Q20 · Machine Learning · MCQ · 1 mark

Consider that you are training a classifier for a 10-class classification problem. Each input is represented as a 512-dimensional vector. There are 1000 samples, out of which first 100 will be used for testing. Let Leave-One-Out-Cross-Validation (LOOCV) be used for selection of the classifier model before testing.

Which of the following options is the correct number of validation splits that will be generated?

  • (A)
    10
  • (B)
    512
  • (C)
    900
  • (D)
    1000

Answer (official key): C

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

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

You are given the following Pre-order and In-order traversals of a Binary Tree TT with nodes E, F, G, P, Q, R, S.

Pre-order: P Q S E R F G
In-order: S Q E P F R G

Which of the following statements is/are true about the Binary Tree TT?

  • (A)
    Node P is the root of TT
  • (B)
    The Post-order traversal of TT is: S E Q F G R P
  • (C)
    Node Q has only one child
  • (D)
    The left subtree of node R contains the node G

Answer (official key): A, B

Read the worked solution

Q22 · Database Management and Warehousing · MSQ · 1 mark

Consider two relations rr and ss defined on the relational schemas R(A,B)R(A,B) and S(E,C)S(E,C), respectively. AA is the primary key of RR and EE is a foreign key of SS referencing AA in RR.

Which of the following operations will NEVER violate the foreign key constraint?

  • (A)
    Inserting records into relation rr
  • (B)
    Deleting records from relation ss
  • (C)
    Deleting records from relation rr
  • (D)
    Inserting records into relation ss

Answer (official key): A, B

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

Q23 · Artificial Intelligence · MSQ · 1 mark

Sentence XX is said to entail Sentence YY if whenever XX is TRUE, YY also must hold TRUE.

Which of the following statements is/are correct if XX entails YY?

  • (A)
    X⇒YX \Rightarrow Y
  • (B)
    X∧¬YX \land \neg Y is FALSE
  • (C)
    if XX then YY
  • (D)
    if YY then XX

Answer (official key): A, B, C

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

Q24 · Machine Learning · Numerical · 1 mark

Consider that for a supervised learning task, the objective function being minimized is

fw(x)=wx,f_w(x)=wx,

where x∈Rx \in \mathbb{R} is the input and w∈Rw \in \mathbb{R} is the parameter. Stochastic Gradient Descent with learning rate of 0.10 is used for parameter updates.

Suppose that at the end of iteration ii, the value of ww becomes 10.00.

Let x=10.00x=10.00 be the input for iteration (i+1)(i+1).

The value of ww at the end of iteration (i+1)(i+1) is __________ .
(Rounded off to two decimal places)

Answer (official key): 8.9 to 9.1

Read the worked solution

Q25 · Artificial Intelligence · Numerical · 1 mark

Consider the game tree for a two-player turn-taking minimax game as shown in the figure. The value of a terminal node represents the utility of the game state if the game ends there. The numbers written next to the edges denote the strategies.

There are two players MAX and MIN. At any particular state of the game, MAX prefers to move to a state of maximum value. On the other hand, MIN prefers to move to a state of minimum value.

Suppose MAX starts the game at the root and has three strategies: 1, 2 and 3. Next, MIN plays and also has three strategies: 1, 2 and 3. The game ends there. Both players always take optimal strategies throughout the game.

At the root, the best strategy for MAX is __________ . (Answer in integer)

Game tree for Q30

Answer (official key): 2

Read the worked solution

Q26 · Linear Algebra · MCQ · 1 mark

Let

M=(cos⁡θ−sin⁡θsin⁡θcos⁡θ)M = \begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}

be a 2×22 \times 2 matrix, where

θ=2π5,I2=(1001).\theta = \frac{2\pi}{5}, \qquad I_2 = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}.

Which of the following options is equal to M2026M^{2026}?

  • (A)
    M2M^2
  • (B)
    MM
  • (C)
    M−1M^{-1}
  • (D)
    I2I_2

Answer (official key): B

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

Q27 · Linear Algebra · MCQ · 1 mark

Consider a set

S1={x=(x1,x2,x3)T∈R3∣xTx≤16}.S_1 = \left\{x = (x_1,x_2,x_3)^T \in \mathbb{R}^3 \mid x^T x \le 16 \right\}.

Let S2S_2 be another set which is a subspace of R3\mathbb{R}^3 with dimension two.

Which of the following gives the area of S1∩S2S_1 \cap S_2?

  • (A)
    16π16\pi
  • (B)
    4π4\pi
  • (C)
    4π24\pi^2
  • (D)
    16π216\pi^2

Answer (official key): A

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

Q28 · Machine Learning · MSQ · 1 mark

In the following table, the Task column lists a few tasks related to machine learning. The Algorithm column lists a few algorithms.

Each entry “t” from the Task column is to be matched with an appropriate entry “a” from the Algorithm column such that the task “t” can be solved using the algorithm “a”. Denote such a match as t:a.

TaskAlgorithm
T1 – ClusteringA1 – Markov Chain Monte Carlo
T2 – ClassificationA2 – K-Medoid
T3 – SamplingA3 – Linear Discriminant Analysis
T4 – Feature ExtractionA4 – Naive Bayes

Which of the following options is/are the correct matching(s)?

  • (A)
    T1:A4, T2:A3, T3:A1, T4:A2
  • (B)
    T1:A2, T2:A4, T3:A1, T4:A3
  • (C)
    T1:A3, T2:A4, T3:A1, T4:A2
  • (D)
    T1:A4, T2:A2, T3:A1, T4:A3

Answer (official key): B

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

Q29 · Calculus and Optimization · MSQ · 1 mark

Let

f(x)=x3−3x2+2f(x) = x^3 - 3x^2 + 2

be a function defined on (−1,3](-1,3].

Which of the following statements is/are correct?

  • (A)
    f(x)f(x) has exactly two roots in [−0.9,0][-0.9,0]
  • (B)
    f(x)f(x) has a minimum at 2 only.
  • (C)
    f(x)f(x) has maximum at 0 only.
  • (D)
    f(x)f(x) has a root at 1.

Answer (official key): B, D

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

Q30 · Probability and Statistics · MSQ · 1 mark

Suppose a random variable ZZ follows Normal(μ=0,σ2=1)(\mu = 0, \sigma^2 = 1) distribution with probability density function g(z)g(z) and cumulative distribution function G(z)G(z). Another random variable YY follows t1t_1 distribution with probability density function h(y)h(y) and cumulative distribution function H(y)H(y). Let cc be the positive real number for which g(c)=h(c)g(c)=h(c).

Which of the following statements is/are correct?

  • (A)
    G(0)=H(0)G(0)=H(0)
  • (B)
    G(c)<H(c)G(c)<H(c)
  • (C)
    G(−c)<H(−c)G(-c)<H(-c)
  • (D)
    g(0)=h(0)g(0)=h(0)

Answer (official key): A, C

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

Q31 · Probability and Statistics · Numerical · 1 mark

The number of bijections f(⋅)f(\cdot) from the set

S={1,2,3,4}S = \{1,2,3,4\}

to itself such that

f(f(n))=n, for all n∈S,f(f(n)) = n, \text{ for all } n \in S,

is __________ .
(Answer in integer)

Answer (official key): 10

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

Q32 · Calculus and Optimization · Numerical · 1 mark

The value of

∑i=0∞∑j=1∞2−i3−j\sum_{i=0}^{\infty}\sum_{j=1}^{\infty} 2^{-i}3^{-j}

is ______________ .
(Answer in integer)

Answer (official key): 1

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

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

Let AA be a sorted array containing 1000 distinct integers. You perform a recursive binary search on AA to find an element yy. Suppose each comparison checks whether the middle element computed during the current recursive step is equal to, less than, or greater than yy.

The maximum number of comparisons that may have to be performed if yy is not an element of AA is _______ .
(Answer in integer)

Answer (official key): 10

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

Q34 · Database Management and Warehousing · Numerical · 1 mark

In a relational database, a B+ Tree Index is to be constructed for a relation on a key field. In a B+ Tree, a Node Pointer points to a sub-tree and a Data Record Pointer points to a block of database records.

Let:

  • Node size = 4096 bytes
  • Node Pointer size = 10 bytes
  • Search Key Field size = 11 bytes
  • Data Record Pointer size = 12 bytes

The maximum number of Node Pointers that can be present in a non-leaf node of the B+ Tree is ________ .
(Answer in integer)

Answer (official key): 195

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

Q35 · Probability and Statistics · Numerical · 1 mark

Let XX be an exponentially distributed random variable with mean λ(>0)\lambda (> 0). If

P(X>5)=0.35,P(X > 5) = 0.35,

then the conditional probability

P(X>10∣X>5)P(X > 10 \mid X > 5)

is ___________ .
(Rounded off to two decimal places)

Answer (official key): 0.34 to 0.36

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

Q36 · Artificial Intelligence · MCQ · 2 marks

Assume that a Creative (C)(C) person will Succeed (S)(S) if the person is also Disciplined (D)(D), but will not succeed otherwise. Now, consider the following statements:

(i) C∧S⇔DC \land S \Leftrightarrow D
(ii) C⇒(S⇔D)C \Rightarrow (S \Leftrightarrow D)
(iii) C⇔((D⇒S)∨¬S)C \Leftrightarrow ((D \Rightarrow S)\lor \neg S)

Which of the following options is correct?

  • (A)
    Both (i) and (ii) are TRUE
  • (B)
    Only (ii) is TRUE
  • (C)
    Both (ii) and (iii) are TRUE
  • (D)
    Only (iii) is TRUE

Answer (official key): B

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

Q37 · Machine Learning · MCQ · 2 marks

Which of the following statements is true for Ridge Regression?

  • (A)
    The regularizer in the objective function of Ridge Regression is used to guard against scenarios where the model works well for the test data, but poorly for the training data.
  • (B)
    The regularizer of Ridge Regression uses L1L_1 norm.
  • (C)
    Ridge Regression aims to reduce the number of parameters that have negative values.
  • (D)
    The regularizer of Ridge Regression may increase the bias of the model, but it helps in reducing the variance in predictions.

Answer (official key): D

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

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

Consider a directed graph G=(V,E)G = (V,E), where VV is the finite set of vertices and EE is the set of directed edges between the vertices. GG may contain cycles but there is no self-loop. Further, GG may not be strongly connected.

Let GRG^R be the graph obtained by reversing the directions of all the edges in GG without changing the set of vertices.

Assume that Breadth First Search (BFS) or Depth First Search (DFS) from any given vertex vv of a graph visits only the reachable vertices from vv in that graph.

Which of the following statements must always be true, regardless of the structure of GG?

  • (A)
    If uu is a reachable vertex in the BFS of GRG^R from vv, then uu is also a reachable vertex in the DFS of GG from vv.
  • (B)
    In GRG^R, the BFS traversal from vv will visit exactly the same set of vertices as the DFS from vv in GG.
  • (C)
    The order of vertices visited in the BFS of GRG^R from vv is the reverse of the order of vertices visited in the DFS of GG from vv.
  • (D)
    If uu is a reachable vertex in the DFS of GG from vv, then vv is also a reachable vertex in the BFS of GRG^R from uu.

Answer (official key): D

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

Q39 · Machine Learning · MCQ · 2 marks

Let four points in three-dimensional space be:

P1:[2,3,−1],P2:[3,1,1],P3:[5,−2,3],P4:[3,3,3].P_1: [2,3,-1], \quad P_2: [3,1,1], \quad P_3: [5,-2,3], \quad P_4: [3,3,3].

Hierarchical Agglomerative Clustering is used to cluster the above points. If Manhattan Distance is used as the distance metric during clustering, which of the following options indicates the two points that will be merged first?

  • (A)
    P1,P2P_1, P_2
  • (B)
    P2,P3P_2, P_3
  • (C)
    P3,P4P_3, P_4
  • (D)
    P2,P4P_2, P_4

Answer (official key): D

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

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

A recursive function in Python is given.

def mystery(n):
    if n <= 0:
        return 1
    else:
        return mystery(n-1) + mystery(n-2)

Now, consider the following function call:

mystery(4)

Assume that a typical runtime stack is used to manage function calls. Each function call is pushed onto the stack and removed only after it finishes execution.

Which of the following options denotes the total number of function calls (i.e., the total number of stack activations), including the initial call, to compute mystery(4)?

  • (A)
    5
  • (B)
    9
  • (C)
    15
  • (D)
    17

Answer (official key): C

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

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

Consider the problem of sorting the given array in ascending order:

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

Consider two sorting algorithms Bubble Sort (BS) and Insertion Sort (IS). Let N1N_1 be the total number of comparisons done by BS on the elements of PP and N2N_2 be the total number of comparisons done by IS on the elements of PP.

Which of the following options is/are correct?

  • (A)
    N1=10, N2=4N_1 = 10,\ N_2 = 4
  • (B)
    N1>N2N_1 > N_2
  • (C)
    IS on PP will perform only one swap
  • (D)
    Both BS and IS on PP will make at least one unnecessary comparison (i.e., comparing elements that are already in correct order)

Answer (official key): B, C, D

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

Q42 · Database Management and Warehousing · MCQ · 2 marks

Consider the given relations XX, YY and ZZ. The relation XX has three columns PP, QQ and RR. The relation YY has three columns PP, QQ and SS. The relation ZZ has two columns PP and TT.

X.PX.QX.R
P1Q1R1
P2Q2R2
P3Q3R2
Y.PY.QY.S
P1Q12
P1Q25
P2Q16
P3Q31
Z.PZ.T
P1T1
P3T2
P4T3

Consider the relational algebra expression

ΠPRS[(σ(Q=Q3∨R=R2)[X⋈Y])⋈(σ(S>1)[Y⋈Z])]\Pi_{PRS} \Big[ \big(\sigma_{(Q = Q3 \lor R = R2)}[X \bowtie Y]\big) \bowtie \big(\sigma_{(S > 1)}[Y \bowtie Z]\big) \Big]

where ⋈\bowtie denotes natural join operation.

Which of the following options is the correct output for the given expression?

  • (A)
    Two rows (P1,R1,2)(P1, R1, 2) and (P1,R1,5)(P1, R1, 5)
  • (B)
    Three rows (P1,R1,2)(P1, R1, 2), (P1,R1,5)(P1, R1, 5) and (P2,R2,6)(P2, R2, 6)
  • (C)
    One row (P1,R1,2)(P1, R1, 2)
  • (D)
    Zero rows

Answer (official key): D

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

Q43 · Database Management and Warehousing · MCQ · 2 marks

Consider the concept hierarchies as shown in the figure.

Which of the following options denotes the total number of possible data cuboids from these concept hierarchies?

Concept hierarchies for Q43

  • (A)
    434^3
  • (B)
    232^3
  • (C)
    2!2!
  • (D)
    4!4!

Answer (official key): A

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

Q44 · Linear Algebra · MCQ · 2 marks

Let γ1,γ2,γ3\gamma_1, \gamma_2, \gamma_3 be the eigenvalues of the matrix

[1000cos⁡tsin⁡t0−sin⁡tcos⁡t],\begin{bmatrix} 1 & 0 & 0 \\ 0 & \cos t & \sin t \\ 0 & -\sin t & \cos t \end{bmatrix},

where t∈[−π,π]t \in [-\pi,\pi] is in radians.

Which one of the following options lists all the possible values of tt satisfying

γ1+γ2+γ3=1+2 ?\gamma_1 + \gamma_2 + \gamma_3 = 1 + \sqrt{2}\,?
  • (A)
    {π3,−π4}\left\{\frac{\pi}{3}, -\frac{\pi}{4}\right\}
  • (B)
    {π4,−π3}\left\{\frac{\pi}{4}, -\frac{\pi}{3}\right\}
  • (C)
    {π4,−π4}\left\{\frac{\pi}{4}, -\frac{\pi}{4}\right\}
  • (D)
    {π3,−π3}\left\{\frac{\pi}{3}, -\frac{\pi}{3}\right\}

Answer (official key): C

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

Q45 · Probability and Statistics · MCQ · 2 marks

Let XX and YY be two independent random variables. XX follows Bernoulli(p=0.3)(p = 0.3) distribution and YY follows Normal(μ=0,σ2=100)(\mu = 0, \sigma^2 = 100) distribution.

Which of the following options is the variance of (2X−1)Y(2X - 1)Y ?

  • (A)
    100
  • (B)
    90
  • (C)
    49
  • (D)
    21

Answer (official key): A

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

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

Consider the given Python program.

def outer():
    x = []
    def inner(val):
        x.append(val)
        return x
    return inner

f1 = outer()
f2 = outer()

print(f1(10))  # Line P
print(f1(20))  # Line Q
print(f2(30))  # Line R
print(f1(40))  # Line S

Which of the following options is/are correct?

  • (A)
    f1 and f2 share the same list x
  • (B)
    Output of Line Q is [10, 20]
  • (C)
    Output of Line R is [10, 20, 30]
  • (D)
    Output of Line S is [10, 20, 40]

Answer (official key): B, D

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

Q47 · Database Management and Warehousing · MCQ · 2 marks

Consider a B+ Tree where the maximum number of key values in each leaf node is 2 and the maximum number of pointers in each non-leaf node is 3. Let the content of the B+ Tree be as shown in the figure.

Which of the following options denotes the key value(s) stored in the root node after inserting a key value 3 in the given B+ Tree?

B+ Tree for Q41

  • (A)
    5
  • (B)
    8
  • (C)
    3 and 5
  • (D)
    3, 5 and 8

Answer (official key): A

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

Q48 · Machine Learning · MSQ · 2 marks

Consider that 20 stories of Author X and 10 stories of Author Y were kept together without mentioning the names of the authors. A classifier was then asked to predict the author (X or Y) of each of these stories. Let, out of X’s stories, 6 were classified as that of Y. On the other hand, out of Y’s stories, 2 were classified as that of X.

Considering X and Y as two classes, which of the following statements is/are true?

  • (A)
    Accuracy of the classifier is 11/1511/15.
  • (B)
    Precision of Class X is higher than the Precision of Class Y.
  • (C)
    Recall of Class X is higher than the Recall of Class Y.
  • (D)
    Accuracy of the classifier is 14/1514/15.

Answer (official key): A, B

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

Q49 · Artificial Intelligence · MSQ · 2 marks

Let P(x)P(x) be a predicate.

Which of the following statements is/are NOT valid in first-order logic?

  • (A)
    ∀x P(x)⇒∃x P(x)\forall x\ P(x) \Rightarrow \exists x\ P(x)
  • (B)
    ∃x P(x)⇒∀x P(x)\exists x\ P(x) \Rightarrow \forall x\ P(x)
  • (C)
    ∃x P(x)⇔∀x P(x)\exists x\ P(x) \Leftrightarrow \forall x\ P(x)
  • (D)
    ∀x P(x)⇒∃x ¬P(x)\forall x\ P(x) \Rightarrow \exists x\ \neg P(x)

Answer (official key): B, C, D

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

Q50 · Probability and Statistics · MCQ · 2 marks

Let

L=lim⁡n→∞∑k=0ne−nnkk!.L=\lim_{n\to\infty}\sum_{k=0}^{n} e^{-n}\frac{n^k}{k!}.

Which of the following is the value of LL?

  • (A)
    0.5
  • (B)
    1.0
  • (C)
    0
  • (D)
    e−1e^{-1}

Answer (official key): A

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

Q51 · Probability and Statistics · Numerical · 2 marks

Let A5×5A_{5\times5} be a matrix such that each of its elements follows Bernoulli(p=0.50)(p = 0.50) distribution independently.

The probability that the row-sum of the second row and the column-sum of the third column are both equal to 3 is ________ .
(Rounded off to two decimal places)

Answer (official key): 0.08 to 0.12

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

Q52 · Machine Learning · Numerical · 2 marks

Consider a fully-connected feed-forward multi-layer perceptron. It has 30 neurons in the input layer, followed by two hidden layers and an output layer. The first hidden layer has 4 neurons and the second hidden layer has 3 neurons. The output layer has only one neuron. Assume that no bias parameters are used.

The number of learnable parameters in the multi-layer perceptron is __________ .
(Answer in integer)

Answer (official key): 135

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

Q53 · Database Management and Warehousing · Numerical · 2 marks

Let there be two relations XX and YY as shown. XX has three columns PP, QQ and RR. YY has two columns PP and SS.

Relation X

PQR
P1Q1R1
P2Q2R2
P3Q3R2

Relation Y

PS
P110
P115
P220
P31

Consider that the following tuple relational calculus expression is evaluated:

{ t∣t∈X∧∃z∈X (t[P]=z[P])∧∃m∈Y (m[P]=t[P]∧m[S]>1) }\{\, t \mid t \in X \land \exists z \in X\ (t[P] = z[P]) \land \exists m \in Y\ (m[P] = t[P] \land m[S] > 1)\,\}

The number of tuples that will be returned is __________ .
(Answer in integer)

Answer (official key): 2 to 3

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

Q54 · Database Management and Warehousing · Numerical · 2 marks

Consider an ER model with the entities E1(A11,A12,A13)E1(A11,A12,A13) and E2(A21,A22,A23)E2(A21,A22,A23), where A11,A12,A13A11, A12, A13 are the attributes of E1E1, and A21,A22,A23A21, A22, A23 are the attributes of E2E2. Let A22A22 be a multi-valued attribute. A11A11 and A21A21 are the primary keys of E1E1 and E2E2, respectively.

Let R12R12 be a many-to-many relationship between E1E1 and E2E2. Participation of both E1E1 and E2E2 in R12R12 is total.

The minimum number of relations required to convert the ER model into relational model (assuming there is no other functional dependency) where each relation is in third normal form (3NF) is __________ .
(Answer in integer)

Answer (official key): 4

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

Q55 · Probability and Statistics · MSQ · 2 marks

Let XX be a discrete valued random variable with cumulative distribution function F(x)F(x).

Which of the following statements is/are correct?

  • (A)
    F(x)F(x) is always a positive function.
  • (B)
    F(x)F(x) is a non-decreasing function.
  • (C)
    F(x)F(x) has jump discontinuity.
  • (D)
    F(x)F(x) is a left continuous function.

Answer (official key): B, C

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

Q56 · Machine Learning · Numerical · 2 marks

Consider that Linear Ridge Regression is being used to learn a prediction function

ypred=wTx,y_{\text{pred}} = w^T x,

where w,x∈R2w, x \in \mathbb{R}^2 and Mean Absolute Error (MAE) is used to measure the prediction error. A weight of 0.20 is associated with the regularizer.

At an intermediate step of the training process, assume that the parameter

w=[−3.00, 4.00]T.w = [-3.00,\ 4.00]^T.

In the next step, for the input

x=[1.00, 2.00]T,x = [1.00,\ 2.00]^T,

the predicted value of yy is noted. Let the relation between

x=[x1, x2]Tx = [x_1,\ x_2]^T

and the true value of yy be

ytrue=x1+x2.y_{\text{true}} = x_1 + x_2.

The value of the overall regularized loss function for this instance is _______ .
(Rounded off to two decimal places)

Answer (official key): 6.9 to 7.1

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

Q57 · Database Management and Warehousing · MSQ · 2 marks

Consider a table Employee(EmpID, TeamID), where the column EmpID (ID of an employee) is the primary key. The column TeamID denotes the team ID of the team of which the employee is a member. TeamID is a NOT NULL column.

We want to display the size of the team (denoted as TeamSize) in which each employee is a member by using SQL. As an example, the desired output for the given Employee table is also shown in tabular form.

Employee.EmpIDEmployee.TeamIDOutput.EmpIDOutput.TeamSize
1813
2823
3833
4742
5752
6961

Which of the following is/are correct?

  • (A)
    Option A
  • (B)
    Option B
  • (C)
    Option C
  • (D)
    Option D

Answer (official key): A

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

Q58 · Probability and Statistics · Numerical · 2 marks

For a given data set {x1,x2,…,xn}\{x_1, x_2, \ldots, x_n\}, where n=100n = 100, it is known that

12000∑i=1n∑j=1n(xi−xj)2=99.\frac{1}{2000}\sum_{i=1}^{n}\sum_{j=1}^{n}(x_i - x_j)^2 = 99.

Let us denote

xˉ=1n∑i=1nxi.\bar x = \frac{1}{n}\sum_{i=1}^{n} x_i.

The value of

199∑i=1n(xi−xˉ)2\frac{1}{99}\sum_{i=1}^{n}(x_i - \bar x)^2

is __________ .
(Answer in integer)

Answer (official key): 10

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

Q59 · Probability and Statistics · MSQ · 2 marks

Let X1,X2,…,XnX_1, X_2, \ldots, X_n be nn independent random variables. Each of the random variables follows Normal(μ=0,σ2=1)(\mu = 0, \sigma^2 = 1) distribution. Define

Xˉ=1n∑i=1nXi.\bar X = \frac{1}{n}\sum_{i=1}^{n} X_i.

Which of the following statements is/are correct?

  • (A)
    Option A
  • (B)
    Option B
  • (C)
    Option C
  • (D)
    Option D

Answer (official key): A, B, C

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

Q60 · Linear Algebra · Numerical · 2 marks

Let

A=(In−1n11T)A = \left(I_n - \frac{1}{n}\mathbf{1}\mathbf{1}^T\right)

be a matrix, where

1=(1,1,1,…,1)T∈Rn\mathbf{1} = (1,1,1,\ldots,1)^T \in \mathbb{R}^n

and InI_n is the identity matrix of order nn.

The value of

max⁡x∈SxTAx,where S={x∈Rn∣xTx=1},\max_{x \in S} x^T A x, \qquad \text{where } S = \{x \in \mathbb{R}^n \mid x^T x = 1\},

is __________ .
(Answer in integer)

Answer (official key): 1

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

Q61 · Database Management and Warehousing · Numerical · 2 marks

Let Account be a relation as shown.

AccNoBalance
A15000
A25000
A310000
A415000
A518000

Consider the given SQL query:

SELECT AccNo
FROM Account AS A
WHERE
  (SELECT COUNT(*) FROM Account AS B
   WHERE A.Balance < B.Balance)
  >=
  (SELECT COUNT(*) FROM Account AS C
   WHERE A.Balance > C.Balance);

The number of rows returned by the SQL query is __________ .
(Answer in integer)

Answer (official key): 3

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

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

Consider the given Python program.

def fun(L, i=0):
    if i >= len(L)-1:
        return 0
    if L[i] > L[i+1]:
        L[i+1], L[i] = L[i], L[i+1]
        return 1 + fun(L, i+1)
    else:
        return fun(L, i+1)

data = [5, 3, 4, 1, 2]
count = 0
for _ in range(len(data)):
    count += fun(data)
print(count)

The output of the program is __________ .
(Answer in integer)

Answer (official key): 8

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

Q63 · Probability and Statistics · Numerical · 2 marks

Let XX be a random variable that follows Uniform(−1,1)(-1,1) distribution. The conditional distribution of the random variable YY given X=xX = x is the Uniform(x2−0.1, x2+0.1)(x^2 - 0.1,\ x^2 + 0.1) distribution.

The value of correlation⁡(X,Y)\operatorname{correlation}(X, Y) is __________ .
(Answer in integer)

Answer (official key): 0

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

Q64 · Linear Algebra · MSQ · 2 marks

Let

M=(In−1n11T)M = \left(I_n - \frac{1}{n}\mathbf{1}\mathbf{1}^T\right)

be a matrix, where

1=(1,1,1,…,1)T∈Rn\mathbf{1} = (1,1,1,\ldots,1)^T \in \mathbb{R}^n

and InI_n is the identity matrix of order nn.

Which of the following options is/are correct?

  • (A)
    MT=MM^T = M
  • (B)
    M2=InM^2 = I_n
  • (C)
    Trace⁡(M)=n\operatorname{Trace}(M) = n
  • (D)
    MM is a projection matrix

Answer (official key): A, D

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

Q65 · Probability and Statistics · Numerical · 2 marks

A clinic specializes in testing for a disease DD. The result of the test can be either positive or negative.

A study revealed that if a person suffers from the disease DD, the test result in that clinic comes out positive 80% of the time, and negative 20% of the time. If a person is not suffering from the disease DD, the test comes out positive 10% of the time and negative 90% of the time. It is also known that among the general population, the disease DD occurs in 30% of the individuals.

If a person tests positive for DD in that clinic, the probability that he/she actually suffers from the disease DD is __________ .
(Rounded off to two decimal places)

Answer (official key): 0.76 to 0.78

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