Organised by IIT Guwahati

GATE 2026 DA (Data Science & AI) question paper with solutions

64 questions with the official answer key and a worked solution for each. Try a question before opening its answer.

Practise this paper with instant checking
Q1MCQ1 mark · -1/3· Easy

Verbosity : Brevity :: Insolence : ___________ Choose the word that best fills the blank.

  1. (A)Innocence
  2. (B)Respect
  3. (C)Solace
  4. (D)Wealth
Answer: B - show solution

Verbosity (using too many words) is the opposite of brevity (using few words). So the pair is a pair of antonyms. The opposite of insolence (rude, disrespectful behaviour) is respect. Innocence, solace and wealth are not opposites of insolence. Answer: (B) Respect.

Concept: Analogy by antonymy. The trap is picking a word that merely sounds related (innocence) instead of checking the exact relation in the first pair.

Q2MCQ1 mark · -1/3· Easy

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

  1. (A)12
  2. (B)14
  3. (C)16
  4. (D)18
Answer: B - show solution

70 = 2 x 5 x 7. Each digit is between 1 and 9 (a zero would make the product 0). Any other split needs a factor of 10, 14, 35 or 70, which is not a single digit, and using 1 forces two digits multiplying to 70, which is impossible with single digits. So the digits are 2, 5 and 7 in some order, and their sum is 2 + 5 + 7 = 14. Answer: (B) 14.

Concept: Prime factorisation of the product fixes the digits. The trap is forgetting to rule out splits that use the digit 1.

Q4MCQ1 mark · -1/3· Easy

Consider two distinct positive real numbers m, n, with m > n. Let x = n^(log₁₀ m) and y = m^(log₁₀ n). The relation between x and y is _______.

  1. (A)x > y
  2. (B)x < y
  3. (C)x = y
  4. (D)x = log₁₀(y)
Answer: C - show solution

Take log base 10 of both. log x = log₁₀ m · log₁₀ n. log y = log₁₀ n · log₁₀ m. The two logarithms are equal, and log is one-to-one, so x = y for every pair of positive m, n (the condition m > n does not matter). Answer: (C) x = y.

Concept: Identity a^(log b) = b^(log a). The trap is assuming the larger base gives the larger value and picking x < y or x > y.

Q5MCQ1 mark · -1/3· Easy

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

  1. (A)The actor will certainly sponsor his next movie.
  2. (B)His latest movie was a commercial success.
  3. (C)The actor made enough money from his latest movie.
  4. (D)His latest movie was not commercially successful.
Answer: D - show solution

The sentence is a third conditional: 'If ... had been ..., ... would have ...'. This form describes an unreal past situation, so it implies the condition did not happen: the latest movie was not a commercial success. Hence the actor did not make that money, and nothing says he will sponsor the next movie. Answer: (D) His latest movie was not commercially successful.

Concept: Reading counterfactual conditionals. The trap is treating 'had been' as a statement of fact and choosing (B) or (C).

Q6MCQ2 marks · -2/3· Easy

'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.

  1. (A)at; of; for
  2. (B)for; at; of
  3. (C)of; for; in
  4. (D)in; of; for
Answer: A - show solution

We part AT a place (at the door). The door belongs to the cabin: the door OF the cabin. A cabin is rented FOR a period: for the night. Sequence: at; of; for. Answer: (A) at; of; for.

Concept: Prepositions of place, possession and duration. The trap is 'in the night', which describes when something happens, not the length of a rental.

Q7MCQ2 marks · -2/3· Moderate

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 _____

  1. (A)0
  2. (B)1
  3. (C)2
  4. (D)3
Answer: B - show solution

Sort them a ≤ b ≤ c ≤ d ≤ e. Median c = 18, sum = 5 x 12 = 60. A single mode of 20 needs 20 to occur at least twice, and only d and e can exceed 18, so d = e = 20. Then a + b = 60 - 18 - 40 = 2 with a ≤ b ≤ 18. Options: (0, 2) or (1, 1). (1, 1) makes 1 appear twice, tying with 20, so the mode is no longer single. Only {0, 2, 18, 20, 20} works. Answer: (B) 1.

Concept: Using mean, median and mode together as constraints. The trap is counting (1, 1, 18, 20, 20), which has two modes.

Q8MCQ2 marks · -2/3· Moderate

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 __________.

  1. (A)Pavan
  2. (B)Rishi
  3. (C)Swathi
  4. (D)Tanvi
Answer: D - show solution

If game 1 were Pavan vs Tanvi, its Class 4 winner must lose game 2 to a Class 5 student (Class 5 needs 2 wins), leaving Rishi vs Swathi for game 3 - a second same-class game. So game 1 is Rishi vs Swathi. Its winner must play both remaining games (otherwise game 3 is Pavan vs Tanvi) and must win game 2 so Class 5 has 2 wins. If Swathi won game 1 and game 2, girls already have 2 wins - not allowed. So Rishi wins game 1 (boy) and game 2 (boy), and game 3 must be won by a girl: Rishi beats Pavan in game 2 and loses to Tanvi in game 3. Tanvi never lost. Answer: (D) Tanvi.

Concept: Case analysis under elimination rules. The trap is assuming the strongest player (Rishi) stays unbeaten, which would give the boys three wins.

Q9MCQ2 marks · -2/3· Moderate

P, Q, R, S, X, and Y are distinct single-digit whole numbers taking values from 0 to 9. PQ is a two-digit number with Q being in the units place and P in the tens place. Similarly, RS is a two-digit number. It is known that PQ and RS are consecutive numbers and (PQ)² + (RS)² = XYP, with XYP being a three-digit number. The value of Y is __________

  1. (A)4
  2. (B)5
  3. (C)6
  4. (D)7
Answer: C - show solution

n² + (n+1)² < 1000 forces n ≤ 21. P and R must differ, so the two numbers cannot share a tens digit: that leaves 19 & 20 or 20 & 21 (or 10 & 11 type pairs, which share tens digit 1). 20 & 21 share tens digit 2. So the pair is 19 and 20: 361 + 400 = 761 = XYP, giving P = 1, so PQ = 19, RS = 20, X = 7, Y = 6. Digits 1, 9, 2, 0, 7, 6 are all distinct. Answer: (C) 6.

Concept: Bounding then using the distinct-digit condition. The trap is missing that consecutive numbers in the same decade share the tens digit, which violates distinctness.

Q10MCQ2 marks · -2/3· Moderate

P, Q, and R are three points on a circle of radius 10 cm with O as its center, PQ = RQ (equal chords), and ∠PQR = 45°. The centre O lies inside the angle PQR, and the shaded region is the (non-convex) quadrilateral PQRO with vertices P, Q, R, O in that order (it is triangle PQR with triangle POR removed). The figure is representative. The area of the shaded region PQRO is ______________ cm².

  1. (A)50
  2. (B)25√2
  3. (C)50√2
  4. (D)100
Answer: C - show solution

Split PQRO along OQ into triangles OPQ and ORQ. Since PQ = RQ, OQ bisects angle PQR, so each triangle has angle 22.5° at Q. In isosceles triangle OPQ (OP = OQ = 10), the angle at P is also 22.5°, so angle POQ = 180 - 45 = 135°. Area of OPQ = ½ · 10 · 10 · sin 135° = 50 · (√2/2) = 25√2. Both triangles are congruent, so area = 2 · 25√2 = 50√2 cm². Answer: (C) 50√2.

Concept: Inscribed angle and isosceles triangles at the centre. The trap is using the central angle POR = 90° and computing a sector or triangle POR instead of the two triangles through Q.

Q11MCQ1 mark · -1/3· Easy

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 θ between the first and the tenth principal components?

  1. (A)θ = 0°
  2. (B)θ = 90°
  3. (C)90° < θ ≤ 180°
  4. (D)0 < θ < 90°
Answer: B - show solution

Principal components are eigenvectors of the (symmetric) covariance matrix, chosen to be mutually orthonormal. Any two distinct principal components, including the first and the tenth, are orthogonal, so the angle between them is 90°. Answer: (B) θ = 90°.

Concept: PCA directions are orthogonal. The trap is thinking the angle depends on how much variance each component explains.

Q12MCQ1 mark · -1/3· Easy

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?

  1. (A)10
  2. (B)512
  3. (C)900
  4. (D)1000
Answer: C - show solution

The 100 test samples are held out and not used in model selection, leaving 900 samples for cross-validation. LOOCV leaves out one sample at a time as the validation set, so it produces one split per sample: 900 splits. The number of classes (10) and the dimension (512) are irrelevant. Answer: (C) 900.

Concept: LOOCV creates as many folds as training samples. The trap is counting all 1000 samples including the test set.

Q13MCQ1 mark · -1/3· Easy

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

  1. (A)Breadth First Search
  2. (B)Depth First Search
  3. (C)A* Search
  4. (D)Depth-limited Search
Answer: C - show solution

Uninformed (blind) search uses only the problem definition: BFS, DFS and depth-limited search expand nodes without any estimate of distance to the goal. A* uses f(n) = g(n) + h(n), where h is a heuristic estimate of cost to the goal, so it is an informed search. Answer: (C) A* Search.

Concept: Informed vs uninformed search is about using a heuristic. The trap is thinking depth-limited search is informed because it uses a limit.

Q14MCQ1 mark · -1/3· Easy

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

  1. (A)∀x ∀y Classmate(x, y) ⇒ Classmate(y, x)
  2. (B)∀x Likes(x, Icecream) ⇒ ¬∃x ¬Likes(x, Icecream)
  3. (C)"Each king is a person" is equivalent to ∀x IsKing(x) ∧ IsPerson(x)
  4. (D)"All humans are mortal" is equivalent to ∀x IsHuman(x) ⇒ IsMortal(x)
Answer: C - show solution

(A) Being a classmate is symmetric, so it is true. (B) ∀x P(x) is equivalent to ¬∃x ¬P(x), so the implication holds. (D) is the standard translation of a universal statement. (C) ∀x IsKing(x) ∧ IsPerson(x) says everything is a king and a person; the correct form is ∀x IsKing(x) ⇒ IsPerson(x). Answer: (C).

Concept: With ∀ the connective is ⇒, with ∃ it is ∧. The classic trap is writing ∀ with ∧.

Q15MCQ1 mark · -1/3· Moderate

Consider that the quick sort algorithm is used to sort an array of n distinct randomly ordered elements. In every call, the pivot is chosen as the first element of the current subarray. Let 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) in this scenario?

  1. (A)T(n) = T(1) + T(n - 1) + O(n)
  2. (B)T(n) = T(n/4) + T(3n/4) + O(n)
  3. (C)T(n) = 2T(n/2) + O(n)
  4. (D)T(n) = (1/n) Σ_{k=0}^{n-1} [T(k) + T(n - k - 1)] + O(n)
Answer: D - show solution

With randomly ordered input, the first element is equally likely to be any rank. If it is the (k+1)-th smallest, the partitions have sizes k and n - k - 1, each with probability 1/n for k = 0..n-1. Averaging gives T(n) = (1/n) Σ [T(k) + T(n - k - 1)] + O(n), which solves to O(n log n). (A) is the worst case, (B) and (C) are particular fixed splits. Answer: (D).

Concept: Expected-case recurrence averages over all pivot ranks. The trap is choosing the balanced-split recurrence, which describes one ideal case, not the expectation.

Q16MCQ1 mark · -1/3· Easy

Consider the given Python program. Which of the following is the correct output of this program? (Each option lists the three printed lines.)

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, []))
  1. (A)[1] / [2] / [3]
  2. (B)[1] / [1, 2] / [3]
  3. (C)[1] / [2] / [1, 2, 3]
  4. (D)[1] / [1, 2] / [1, 3]
Answer: B - show solution

A default argument is evaluated once, when the function is defined, so every call that omits lst shares the same list. Call 1 appends 1 to it: [1]. Call 2 appends 2 to the same list: [1, 2]. Call 3 passes a fresh empty list, so it returns [3]. Answer: (B) [1] [1, 2] [3].

Concept: Mutable default arguments persist across calls. The trap is expecting a fresh list each time ([2] on the second call).

Q17MCQ1 mark · -1/3· Moderate

Let R(A,B,C,D,E) be a relational schema with functional dependency set F = {A → BC, CD → E, E → A}. Which of the following statements is correct?

  1. (A)AD, ED and CD are the only candidate keys of R.
  2. (B)AD and ED are the only candidate keys of R.
  3. (C)A, E and CD are the only candidate keys of R.
  4. (D)A and CD are the only candidate keys of R.
Answer: A - show solution

D appears on no right-hand side, so every key contains D. AD+ = {A,D} → BC → CD gives E: all attributes. ED+: E → A, A → BC: all. CD+: CD → E, E → A, A → B: all. Single D alone gives only D. BD+ = {B,D}, not a key. Each of AD, ED, CD is minimal (A, E, C alone do not give D). Any other key containing D would be a superset of these. Answer: (A) AD, ED and CD.

Concept: Attributes never on a right side must be in every key. The trap is (C), forgetting that D can never be derived.

Q18MCQ1 mark · -1/3· Easy

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?

  1. (A)Slicing
  2. (B)Dicing
  3. (C)Roll-up
  4. (D)Drill-down
Answer: D - show solution

In the location concept hierarchy, State lies below Country (finer granularity). Moving from Country to State goes down the hierarchy to more detailed data, which is drill-down. Roll-up would go the other way (State to Country); slice and dice select sub-cubes without changing granularity. Answer: (D) Drill-down.

Concept: Drill-down = finer level, roll-up = coarser level. The trap is confusing them because the number of dimensions stays the same.

Q19MCQ1 mark · -1/3· Moderate

Let M be a randomly chosen non-empty subset of S = {1, 2, 3, ..., 2026}. Which of the following is the probability that the product of all the elements of M is even?

  1. (A)2¹⁰¹³(2¹⁰¹³ - 1)/2²⁰²⁶
  2. (B)2¹⁰¹³/2²⁰²⁶
  3. (C)2¹⁰¹³(2¹⁰¹³ - 1)/(2²⁰²⁶ - 1)
  4. (D)1/(2²⁰²⁶ - 1)
Answer: C - show solution

There are 2²⁰²⁶ - 1 non-empty subsets, each equally likely. The product is odd exactly when every element is odd. S has 1013 odd numbers, giving 2¹⁰¹³ - 1 non-empty all-odd subsets. Even-product subsets: (2²⁰²⁶ - 1) - (2¹⁰¹³ - 1) = 2²⁰²⁶ - 2¹⁰¹³ = 2¹⁰¹³(2¹⁰¹³ - 1). Probability = 2¹⁰¹³(2¹⁰¹³ - 1)/(2²⁰²⁶ - 1). Answer: (C).

Concept: Complement counting. The trap is dividing by 2²⁰²⁶, forgetting that the empty set is excluded from the sample space.

Q20MCQ1 mark · -1/3· Moderate

Suppose that a computer program provides a non-negative and integer-valued random solution to the equation n₁ + n₂ + n₃ + n₄ = 20. Which of the following is the probability that all of n₁, n₂, n₃, n₄ in the provided solution are positive?

  1. (A)C(19,3)/C(23,3)
  2. (B)C(20,4)/C(24,4)
  3. (C)C(20,3)/C(23,3)
  4. (D)C(19,4)/C(24,4)
Answer: A - show solution

Taking each solution as equally likely: by stars and bars, non-negative solutions of n₁ + n₂ + n₃ + n₄ = 20 number C(20 + 3, 3) = C(23,3). Positive solutions: substitute mᵢ = nᵢ - 1 ≥ 0, so m₁ + ... + m₄ = 16, giving C(16 + 3, 3) = C(19,3). Probability = C(19,3)/C(23,3). Answer: (A).

Concept: Stars and bars for non-negative vs positive solutions. The trap is using C(n,k) with k = 4 instead of k - 1 = 3 bars.

Q21MCQ1 mark · -1/3· Easy

Let M = [[cos θ, -sin θ], [sin θ, cos θ]] be a 2 × 2 matrix, where θ = 2π/5, and I₂ = [[1, 0], [0, 1]]. Which of the following options is equal to M²⁰²⁶ ?

  1. (A)M²
  2. (B)M
  3. (C)M⁻¹
  4. (D)I₂
Answer: B - show solution

M is rotation by θ, so Mᵏ is rotation by kθ. M⁵ is rotation by 2π, which is I₂. 2026 = 5 · 405 + 1, so M²⁰²⁶ = (M⁵)⁴⁰⁵ · M = M. Answer: (B) M.

Concept: Powers of a rotation matrix are periodic. The trap is computing 2026 mod 5 wrongly or expecting I₂ because 2026 is even.

Q22MCQ1 mark · -1/3· Easy

Consider a set S₁ = {x = (x₁, x₂, x₃)ᵀ ∈ ℝ³ | xᵀx ≤ 16}. Let S₂ be another set which is a subspace of ℝ³ with dimension two. Which of the following gives the area of S₁ ∩ S₂?

  1. (A)16π
  2. (B)4π
  3. (C)4π²
  4. (D)16π²
Answer: A - show solution

S₁ is the solid ball of radius 4 centred at the origin. A two-dimensional subspace of ℝ³ is a plane through the origin, so it cuts the ball through its centre. The intersection is a disc of radius 4, with area π · 4² = 16π. Answer: (A) 16π.

Concept: A subspace always contains the origin, so the cut is a great disc. The trap is taking the radius as 16 or treating the plane as arbitrary.

Q23MSQ1 mark · no negative· Easy

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 Task Algorithm T1 - Clustering A1 - Markov Chain Monte Carlo T2 - Classification A2 - K-Medoid T3 - Sampling A3 - Linear Discriminant Analysis T4 - Feature Extraction A4 - Naive Bayes Which of the following options is/are the correct matching(s)?

  1. (A)T1:A4, T2:A3, T3:A1, T4:A2
  2. (B)T1:A2, T2:A4, T3:A1, T4:A3
  3. (C)T1:A3, T2:A4, T3:A1, T4:A2
  4. (D)T1:A4, T2:A2, T3:A1, T4:A3
Answer: B - show solution

K-Medoid is a clustering algorithm (T1:A2). Naive Bayes is a classifier (T2:A4). MCMC draws samples from a distribution (T3:A1). LDA projects data onto directions that best separate classes, so it is used for supervised feature extraction / dimensionality reduction (T4:A3). Only option B has all four. Options A and C send K-Medoid to feature extraction, D sends it to classification. Answer: (B).

Concept: Knowing what each algorithm does. The trap is that LDA can also classify, so one may pair it with classification and leave Naive Bayes stranded.

Q24MSQ1 mark · no negative· Easy

Sentence X is said to entail Sentence Y if whenever X is TRUE, Y also must hold TRUE. Which of the following statements is/are correct if X entails Y?

  1. (A)X ⇒ Y
  2. (B)X ∧ ¬Y is FALSE
  3. (C)if X then Y
  4. (D)if Y then X
Answer: A, B, C - show solution

X entails Y means no model makes X true and Y false. That is exactly: X ⇒ Y is valid (A), X ∧ ¬Y is unsatisfiable, i.e. always FALSE (B), and 'if X then Y' (C). The converse 'if Y then X' (D) need not hold: Y can be true while X is false. Answer: (A), (B), (C).

Concept: Deduction theorem: entailment equals validity of the implication. The trap is accepting the converse.

Q25MSQ1 mark · no negative· Easy

You are given the following Pre-order and In-order traversals of a Binary Tree T 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 T?

  1. (A)Node P is the root of T
  2. (B)The Post-order traversal of T is: SEQFGRP
  3. (C)Node Q has only one child
  4. (D)The left subtree of node R contains the node G
Answer: A, B - show solution

Pre-order starts with P, so P is the root. In-order splits into left {S, Q, E} and right {F, R, G}. Left pre-order Q S E: Q is its root with S left and E right. Right pre-order R F G: R is its root with F left and G right. Post-order: S E Q F G R P. So (A) true, (B) true, (C) false (Q has two children), (D) false (G is R's right child). Answer: (A), (B).

Concept: Rebuilding a tree from pre-order and in-order. The trap is misreading which side of R holds G.

Q26MSQ1 mark · no negative· Easy

Consider two relations r and s defined on the relational schemas R(A,B) and S(E,C), respectively. A is the primary key of R and E is a foreign key of S referencing A in R. Which of the following operations will NEVER violate the foreign key constraint?

  1. (A)Inserting records into relation r
  2. (B)Deleting records from relation s
  3. (C)Deleting records from relation r
  4. (D)Inserting records into relation s
Answer: A, B - show solution

s is the referencing relation, r the referenced one. Inserting into r only adds possible targets, so no s tuple loses its match. Deleting from s removes referencing tuples, which can never leave a dangling reference. Deleting from r can remove an A value still used by some E in s, and inserting into s can add an E value absent from r - both can violate. Answer: (A), (B).

Concept: Referential integrity: only deletes/updates on the referenced table and inserts/updates on the referencing table can break it. The trap is mixing up the two directions.

Q27MSQ1 mark · no negative· Moderate

Let f(x) = x³ - 3x² + 2 be a function defined on (-1, 3]. Which of the following statements is/are correct?

  1. (A)f(x) has exactly two roots in [-0.9, 0].
  2. (B)f(x) has a minimum at 2 only.
  3. (C)f(x) has maximum at 0 only.
  4. (D)f(x) has a root at 1.
Answer: B, D - show solution

f(1) = 1 - 3 + 2 = 0, so (D) holds; f(x) = (x - 1)(x² - 2x - 2), other roots 1 ± √3 ≈ -0.732 and 2.732. Only -0.732 lies in [-0.9, 0], so (A) is false. f'(x) = 3x² - 6x = 0 at x = 0, 2. f(0) = 2, f(2) = -2, f(3) = 2, and f(x) → -2 as x → -1 but x = -1 is excluded. So the minimum value -2 is attained only at x = 2 (B true), while the maximum value 2 is attained at both x = 0 and x = 3 (C false). Answer: (B), (D).

Concept: Extrema on a half-open interval: check endpoints and excluded points. The trap is forgetting the endpoint x = 3 ties with x = 0, and that x = -1 is not in the domain.

Q28MSQ1 mark · no negative· Hard

Suppose a random variable Z follows Normal(μ = 0, σ² = 1) distribution with probability density function g(z) and cumulative distribution function G(z). Another random variable Y follows t₁ distribution with probability density function h(y) and cumulative distribution function H(y). Let c be the positive real number for which g(c) = h(c). Which of the following statements is/are correct?

  1. (A)G(0) = H(0)
  2. (B)G(c) < H(c)
  3. (C)G(-c) < H(-c)
  4. (D)g(0) = h(0)
Answer: A, C - show solution

Both densities are symmetric about 0, so G(0) = H(0) = 0.5 (A true). g(0) = 1/√(2π) ≈ 0.399 and h(0) = 1/π ≈ 0.318 (t₁ is Cauchy), so (D) false. t₁ has heavier tails: h > g for |y| > c and h < g near 0. Hence P(Y > c) > P(Z > c), i.e. H(c) < G(c), so (B) false. By symmetry P(Y < -c) > P(Z < -c), i.e. G(-c) < H(-c) (C true). Answer: (A), (C).

Concept: Heavy tails of the t distribution versus the normal. The trap is assuming a heavier-tailed CDF is larger everywhere; it is smaller on the right tail.

Q29NAT1 mark · no negative· Easy

Consider that for a supervised learning task, the objective function being minimized is f_w(x) = wx, where x ∈ ℝ is the input and w ∈ ℝ is the parameter. Stochastic Gradient Descent with learning rate of 0.10 is used for parameter updates. Suppose that at the end of iteration i, the value of w becomes 10.00. Let x = 10.00 be the input for iteration (i + 1). The value of w at the end of iteration (i + 1) is __________ . (Rounded off to two decimal places)

Answer: 8.9 to 9.1 - show solution

The gradient of f_w(x) = wx with respect to w is x = 10. SGD update: w ← w - η · ∂f/∂w = 10.00 - 0.10 · 10.00 = 9.00. Answer: 9.00 (accepted range 8.9 to 9.1).

Concept: Gradient is taken with respect to the parameter, not the input. The trap is differentiating with respect to x and getting w.

Q30NAT1 mark · no negative· Easy

Consider the game tree for a two-player turn-taking minimax game. The value of a terminal node represents the utility of the game state if the game ends there. 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. The terminal utilities are: MAX strategy | MIN strategy 1 | MIN strategy 2 | MIN strategy 3 1 | 8 | 6 | -1 2 | 1 | 5 | 7 3 | -4 | -3 | -12 At the root, the best strategy for MAX is ___________ . (Answer in integer)

Answer: 2 - show solution

MIN picks the minimum leaf under each MAX move: strategy 1 gives min(8, 6, -1) = -1, strategy 2 gives min(1, 5, 7) = 1, strategy 3 gives min(-4, -3, -12) = -12. MAX picks the largest of -1, 1, -12, which is 1, reached by strategy 2. Answer: 2.

Concept: Minimax backs up min values at MIN nodes first. The trap is MAX greedily chasing the largest leaf (8) under strategy 1.

Q31NAT1 mark · no negative· Easy

Let A be a sorted array containing 1000 distinct integers. You perform a recursive binary search on A to find an element y. Suppose each comparison checks whether the middle element computed during the current recursive step is equal to, less than, or greater than y. The maximum number of comparisons that may have to be performed if y is not an element of A is _______ . (Answer in integer)

Answer: 10 - show solution

Each step makes one (three-way) comparison and recurses on at most the larger half. Worst-case sizes: 1000 → 500 → 250 → 125 → 62 → 31 → 15 → 7 → 3 → 1, then the range becomes empty. That is 10 comparisons, i.e. ⌊log₂ 1000⌋ + 1 = 9 + 1 = 10. Answer: 10.

Concept: Unsuccessful binary search takes ⌊log₂ n⌋ + 1 probes in the worst case. The trap is answering ⌈log₂ 1000⌉ = 10 for the wrong reason or 9 by forgetting the last probe.

Q32NAT1 mark · no negative· Easy

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 and 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: 195 - show solution

A non-leaf node with p node pointers holds p - 1 keys and no record pointers. Need 10p + 11(p - 1) ≤ 4096, so 21p ≤ 4107 and p ≤ 195.57. Maximum p = 195. Answer: 195.

Concept: Internal B+ tree nodes carry only child pointers and keys. The trap is including the data record pointer size, which belongs to leaf nodes.

Q33NAT1 mark · no negative· Moderate

The number of bijections f(·) from the set S = {1, 2, 3, 4} to itself such that f(f(n)) = n, for all n ∈ S, is __________ . (Answer in integer)

Answer: 10 - show solution

f(f(n)) = n means f is an involution: a permutation whose cycles all have length 1 or 2. Count by number of 2-cycles: none: 1 (identity); one 2-cycle: C(4,2) = 6; two 2-cycles: 3 ways to pair four elements. Total 1 + 6 + 3 = 10. Answer: 10.

Concept: Involutions consist of fixed points and transpositions. The trap is forgetting the identity or the double-transposition cases.

Q34NAT1 mark · no negative· Easy

Let X be an exponentially distributed random variable with mean λ (> 0). If P(X > 5) = 0.35, then the conditional probability P(X > 10 | X > 5) is ___________ . (Rounded off to two decimal places)

Answer: 0.34 to 0.36 - show solution

P(X > 10 | X > 5) = P(X > 10)/P(X > 5) = e^(-10/λ)/e^(-5/λ) = e^(-5/λ) = P(X > 5) = 0.35, by the memoryless property. Answer: 0.35 (accepted range 0.34 to 0.36).

Concept: Memorylessness of the exponential distribution. The trap is computing λ first or squaring 0.35.

Q35NAT1 mark · no negative· Easy

The value of Σ_{i=0}^{∞} Σ_{j=1}^{∞} 2^(-i) · 3^(-j) is ______________ . (Answer in integer)

Answer: 1 - show solution

The double sum factorises: (Σ_{i≥0} (1/2)^i)(Σ_{j≥1} (1/3)^j) = [1/(1 - 1/2)] · [(1/3)/(1 - 1/3)] = 2 · (1/2) = 1. Answer: 1.

Concept: Separable double geometric series. The trap is the starting index: j starts at 1, not 0.

Q36MCQ2 marks · -2/3· Easy

Let four points in three-dimensional space be: P1: [2, 3, -1], P2: [3, 1, 1], P3: [5, -2, 3] and P4: [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?

  1. (A)P1, P2
  2. (B)P2, P3
  3. (C)P3, P4
  4. (D)P2, P4
Answer: D - show solution

Manhattan distances: P1-P2 = 1 + 2 + 2 = 5; P1-P3 = 3 + 5 + 4 = 12; P1-P4 = 1 + 0 + 4 = 5; P2-P3 = 2 + 3 + 2 = 7; P2-P4 = 0 + 2 + 2 = 4; P3-P4 = 2 + 5 + 0 = 7. Agglomerative clustering merges the closest pair first: P2 and P4 at distance 4. Answer: (D) P2, P4.

Concept: First merge = smallest pairwise distance. The trap is using Euclidean distance or missing a sign when taking absolute differences.

Q37MCQ2 marks · -2/3· Easy

Which of the following statements is true for Ridge Regression?

  1. (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.
  2. (B)The regularizer of Ridge Regression uses L₁ norm.
  3. (C)Ridge Regression aims to reduce the number of parameters that have negative values.
  4. (D)The regularizer of Ridge Regression may increase the bias of the model, but it helps in reducing the variance in predictions.
Answer: D - show solution

Ridge adds λ‖w‖₂² (squared L₂ norm, not L₁) to shrink weights. It guards against overfitting - good on training, poor on test - which is the reverse of (A). It does not target negative weights (C). Shrinking weights adds bias but lowers variance, which is (D). Answer: (D).

Concept: Regularisation trades bias for variance. The trap is (B): L₁ is Lasso, not Ridge.

Q38MCQ2 marks · -2/3· Moderate

Assume that a Creative (C) person will Succeed (S) if the person is also Disciplined (D), but will not succeed otherwise. Now, consider the following statements: (i) C ∧ S ⇔ D (ii) C ⇒ (S ⇔ D) (iii) C ⇔ ((D ⇒ S) ∨ ¬S) Which of the following options is correct?

  1. (A)Both (i) and (ii) are TRUE
  2. (B)Only (ii) is TRUE
  3. (C)Both (ii) and (iii) are TRUE
  4. (D)Only (iii) is TRUE
Answer: B - show solution

The rule: for a creative person, success holds exactly when discipline holds, i.e. C ⇒ (S ⇔ D) - statement (ii). (i) fails: a non-creative disciplined person makes D true and C ∧ S false, yet the rule says nothing about non-creative people. (iii): (D ⇒ S) ∨ ¬S = ¬D ∨ S ∨ ¬S, which is always true, so (iii) reduces to C ⇔ TRUE, i.e. just C - not the rule. Answer: (B) Only (ii).

Concept: Translating a conditional rule scoped to a condition. The trap is (i), which wrongly forces D to imply creativity and success.

Q39MCQ2 marks · -2/3· Moderate

A recursive function in Python is given. Now, consider the 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)?

def mystery(n):
    if n <= 0:
        return 1
    else:
        return mystery(n-1) + mystery(n-2)
  1. (A)5
  2. (B)9
  3. (C)15
  4. (D)17
Answer: C - show solution

Let C(n) be the number of calls made by mystery(n). C(n) = 1 for n ≤ 0, else C(n) = 1 + C(n-1) + C(n-2). C(0) = C(-1) = 1; C(1) = 1 + 1 + 1 = 3; C(2) = 1 + 3 + 1 = 5; C(3) = 1 + 5 + 3 = 9; C(4) = 1 + 9 + 5 = 15. Answer: (C) 15.

Concept: Counting nodes of a recursion tree. The trap is forgetting that mystery(1) still calls mystery(0) and mystery(-1), since the base case is n ≤ 0.

Q40MCQ2 marks · -2/3· Moderate

Consider a directed graph G = (V, E), where V is the finite set of vertices and E is the set of directed edges between the vertices. G may contain cycles but there is no self-loop. Further, G may not be strongly connected. Let Gᴿ be the graph obtained by reversing the directions of all the edges in G without changing the set of vertices. Assume that Breadth First Search (BFS) or Depth First Search (DFS) from any given vertex v of a graph visits only the reachable vertices from v in that graph. Which of the following statements must always be true, regardless of the structure of G?

  1. (A)If u is a reachable vertex in the BFS of Gᴿ from v, then u is also a reachable vertex in the DFS of G from v.
  2. (B)In Gᴿ, the BFS traversal from v will visit exactly the same set of vertices as the DFS from v in G.
  3. (C)The order of vertices visited in the BFS of Gᴿ from v is the reverse of the order of vertices visited in the DFS of G from v.
  4. (D)If u is a reachable vertex in the DFS of G from v, then v is also a reachable vertex in the BFS of Gᴿ from u.
Answer: D - show solution

BFS and DFS both visit exactly the vertices reachable from the start. If u is reachable from v in G, there is a path v → ... → u; reversing every edge gives a path u → ... → v in Gᴿ, so v is reachable from u in Gᴿ (D true). (A)/(B) fail for G with the single edge v → u: in Gᴿ nothing is reachable from v, but u is reachable in G. (C) fails because traversal orders are unrelated. Answer: (D).

Concept: Reachability reverses under edge reversal. The trap is assuming reversed graphs have the same reachable sets from the same source.

Q41MCQ2 marks · -2/3· Moderate

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. The B+ Tree currently is: Root (non-leaf): keys [5 | 8] with three child pointers. Leaves, left to right (linked): [1, 5] → [7, 8] → [9, 12] → NULL. (The left child of the root is the leaf [1, 5], the middle child is [7, 8], the right child is [9, 12].) 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?

  1. (A)5
  2. (B)8
  3. (C)3 and 5
  4. (D)3, 5 and 8
Answer: A - show solution

3 goes to leaf [1, 5], which overflows as [1, 3, 5] and splits into two leaves, pushing a new separator (3, as the largest key of the left leaf [1, 3] | [5]) into the root. The root would then hold 3, 5, 8 with four children, exceeding 3 pointers, so it splits: [3] and [8] become two internal nodes and the middle key 5 moves up into a new root. The same result follows if the leaf splits as [1] | [3, 5]. New root: 5. Answer: (A) 5.

Concept: Cascading splits in a B+ tree: leaf keys are copied up, internal keys are moved up. The trap is stopping after the leaf split and answering 3, 5 and 8.

Q42MCQ2 marks · -2/3· Moderate

Consider the given relations X, Y and Z. The relation X has three columns P, Q and R. The relation Y has three columns P, Q and S. The relation Z has two columns P and T. X: P Q R Y: P Q S Z: P T P1 Q1 R1 P1 Q1 2 P1 T1 P2 Q2 R2 P1 Q2 5 P3 T2 P3 Q3 R2 P2 Q1 6 P4 T3 P3 Q3 1 P4 NULL Consider the relational algebra expression Π_PRS [ (σ_(Q = Q3 ∨ R = R2) [X ⋈ Y]) ⋈ (σ_(S > 1) [Y ⋈ Z]) ] where ⋈ denotes natural join operation. Which of the following options is the correct output for the given expression?

  1. (A)Two rows (P1, R1, 2) and (P1, R1, 5)
  2. (B)Three rows (P1, R1, 2), (P1, R1, 5) and (P2, R2, 6)
  3. (C)One row (P1, R1, 2)
  4. (D)Zero rows
Answer: D - show solution

X ⋈ Y joins on (P, Q): (P1, Q1, R1, 2) and (P3, Q3, R2, 1); (P2, Q2) has no match in Y. Selecting Q = Q3 or R = R2 keeps only (P3, Q3, R2, 1). Y ⋈ Z joins on P: (P1, Q1, 2, T1), (P1, Q2, 5, T1), (P3, Q3, 1, T2). Selecting S > 1 keeps the two P1 rows. Joining the left result (P3 only) with the right (P1 only) on P, Q, S gives no common tuple. Answer: (D) Zero rows.

Concept: Natural join matches on all common attributes. The trap is joining on P alone or forgetting that the outer join also matches on Q and S.

Q43MCQ2 marks · -2/3· Moderate

Consider the following concept hierarchies (each listed from the most general level to the most specific): Time: Year > Month > Day Location: Country > State > City Item: Item Category > Item Type > Item Which of the following options denotes the total number of possible data cuboids from these concept hierarchies?

  1. (A)4³
  2. (B)2³
  3. (C)2!
  4. (D)4!
Answer: A - show solution

For an n-dimensional cube where dimension i has Lᵢ hierarchy levels, the number of cuboids is Π(Lᵢ + 1); the +1 is the virtual top level 'all' (dimension aggregated away). Here each of the 3 dimensions has 3 levels, so the count is (3 + 1)³ = 4³ = 64. Answer: (A) 4³.

Concept: Cuboid count with hierarchies. The trap is 2³, which counts cuboids only when each dimension has a single level.

Q44MCQ2 marks · -2/3· Moderate

Let X and Y be two independent random variables. X follows Bernoulli(p = 0.3) distribution and Y follows Normal(μ = 0, σ² = 100) distribution. Which of the following options is the variance of (2X - 1)Y ?

  1. (A)100
  2. (B)90
  3. (C)49
  4. (D)21
Answer: A - show solution

Let W = 2X - 1, which is ±1, so W² = 1. By independence, E[WY] = E[W]E[Y] = E[W] · 0 = 0. Var(WY) = E[W²Y²] - (E[WY])² = E[W²]E[Y²] - 0 = 1 · 100 = 100. Answer: (A) 100.

Concept: Variance of a product of independent variables with a zero-mean factor. The trap is computing Var(2X - 1) = 0.84 and multiplying by 100 to get 84 or similar.

Q45MCQ2 marks · -2/3· Hard

Let L = lim_{n→∞} Σ_{k=0}^{n} e^(-n) n^k / k! Which of the following is the value of L?

  1. (A)0.5
  2. (B)1.0
  3. (C)0
  4. (D)e⁻¹
Answer: A - show solution

The sum is P(Nₙ ≤ n) where Nₙ ~ Poisson(n). Nₙ is a sum of n independent Poisson(1) variables, with mean n and variance n. By the central limit theorem, (Nₙ - n)/√n → N(0, 1), so P(Nₙ ≤ n) = P((Nₙ - n)/√n ≤ 0) → Φ(0) = 0.5. Answer: (A) 0.5.

Concept: Recognising a Poisson CDF and applying the CLT. The trap is answering 1 because the full series Σ n^k/k! equals e^n; here the sum stops at k = n.

Q46MCQ2 marks · -2/3· Easy

Let γ₁, γ₂, γ₃ be the eigenvalues of the matrix [1 0 0 ] [0 cos t sin t ] [0 -sin t cos t ], where t ∈ [-π, π] is in radians. Which one of the following options lists all the possible values of t satisfying γ₁ + γ₂ + γ₃ = 1 + √2 ?

  1. (A){π/3, -π/4}
  2. (B){π/4, -π/3}
  3. (C){π/4, -π/4}
  4. (D){π/3, -π/3}
Answer: C - show solution

The sum of eigenvalues equals the trace: 1 + cos t + cos t = 1 + 2cos t. Setting 1 + 2cos t = 1 + √2 gives cos t = 1/√2. In [-π, π], t = π/4 or t = -π/4. Answer: (C) {π/4, -π/4}.

Concept: Trace equals sum of eigenvalues, so no eigenvalue computation is needed. The trap is forgetting the negative solution of cos t = 1/√2.

Q47MSQ2 marks · no negative· Easy

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?

  1. (A)Accuracy of the classifier is 11/15.
  2. (B)Precision of Class X is higher than the Precision of Class Y.
  3. (C)Recall of Class X is higher than the Recall of Class Y.
  4. (D)Accuracy of the classifier is 14/15.
Answer: A, B - show solution

Confusion counts: X predicted X = 14, X predicted Y = 6, Y predicted Y = 8, Y predicted X = 2. Accuracy = (14 + 8)/30 = 22/30 = 11/15 (A true, D false). Precision X = 14/(14 + 2) = 0.875; precision Y = 8/(8 + 6) ≈ 0.571, so (B) true. Recall X = 14/20 = 0.70; recall Y = 8/10 = 0.80, so (C) false. Answer: (A), (B).

Concept: Precision divides by predicted counts, recall by actual counts. The trap is swapping the two denominators.

Q48MSQ2 marks · no negative· Moderate

Let P(x) be a predicate. Which of the following statements is/are NOT valid in first-order logic?

  1. (A)∀x P(x) ⇒ ∃x P(x)
  2. (B)∃x P(x) ⇒ ∀x P(x)
  3. (C)∃x P(x) ⇔ ∀x P(x)
  4. (D)∀x P(x) ⇒ ∃x ¬P(x)
Answer: B, C, D - show solution

In standard first-order semantics the domain is non-empty. (A) If P holds for every element, it holds for some element: valid. (B) Some element satisfying P does not make all satisfy it: not valid. (C) contains (B) as one direction: not valid. (D) If P holds for all x, then ¬P(x) holds for none, so the implication fails whenever ∀x P(x) is true: not valid. Answer: (B), (C), (D).

Concept: Universal implies existential (non-empty domain), not the reverse. The trap is thinking (D) is valid by misreading it as ∀x P(x) ⇒ ¬∃x ¬P(x).

Q49MSQ2 marks · no negative· Moderate

Consider the problem of sorting the given array in ascending order: P = [1, 2, 3, 5, 4] Consider two sorting algorithms Bubble Sort (BS) and Insertion Sort (IS). Let N1 be the total number of comparisons done by BS on the elements of P and N2 be the total number of comparisons done by IS on the elements of P. Which of the following options is/are correct?

  1. (A)N1 = 10, N2 = 4
  2. (B)N1 > N2
  3. (C)IS on P will perform only one swap
  4. (D)Both BS and IS on P will make at least one unnecessary comparison (i.e., comparing elements that are already in correct order)
Answer: B, C, D - show solution

Insertion sort: insert 2 (1 comparison), 3 (1), 5 (1), 4 (compare with 5 and shift, then compare with 3 and stop: 2). N2 = 5, with one swap/shift (C true), so (A) false. Bubble sort: the plain version makes 4 + 3 + 2 + 1 = 10 comparisons; even with an early-exit flag it makes 4 + 3 = 7. Either way N1 > N2 (B true). Both compare already-ordered pairs such as (1, 2) (D true). Answer: (B), (C), (D).

Concept: Counting comparisons on a nearly sorted array. The trap is counting only 4 comparisons for insertion sort, missing the final comparison that stops the insertion of 4.

Q50MSQ2 marks · no negative· Moderate

Consider the given Python program. Which of the following options is/are correct?

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
  1. (A)f1 and f2 share the same list x
  2. (B)Output of Line Q is [10, 20]
  3. (C)Output of Line R is [10, 20, 30]
  4. (D)Output of Line S is [10, 20, 40]
Answer: B, D - show solution

Each call to outer() creates a new list x, and the returned inner closure keeps its own x. So f1 and f2 have separate lists (A false). Line P: [10]. Line Q: [10, 20] (B true). Line R uses f2's own list: [30] (C false). Line S: f1's list becomes [10, 20, 40] (D true). Answer: (B), (D).

Concept: Closures capture the enclosing scope of the call that created them. The trap is thinking all closures from the same function share one list.

Q51MSQ2 marks · no negative· Moderate

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. Employee Output EmpID TeamID EmpID TeamSize 1 8 1 3 2 8 2 3 3 8 3 3 4 7 4 2 5 7 5 2 6 9 6 1 Which of the following is/are correct?

  1. (A)SELECT E.EmpID, B.TeamSize FROM Employee AS E, (SELECT TeamID, COUNT(TeamID) AS TeamSize FROM Employee GROUP BY TeamID) AS B WHERE E.TeamID = B.TeamID
  2. (B)SELECT A.EmpID, COUNT(B.TeamID) AS TeamSize FROM Employee AS A, Employee AS B WHERE A.TeamID = B.TeamID AND A.EmpID = B.EmpID GROUP BY A.EmpID
  3. (C)SELECT B.EmpID, B.TeamSize FROM (SELECT EmpID, COUNT(TeamID) AS TeamSize FROM Employee GROUP BY EmpID) AS B
  4. (D)SELECT A.EmpID, B.TeamSize FROM Employee AS A, (SELECT COUNT(TeamID) AS TeamSize FROM Employee GROUP BY TeamID) AS B WHERE A.TeamID = B.TeamID
Answer: A - show solution

(A) The derived table gives (TeamID, size) per team; joining each employee to its team's row yields the required output. (B) The extra condition A.EmpID = B.EmpID pairs each employee only with itself, so every count is 1. (C) Grouping by the primary key EmpID gives 1 for everyone. (D) The derived table has no TeamID column, so B.TeamID is invalid and the query errors. Answer: (A).

Concept: Aggregate per group, then join back. The trap is (B): the self-join condition on EmpID destroys the grouping by team.

Q52MSQ2 marks · no negative· Moderate

Let M = (Iₙ - (1/n) 𝟏𝟏ᵀ) be a matrix, where 𝟏 = (1, 1, 1, ..., 1)ᵀ ∈ ℝⁿ and Iₙ is the identity matrix of order n. Which of the following options is/are correct?

  1. (A)Mᵀ = M
  2. (B)M² = Iₙ
  3. (C)Trace(M) = n
  4. (D)M is a projection matrix
Answer: A, D - show solution

M is the centering matrix. (A) Iₙ and 𝟏𝟏ᵀ are symmetric, so M is symmetric. M² = Iₙ - (2/n)𝟏𝟏ᵀ + (1/n²)𝟏(𝟏ᵀ𝟏)𝟏ᵀ = Iₙ - (2/n)𝟏𝟏ᵀ + (1/n)𝟏𝟏ᵀ = M, so M² = M, not Iₙ (B false). Trace = n - (1/n) · n = n - 1 (C false). Symmetric and idempotent means M is an (orthogonal) projection (D true). Answer: (A), (D).

Concept: Properties of the centering matrix. The trap is confusing idempotent (M² = M) with involutory (M² = I).

Q53MSQ2 marks · no negative· Moderate

Let X₁, X₂, ..., Xₙ be n independent random variables. Each of the random variables follows Normal(μ = 0, σ² = 1) distribution. Define X̄ = (1/n) Σ_{i=1}^{n} Xᵢ. Which of the following statements is/are correct?

  1. (A)Σ_{i=1}^{n} Xᵢ² follows Chi-square distribution with n degrees of freedom.
  2. (B)Σ_{i=1}^{n} (Xᵢ - X̄)² follows Chi-square distribution with (n - 1) degrees of freedom.
  3. (C)X₁² + Xₙ² follows exponential distribution with mean 2.
  4. (D)(√n X̄)² follows Chi-square distribution with 2 degrees of freedom.
Answer: A, B, C - show solution

(A) A sum of n squared independent standard normals is χ²ₙ: true. (B) The centred sum of squares loses one degree of freedom (Cochran's theorem): χ²ₙ₋₁, true. (C) X₁² + Xₙ² is χ²₂, whose density is (1/2)e^(-x/2), i.e. exponential with mean 2: true. (D) X̄ ~ N(0, 1/n), so √n X̄ ~ N(0, 1) and its square is χ²₁, not χ²₂: false. Answer: (A), (B), (C).

Concept: Chi-square facts and χ²₂ = Exp(mean 2). The trap is (D), giving the wrong degrees of freedom for a single squared normal.

Q54MSQ2 marks · no negative· Easy

Let X be a discrete valued random variable with cumulative distribution function F(x). Which of the following statements is/are correct?

  1. (A)F(x) is always a positive function.
  2. (B)F(x) is a non-decreasing function.
  3. (C)F(x) has jump discontinuity.
  4. (D)F(x) is a left continuous function.
Answer: B, C - show solution

F(x) = P(X ≤ x). Below the smallest support point F(x) = 0, so it is non-negative but not always positive (A false). Any CDF is non-decreasing (B true). For a discrete variable F is a step function that jumps by P(X = a) at each support point a (C true). A CDF defined with ≤ is right continuous; at a jump it is not left continuous (D false). Answer: (B), (C).

Concept: CDF properties. The trap is (D): with F(x) = P(X ≤ x), continuity is from the right, not the left.

Q55NAT2 marks · no negative· Easy

Consider that Linear Ridge Regression is being used to learn a prediction function y_pred = wᵀx, where w, x ∈ ℝ² 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]ᵀ. In the next step, for the input x = [1.00, 2.00]ᵀ, the predicted value of y is noted. Let the relation between x = [x₁, x₂]ᵀ and the true value of y be y_true = x₁ + x₂. The value of the overall regularized loss function for this instance is _______ . (Rounded off to two decimal places)

Answer: 6.9 to 7.1 - show solution

y_pred = (-3)(1) + (4)(2) = 5. y_true = 1 + 2 = 3. Absolute error = |5 - 3| = 2. Ridge penalty = 0.20 · ‖w‖₂² = 0.20 · (9 + 16) = 5. Total loss = 2 + 5 = 7.00. Answer: 7.00 (accepted range 6.9 to 7.1).

Concept: Ridge uses the squared L₂ norm of the weights. The trap is using ‖w‖ = 5 (not squared), giving 3.00.

Q56NAT2 marks · no negative· Easy

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: 135 - show solution

Without biases, each pair of consecutive fully connected layers contributes (size of one) x (size of next) weights. 30 x 4 = 120, 4 x 3 = 12, 3 x 1 = 3. Total = 120 + 12 + 3 = 135. Answer: 135.

Concept: Counting weights between layers. The trap is adding bias terms (which would give 143) or counting neurons instead of connections.

Q57NAT2 marks · no negative· Easy

A clinic specializes in testing for a disease D. The result of the test can be either positive or negative. A study revealed that if a person suffers from the disease D, 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 D, 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 D occurs in 30% of the individuals. If a person tests positive for D in that clinic, the probability that he/she actually suffers from the disease D is __________ . (Rounded off to two decimal places)

Answer: 0.76 to 0.78 - show solution

P(+) = P(+|D)P(D) + P(+|not D)P(not D) = 0.8 · 0.3 + 0.1 · 0.7 = 0.24 + 0.07 = 0.31. By Bayes, P(D|+) = 0.24/0.31 ≈ 0.774. Answer: 0.77 (accepted range 0.76 to 0.78).

Concept: Bayes' theorem with a base rate. The trap is answering the sensitivity 0.80 and ignoring false positives.

Q58NAT2 marks · no negative· Moderate

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

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)
Answer: 8 - show solution

fun is one bubble-sort pass that swaps adjacent out-of-order pairs and returns the number of swaps; the list is modified in place. The loop runs 5 passes, enough to sort a 5-element list, so count equals the total number of adjacent swaps, which equals the number of inversions. Inversions in [5, 3, 4, 1, 2]: 5 with 3, 4, 1, 2 (4); 3 with 1, 2 (2); 4 with 1, 2 (2); total 8. Pass by pass: 4, 2, 2, 0, 0. Answer: 8.

Concept: Bubble sort swaps equal the inversion count. The trap is counting comparisons instead of swaps, or thinking the list is copied between calls.

Q59NAT2 marks · no negative· Moderate

Let there be two relations X and Y as shown. X has three columns P, Q and R. Y has two columns P and S. X: P Q R Y: P S P1 Q1 R1 P1 10 P2 Q2 R2 P1 15 P3 Q3 R2 P2 20 P3 1 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) } The number of tuples that will be returned is __________ . (Answer in integer)

Answer: 2 to 3 - show solution

The condition ∃z ∈ X (t[P] = z[P]) is always true (take z = t). So the result is the tuples of X whose P value has some Y tuple with S > 1. P1: S = 10, 15, yes. P2: S = 20, yes. P3: only S = 1, no. TRC returns a set, so the answer is 2 tuples (P1, Q1, R1) and (P2, Q2, R2). The key also accepts 3, which matches counting P1 once per matching Y tuple (bag semantics). Answer: 2 (accepted range 2 to 3).

Concept: Existential quantifiers filter, they do not multiply tuples. The trap is counting P1 twice because two Y tuples match it.

Q60NAT2 marks · no negative· Moderate

Let Account be a relation as shown. Account AccNo Balance A1 5000 A2 5000 A3 10000 A4 15000 A5 18000 Consider the given SQL query. The number of rows returned by the SQL query is __________ . (Answer in integer)

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)
Answer: 3 - show solution

For each account, compare (number of strictly larger balances) with (number of strictly smaller balances). A1: 3 larger, 0 smaller, kept. A2: same as A1, kept. A3 (10000): 2 larger, 2 smaller, kept (2 ≥ 2). A4: 1 larger, 3 smaller, rejected. A5: 0 larger, 4 smaller, rejected. Rows returned: A1, A2, A3. Answer: 3.

Concept: Correlated subqueries evaluated per outer row. The trap is treating the equal balances 5000 and 5000 as smaller/larger than each other; strict comparisons ignore ties.

Q61NAT2 marks · no negative· Moderate

Consider an ER model with the entities E1(A11, A12, A13) and E2(A21, A22, A23), where A11, A12, A13 are the attributes of E1, and A21, A22, A23 are the attributes of E2. Let A22 be a multi-valued attribute. A11 and A21 are the primary keys of E1 and E2, respectively. Let R12 be a many-to-many relationship between E1 and E2. Participation of both E1 and E2 in R12 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: 4 - show solution

E1 → E1(A11, A12, A13). E2 without the multi-valued attribute → E2(A21, A23). The multi-valued attribute needs its own relation → E2_A22(A21, A22) with key (A21, A22); keeping it inside E2 would repeat A23 and break normal form. The many-to-many relationship needs its own relation → R12(A11, A21). Total participation on an M:N relationship does not allow merging R12 into either entity. Total: 4. Answer: 4.

Concept: Mapping M:N relationships and multi-valued attributes. The trap is merging R12 into an entity because of total participation, which only works for 1:1 or 1:N.

Q62NAT2 marks · no negative· Moderate

For a given data set {x₁, x₂, ..., xₙ}, where n = 100, it is known that (1/2000) Σ_{i=1}^{n} Σ_{j=1}^{n} (xᵢ - xⱼ)² = 99 Let us denote x̄ = (1/n) Σ_{i=1}^{n} xᵢ. The value of (1/99) Σ_{i=1}^{n} (xᵢ - x̄)² is __________ . (Answer in integer)

Answer: 10 - show solution

Write xᵢ - xⱼ = (xᵢ - x̄) - (xⱼ - x̄). Expanding, the cross term sums to zero, so Σᵢ Σⱼ (xᵢ - xⱼ)² = 2n Σᵢ (xᵢ - x̄)². With n = 100: 200 · SS / 2000 = 99, so SS/10 = 99 and SS = 990. Then (1/99) · 990 = 10. Answer: 10.

Concept: Pairwise squared differences equal 2n times the sum of squared deviations. The trap is forgetting the factor 2 (pairs are counted in both orders).

Q63NAT2 marks · no negative· Moderate

Let X be a random variable that follows Uniform(-1, 1) distribution. The conditional distribution of the random variable Y given X = x is the Uniform(x² - 0.1, x² + 0.1) distribution. The value of correlation(X, Y) is __________ . (Answer in integer)

Answer: 0 - show solution

E[Y | X] = x², so E[XY] = E[X · E[Y | X]] = E[X³] = 0, since X is symmetric about 0. Also E[X] = 0. Cov(X, Y) = E[XY] - E[X]E[Y] = 0, and both variances are positive, so the correlation is 0, even though Y clearly depends on X. Answer: 0.

Concept: Zero correlation does not mean independence; correlation only captures linear dependence. The trap is expecting a non-zero value because Y is a function of X plus noise.

Q64NAT2 marks · no negative· Moderate

Let A (5 × 5) be a matrix such that each of its elements follows Bernoulli(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: 0.08 to 0.12 - show solution

Row 2 and column 3 share the entry a₂₃; the other 4 entries in each are independent. If a₂₃ = 1 (prob 1/2), each needs 2 ones among 4: C(4,2)/16 = 6/16, so this case gives (1/2)(6/16)² = 36/512. If a₂₃ = 0, each needs 3 ones among 4: 4/16, giving (1/2)(4/16)² = 16/512. Total = 52/512 ≈ 0.1016. Answer: 0.10 (accepted range 0.08 to 0.12).

Concept: Conditioning on the shared cell. The trap is treating the row and column sums as independent and squaring C(5,3)/32.

Q65NAT2 marks · no negative· Moderate

Let A = (Iₙ - (1/n) 𝟏𝟏ᵀ) be a matrix, where 𝟏 = (1, 1, 1, ..., 1)ᵀ ∈ ℝⁿ and Iₙ is the identity matrix of order n. The value of max_{x ∈ S} xᵀAx, where S = {x ∈ ℝⁿ | xᵀx = 1}, is __________ . (Answer in integer)

Answer: 1 - show solution

A is symmetric and idempotent (the centering projection), so its eigenvalues are 0 (eigenvector 𝟏) and 1 (any vector orthogonal to 𝟏, multiplicity n - 1). The maximum of xᵀAx over unit vectors is the largest eigenvalue (Rayleigh quotient), which is 1, attained e.g. at x = (1, -1, 0, ..., 0)/√2. Answer: 1.

Concept: Rayleigh quotient maximum equals the largest eigenvalue; projections have eigenvalues 0 and 1. The trap is answering n - 1 (the trace) instead of the largest eigenvalue.

Answers are the official GATE answer key. Questions that depend on a figure are left out until they can be shown faithfully.