GATE DA 2026 — All 65 Questions with Solutions
Data Science & AI (DA). Every question from this paper with the official answer key and a step-by-step solution. 100 marks total.
- Question 1General Aptitudemcq1 markVerbosity : Brevity :: Insolence : ___________ Choose the word that best fills the blank.
- A.Innocence
- B.Respect✓
- C.Solace
- D.Wealth
Answer: B
Solution
Verbosity (using too many words) is the opposite of brevity (using few words). The pair is a pair of antonyms. Insolence means rude, disrespectful behaviour, so its opposite is respect. Answer: (B) Respect. - A.
- Question 2General Aptitudemcq1 markThe 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: B
Solution
Factorise: . Each digit must be between 1 and 9. Splitting 70 into three single digits is possible only as (any split using 1 would need a factor like 10 or 14, which is not a digit). Sum of digits . Answer: (B) 14. - A.
- Question 3General Aptitudemcq1 markThe four pieces of a puzzle are shown in the figure below. 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?

- A.P✓
- B.Q
- C.R
- D.S
Answer: A
Solution
Each figure is a black square with a white shape cut out of it, so the four black pieces have to fill exactly the black area around the white shape. Match the edges of the pieces with the outline of the white shape: - The piece with the semicircular bite fits round the top of the round "head". - The piece with the sharp triangular notch fits the long pointed "beak" on the right. - The two remaining pieces (the one with a small step and the one with two peaks) fill the left side and the bottom around the tilted square "body". Only in figure P do the beak, the round head and the tilted square all line up with these cut-outs at the same time. In Q the beak is missing, in R the body is not a tilted square, and in S the head is not round. Answer: (A) P. - A.
- Question 4General Aptitudemcq1 markConsider two distinct positive real numbers , with . Let and . The relation between and is _______.
- A.
- B.
- C.✓
- D.
Answer: C
Solution
Take of both numbers:The two logarithms are equal, so . (In general .) Answer: (C) . - A.
- Question 5General Aptitudemcq1 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: D
Solution
"If ... had been ..., ... would have ..." is a third conditional. It describes a situation that did NOT happen in the past. So the movie was not a commercial success, and the actor did not make enough money from it. Answer: (D) His latest movie was not commercially successful. - A.
- Question 6General Aptitudemcq2 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: A
Solution
- We part at a place: "parted at the door". - The door belongs to the cabin: "the door of the cabin". - A room is rented for a period of time: "rented for the night". Answer: (A) at; of; for. - A.
- Question 7General Aptitudemcq2 marksFive 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: B
Solution
Write the numbers in order as . - Mean 12, so the sum is . - Median 18, so . - The single mode is 20. Only and can be 20 (they are the only values allowed to be at least 18), so , and 20 must appear more often than any other value. Then , with : - : 1 would also appear twice, giving two modes, which is not allowed. - : works, giving . Exactly one way. Answer: (B) 1. - A.
- Question 8General Aptitudemcq2 marksRishi 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: D
Solution
Four players and three games, and every loser leaves, so exactly one student never loses. That student plays the last game and wins it. Try Tanvi as the unbeaten player: - Girls won only one game, so Tanvi wins exactly one game. She therefore plays only once, in game 3. - Game 1 is between two students of the same class and Tanvi is not in it, so it must be Rishi vs Swathi (Class 5). A Class 5 student wins it. - Game 2 is the winner of game 1 against Pavan (different classes, as required). - Boys won two games and Tanvi's win is the girls' only win, so games 1 and 2 were won by boys. Rishi wins game 1 and game 2. - Game 3: Rishi vs Tanvi, and Tanvi wins. Check: Class 5 won 2 games and Class 4 won 1, boys won 2 and girls won 1, and only game 1 was between classmates. All conditions hold. The official key also gives Tanvi. Answer: (D) Tanvi. - A.
- Question 9General Aptitudemcq2 marks, and are distinct single-digit whole numbers taking values from 0 to 9. is a two-digit number with being in the units place and in the tens place. Similarly, is a two-digit number. It is known that and are consecutive numbers and , with being a three-digit number. The value of is __________
- A.4
- B.5
- C.6✓
- D.7
Answer: C
Solution
Let the two consecutive numbers be and . Since , we need . The sum must end in , the tens digit of , and all six digits must be different. Checking: - : , but , so the digits are not distinct. - : , but again . - : . Take and : and , so , and the last digit is as required. The digits are all different, so . Answer: (C) 6. - A.
- Question 10General Aptitudemcq2 marksIn the given figure, , , and are three points on a circle of radius 10 cm with as its center, , and . The figure is representative. The area of the shaded region is ______________ cm.

- A.50
- B.
- C.✓
- D.100
Answer: C
Solution
is an inscribed angle on arc , so the central angle on that arc is . Because , the figure is symmetric about . The remaining splits equally:The shaded region is triangle plus triangle :Answer: (C) . - A.
- Question 11Machine Learningmcq1 markFor 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?
- A.
- B.✓
- C.
- D.
Answer: B
Solution
The principal components are eigenvectors of the (symmetric) covariance matrix. Eigenvectors of a symmetric matrix can always be chosen orthogonal, and PCA returns them as an orthonormal set. So any two different principal components, including the 1st and the 10th, are perpendicular: . Answer: (B). - A.
- Question 12Machine Learningmcq1 markConsider 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: C
Solution
Model selection uses only the training data: samples. The test set is kept aside. LOOCV leaves out one sample at a time, so it creates one split per training sample: 900 splits. The number of classes (10) and the input dimension (512) do not affect this. Answer: (C) 900. - A.
- Question 13Artificial Intelligencemcq1 markWhich 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: C
Solution
Uninformed (blind) search uses only the problem definition: BFS, DFS, depth-limited search, iterative deepening and uniform-cost search. A* uses a heuristic that estimates the cost to the goal, with , so it is an informed search. Answer: (C) A* Search. - A.
- Question 14Artificial Intelligencemcq1 markWhich of the following statements is NOT true? (The names of the predicates are intuitive.)
- A.
- B.
- C."Each king is a person" is equivalent to✓
- D."All humans are mortal" is equivalent to
Answer: C
Solution
- (A) Being classmates is a symmetric relation, so this is true. - (B) "Everyone likes ice cream" is the same as "there is nobody who does not like ice cream", so this is true. - (C) says that every object is a king and a person. "Each king is a person" needs an implication: . Using with is a classic mistake, so this statement is NOT true. - (D) This is the correct translation, so it is true. Answer: (C). - A.
- Question 15Programming, Data Structures and Algorithmsmcq1 markConsider that the quick sort algorithm is used to sort an array of distinct randomly ordered elements. In every call, the pivot is chosen as the first element of the current subarray. Let 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 in this scenario?
- A.
- B.
- C.
- D.✓
Answer: D
Solution
The input is in random order, so the first element is equally likely to be any rank. If the pivot is the -th smallest, the two subarrays have sizes and , each with probability . Averaging over all pivot positions and adding linear partition time:This solves to . (A) is the worst case, and (B) and (C) assume fixed split ratios, which is not the expected case. Answer: (D). - A.
- Question 16Programming, Data Structures and Algorithmsmcq1 markConsider the given Python program.
Which of the following is the correct output of this program?pythondef 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, []))- A.
[1] [2] [3] - B.✓
[1] [1, 2] [3] - C.
[1] [2] [1, 2, 3] - D.
[1] [1, 2] [1, 3]
Answer: B
Solution
A default argument value is created once, when the function is defined, and the same list object is reused on every call that does not passlst. -append_to_lst(1): the default list becomes[1]. -append_to_lst(2): the same default list becomes[1, 2]. -append_to_lst(3, []): a new empty list is passed, so the result is[3]. Answer: (B). - A.
- Question 17Database Management and Warehousingmcq1 markLet be a relational schema with functional dependency set . Which of the following statements is correct?
- A.AD, ED and CD are the only candidate keys of R.✓
- B.AD and ED are the only candidate keys of R.
- C.A, E and CD are the only candidate keys of R.
- D.A and CD are the only candidate keys of R.
Answer: A
Solution
never appears on the right side of an FD, so every key contains . - : gives , then gives . So is a key. - : gives , then gives . So is a key. - : , , gives . So is a key. - , so it is not a key. alone is not a key either. All three keys are minimal (no single attribute determines everything), so the candidate keys are exactly , and . Answer: (A). - A.
- Question 18Database Management and Warehousingmcq1 markConsider 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: D
Solution
In the location hierarchy, Country is above State (Country, then State, then City). Going from Country to State moves to a finer level of detail, which is a drill-down (roll-down). Roll-up would go the other way (State to Country). Slicing and dicing select a sub-cube without changing the level of detail. Answer: (D) Drill-down. - A.
- Question 19Probability and Statisticsmcq1 markLet be a randomly chosen non-empty subset of . Which of the following is the probability that the product of all the elements of is even?
- A.
- B.
- C.✓
- D.
Answer: C
Solution
There are non-empty subsets, all equally likely. The product is odd exactly when every element is odd. has 1013 odd numbers, so there are non-empty all-odd subsets.Answer: (C). - A.
- Question 20Probability and Statisticsmcq1 markSuppose that a computer program provides a non-negative and integer-valued random solution to the equation . Which of the following is the probability that all of in the provided solution are positive?
- A.✓
- B.
- C.
- D.
Answer: A
Solution
By stars and bars: - Non-negative solutions of : . - Positive solutions (put 1 in each first, then share the remaining 16): . Assuming each solution is equally likely:Answer: (A). - A.
- Question 21Linear Algebramcq1 markLet be a matrix, where , and . Which of the following options is equal to ?
- A.
- B.✓
- C.
- D.
Answer: B
Solution
is a rotation by , so is a rotation by . is a rotation by , so . , so . Answer: (B) . - A.
- Question 22Linear Algebramcq1 markConsider a set . Let be another set which is a subspace of with dimension two. Which of the following gives the area of ?
- A.✓
- B.
- C.
- D.
Answer: A
Solution
is the solid ball of radius centred at the origin. A 2-dimensional subspace is a plane through the origin. A plane through the centre cuts the ball in a disc of the full radius 4. Area . Answer: (A). - A.
- Question 23Machine Learningmsq1 markIn 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
Which of the following options is/are the correct matching(s)?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- 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: B
Solution
- Clustering: K-Medoid (A2), a partition-based clustering method. - Classification: Naive Bayes (A4). - Sampling: Markov Chain Monte Carlo (A1). - Feature extraction: Linear Discriminant Analysis (A3), which projects data onto directions that best separate the classes. Only option (B) has this matching. The others pair K-Medoid with feature extraction or Naive Bayes with clustering, which is wrong. Answer: (B). - A.
- Question 24Artificial Intelligencemsq1 markSentence is said to entail Sentence if whenever is , also must hold . Which of the following statements is/are correct if entails ?
- A.✓
- B.is✓
- C.if then✓
- D.if then
Answer: A, B, C
Solution
means there is no situation where is true and is false. - (A) So is valid. Correct. - (B) can never be true, so it is always FALSE. Correct. - (C) "if then " is the same implication. Correct. - (D) The converse does not follow. Incorrect. Answer: (A), (B), (C). - A.
- Question 25Programming, Data Structures and Algorithmsmsq1 markYou are given the following Pre-order and In-order traversals of a Binary Tree T with nodes E, F, G, P, Q, R, S.
Which of the following statements is/are true about the Binary Tree T?Pre-order: P Q S E R F G In-order: S Q E P F R G- A.Node P is the root of T✓
- B.The Post-order traversal of T 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: A, B
Solution
The first pre-order element, P, is the root. In the in-order sequence, S Q E lies to the left of P and F R G to the right. - Left part: next in pre-order is Q, so Q is the root with S on the left and E on the right. - Right part: next is R, so R is the root with F on the left and G on the right.
- (A) P is the root. True. - (B) Post-order (left, right, root): S E Q F G R P. True. - (C) Q has two children. False. - (D) G is the right child of R. False. Answer: (A), (B).P / \ Q R / \ / \ S E F G - A.
- Question 26Database Management and Warehousingmsq1 markConsider 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?
- A.Inserting records into relation r✓
- B.Deleting records from relation s✓
- C.Deleting records from relation r
- D.Inserting records into relation s
Answer: A, B
Solution
The constraint is: every value of in must exist as some in . - Inserting into (the referenced table) only adds possible targets. It never violates. - Deleting from (the referencing table) removes references. It never violates. - Deleting from can remove an value that some row of still refers to. It can violate. - Inserting into can add an value that does not exist in . It can violate. Answer: (A), (B). - A.
- Question 27Calculus and Optimizationmsq1 markLet be a function defined on . Which of the following statements is/are correct?
- A.has exactly two roots in .
- B.has a minimum at 2 only.✓
- C.has maximum at 0 only.
- D.has a root at 1.✓
Answer: B, D
Solution
Roots: , so , giving and , i.e. about , and . - (A) Only lies in . False. - (D) is a root. True. Extrema: at and , with and . At the right end, . The left end is excluded, and there without ever reaching it. - (B) The minimum value is reached only at . True. - (C) The maximum value 2 is reached at both and , so "only at 0" is false. Answer: (B), (D). - A.
- Question 28Probability and Statisticsmsq1 markSuppose a random variable follows distribution with probability density function and cumulative distribution function . Another random variable follows distribution with probability density function and cumulative distribution function . Let be the positive real number for which . Which of the following statements is/are correct?
- A.✓
- B.
- C.✓
- D.
Answer: A, C
Solution
Both densities are symmetric about 0. The (Cauchy) distribution has heavier tails and a lower peak:So for and for . - (A) By symmetry, . True. - (C) , because in that tail. True. - (B) By symmetry , so . False. - (D) . False. Answer: (A), (C). - A.
- Question 29Machine Learningnat1 markConsider that for a supervised learning task, the objective function being minimized is , where is the input and is the parameter. Stochastic Gradient Descent with learning rate of 0.10 is used for parameter updates. Suppose that at the end of iteration , the value of becomes 10.00. Let be the input for iteration . The value of at the end of iteration is __________ . (Rounded off to two decimal places)
Answer: 8.9 to 9.1
Solution
SGD update: . Here , soAnswer: 9.00 (accepted range 8.90 to 9.10). - Question 30Artificial Intelligencenat1 markConsider 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)

Answer: 2
Solution
MIN picks the smallest leaf under each MIN node: - Strategy 1: - Strategy 2: - Strategy 3: MAX then picks the largest of , which is 1, reached through strategy 2. Answer: 2. - Question 31Programming, Data Structures and Algorithmsnat1 markLet 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
Solution
Each recursive step does one (three-way) comparison and then continues in a half of size at most :That is 10 steps before the range becomes empty. In general the worst case is comparisons. Answer: 10. - Question 32Database Management and Warehousingnat1 markIn 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
Solution
A non-leaf node with node pointers holds keys (data record pointers appear only in leaves):So . Check: . Answer: 195. - Question 33Probability and Statisticsnat1 markThe number of bijections from the set to itself such that , for all , is __________ . (Answer in integer)
Answer: 10
Solution
means is an involution: every element is either fixed or swapped with exactly one partner. - No swaps (identity): 1 - One swap: - Two swaps: Total . Answer: 10. - Question 34Probability and Statisticsnat1 markLet be an exponentially distributed random variable with mean . If , then the conditional probability is ___________ . (Rounded off to two decimal places)
Answer: 0.34 to 0.36
Solution
The exponential distribution is memoryless:(Equivalently, .) Answer: 0.35 (accepted range 0.34 to 0.36). - Question 35Calculus and Optimizationnat1 markThe value of is ______________ . (Answer in integer)
Answer: 1
Solution
The double sum separates into a product:Product . Answer: 1. - Question 36Machine Learningmcq2 marksLet 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?
- A.
- B.
- C.
- D.✓
Answer: D
Solution
Agglomerative clustering first merges the closest pair. Manhattan distances: - - - - - - The smallest is . Answer: (D). - A.
- Question 37Machine Learningmcq2 marksWhich 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 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: D
Solution
Ridge regression adds to the squared-error loss. - (A) Regularization guards against overfitting: doing well on training data but poorly on test data. The statement has it backwards. False. - (B) Ridge uses the norm; Lasso uses . False. - (C) It shrinks the size of the weights, not their sign. False. - (D) Shrinking the weights adds a little bias but reduces variance: the bias-variance trade-off. True. Answer: (D). - A.
- Question 38Artificial Intelligencemcq2 marksAssume that a Creative () person will Succeed () if the person is also Disciplined (), but will not succeed otherwise. Now, consider the following statements: (i) (ii) (iii) 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: B
Solution
The sentence talks only about creative people: if , then ( exactly when ). That is , which is statement (ii). - (i) would force every disciplined person to be creative and successful, even a non-creative one. The sentence says nothing about non-creative people. Not a correct encoding. - (iii) is equivalent to , which is always true. So (iii) reduces to , i.e. "everyone is creative". Wrong. Answer: (B) Only (ii) is TRUE. - A.
- Question 39Programming, Data Structures and Algorithmsmcq2 marksA recursive function in Python is given.
Now, consider the following function call:pythondef mystery(n): if n <= 0: return 1 else: return mystery(n-1) + mystery(n-2)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: C
Solution
Let be the number of calls made bymystery(n), counting itself. Then for , and for . - - - - - Answer: (C) 15. - A.
- Question 40Programming, Data Structures and Algorithmsmcq2 marksConsider a directed graph , where is the finite set of vertices and is the set of directed edges between the vertices. may contain cycles but there is no self-loop. Further, may not be strongly connected. Let be the graph obtained by reversing the directions of all the edges in without changing the set of vertices. Assume that Breadth First Search (BFS) or Depth First Search (DFS) from any given vertex of a graph visits only the reachable vertices from in that graph. Which of the following statements must always be true, regardless of the structure of ?
- A.If is a reachable vertex in the BFS of from , then is also a reachable vertex in the DFS of from .
- B.In , the BFS traversal from will visit exactly the same set of vertices as the DFS from in .
- C.The order of vertices visited in the BFS of from is the reverse of the order of vertices visited in the DFS of from .
- D.If is a reachable vertex in the DFS of from , then is also a reachable vertex in the BFS of from .✓
Answer: D
Solution
Key fact: a path in is exactly a path in . - (D) If is reachable from in , reversing that path gives in . So BFS of from reaches . Always true. - (A) and (B) Reachable from in means "can reach in ", which is not the same set. Counterexample: the single edge . In , reaches , but in , does not reach . - (C) Visiting orders have no such reversal relationship. Answer: (D). - A.
- Question 41Database Management and Warehousingmcq2 marksConsider 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?

- A.5✓
- B.8
- C.3 and 5
- D.3, 5 and 8
Answer: A
Solution
The root holds keys 5 and 8 with three children: leaves , and . 1. Key 3 belongs in the first leaf, which becomes . That overflows (maximum 2 keys), so it splits into and , and the separator 3 is copied up to the parent. 2. The parent would now hold keys with 4 child pointers, but non-leaf nodes allow at most 3 pointers. It splits: the middle key 5 moves up to a new root, the left internal node keeps 3, and the right internal node keeps 8. The new root contains only the key 5. Answer: (A) 5. - A.
- Question 42Database Management and Warehousingmcq2 marksConsider the given relations , and . The relation has three columns , and . The relation has three columns , and . The relation has two columns and .
Consider the relational algebra expressionX Y Z P Q R P Q S 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 NULLwhere denotes natural join operation. Which of the following options is the correct output for the given expression?- A.Two rows (P1, R1, 2) and (P1, R1, 5)
- B.Three rows (P1, R1, 2), (P1, R1, 5) and (P2, R2, 6)
- C.One row (P1, R1, 2)
- D.Zero rows✓
Answer: D
Solution
Left part: joins on and gives and . The selection keeps only . Right part: joins on and gives , and . The selection keeps and . Final natural join: the two sides share . The left side has only and the right side has only , so nothing matches. The result is empty. Answer: (D) Zero rows. - A.
- Question 43Database Management and Warehousingmcq2 marksConsider 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?

- A.✓
- B.
- C.
- D.
Answer: A
Solution
For dimensions where dimension has hierarchy levels, the number of cuboids isThe is for the virtual top level "all", which means the dimension is aggregated away. Here there are 3 dimensions (Time: Year, Month, Day; Location: Country, State, City; Item: Category, Type, Item), each with 3 levels:Answer: (A) . - A.
- Question 44Probability and Statisticsmcq2 marksLet and be two independent random variables. follows distribution and follows distribution. Which of the following options is the variance of ?
- A.100✓
- B.90
- C.49
- D.21
Answer: A
Solution
is either or , so always. Mean: Second moment: So . Answer: (A) 100. - A.
- Question 45Calculus and Optimizationmcq2 marksLetWhich of the following is the value of ?
- A.0.5✓
- B.1.0
- C.0
- D.
Answer: A
Solution
is the Poisson probability mass at , so the sum is with . is a sum of independent Poisson(1) variables, with mean and variance . By the Central Limit Theorem,Answer: (A) 0.5. - A.
- Question 46Linear Algebramcq2 marksLet be the eigenvalues of the matrixwhere is in radians. Which one of the following options lists all the possible values of satisfying ?
- A.
- B.
- C.✓
- D.
Answer: C
Solution
The sum of the eigenvalues equals the trace:In this gives . Answer: (C). - A.
- Question 47Machine Learningmsq2 marksConsider 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/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/15.
Answer: A, B
Solution
Confusion matrix (rows = actual, columns = predicted):
- Accuracy . So (A) is true and (D) is false. - Precision X and Precision Y . So (B) is true. - Recall X and Recall Y . So (C) is false. Answer: (A), (B).pred X pred Y actual X 14 6 actual Y 2 8 - A.
- Question 48Artificial Intelligencemsq2 marksLet be a predicate. Which of the following statements is/are NOT valid in first-order logic?
- A.
- B.✓
- C.✓
- D.✓
Answer: B, C, D
Solution
First-order logic assumes a non-empty domain. - (A) If holds for everything, it holds for something. Valid. - (B) "Some has " does not mean all do (for example, = "is even" on the integers). Not valid. - (C) Its "" direction is (B), which fails. Not valid. - (D) When is true for every , the premise is true and the conclusion is false. Not valid. Answer: (B), (C), (D). - A.
- Question 49Programming, Data Structures and Algorithmsmsq2 marksConsider 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?
- A.N1 = 10, N2 = 4
- B.N1 > N2✓
- C.IS on P will perform only one swap✓
- 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
Solution
Insertion sort, inserting each element into the sorted prefix: - Inserting 2: 1 comparison (with 1). - Inserting 3: 1 comparison (with 2). - Inserting 5: 1 comparison (with 3). - Inserting 4: compare with 5 and shift, then compare with 3 and stop. 2 comparisons, 1 swap. So , with exactly one swap. Bubble sort: the standard version does comparisons. Even the early-exit version does (the second pass makes no swaps). Either way . - (A) , not 4. False. - (B) True. - (C) True. - (D) Both compare already-ordered pairs such as (1, 2). True. Answer: (B), (C), (D). - A.
- Question 50Programming, Data Structures and Algorithmsmsq2 marksConsider the given Python program.
Which of the following options is/are correct?pythondef 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- 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: B, D
Solution
Each call toouter()creates a new listx, and the returnedinnerkeeps (closes over) its ownx. Sof1andf2have separate lists. - Line P:f1list is[10]- Line Q:[10, 20]- Line R:f2list is[30]- Line S:f1list is[10, 20, 40]Answer: (B), (D). - A.
- Question 51Database Management and Warehousingmsq2 marksConsider 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.
Which of the following is/are correct?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- A.✓sql
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 - B.sql
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 - C.sql
SELECT B.EmpID, B.TeamSize FROM (SELECT EmpID, COUNT(TeamID) AS TeamSize FROM Employee GROUP BY EmpID) AS B - D.sql
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
Solution
- (A) The subquery gives (TeamID, size) for each team. Joining each employee to their team's row gives the size. Correct. - (B) The conditionA.EmpID = B.EmpIDpairs each employee only with itself, so every count is 1. Wrong. - (C) Grouping by EmpID (the primary key) puts each employee in a group of size 1. Wrong. - (D) The derived tableBhas no TeamID column, soB.TeamIDis invalid. Wrong. Answer: (A). - A.
- Question 52Linear Algebramsq2 marksLet be a matrix, where and is the identity matrix of order . Which of the following options is/are correct?
- A.✓
- B.
- C.
- D.is a projection matrix✓
Answer: A, D
Solution
is the centering matrix: it subtracts the mean from a vector. - (A) , so . True. - (B) and (D) Using :So is idempotent and symmetric, i.e. an orthogonal projection. (D) is true, and , so (B) is false. - (C) . False. Answer: (A), (D). - A.
- Question 53Probability and Statisticsmsq2 marksLet be independent random variables. Each of the random variables follows distribution. Define . Which of the following statements is/are correct?
- A.follows Chi-square distribution with degrees of freedom.✓
- B.follows Chi-square distribution with degrees of freedom.✓
- C.follows exponential distribution with mean 2.✓
- D.follows Chi-square distribution with 2 degrees of freedom.
Answer: A, B, C
Solution
- (A) A sum of independent squared standard normals is . True. - (B) One degree of freedom is lost by estimating the mean, so (Cochran's theorem). True. - (C) , and is the Exponential distribution with mean 2 (density ). True. - (D) , so its square is , not . False. Answer: (A), (B), (C). - A.
- Question 54Probability and Statisticsmsq2 marksLet be a discrete valued random variable with cumulative distribution function . Which of the following statements is/are correct?
- A.is always a positive function.
- B.is a non-decreasing function.✓
- C.has jump discontinuity.✓
- D.is a left continuous function.
Answer: B, C
Solution
For a discrete random variable, the CDF is a step function. - (A) below the smallest value, so it is non-negative but not always positive. False. - (B) Every CDF is non-decreasing. True. - (C) It jumps at every value that has positive probability. True. - (D) Because of the "" in the definition, CDFs are right-continuous, not left-continuous. False. Answer: (B), (C). - A.
- Question 55Machine Learningnat2 marksConsider that Linear Ridge Regression is being used to learn a prediction function , where 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 . In the next step, for the input , the predicted value of is noted. Let the relation between and the true value of be . The value of the overall regularized loss function for this instance is _______ . (Rounded off to two decimal places)
Answer: 6.9 to 7.1
Solution
- Prediction: . - True value: . - MAE for this instance: . - Ridge regularizer (squared norm): . Total loss . Answer: 7.00 (accepted range 6.90 to 7.10). - Question 56Machine Learningnat2 marksConsider 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
Solution
With no biases, each pair of adjacent layers contributes (neurons in) (neurons out) weights:Answer: 135. - Question 57Probability and Statisticsnat2 marksA 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
Solution
By Bayes' theorem:Answer: 0.77 (accepted range 0.76 to 0.78). - Question 58Programming, Data Structures and Algorithmsnat2 marksConsider the given Python program.
The output of the program is __________ . (Answer in integer)pythondef 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
Solution
funmakes one bubble-sort pass over the list and returns the number of swaps in that pass. The loop runs 5 passes, socountis the total number of swaps bubble sort makes. Each bubble-sort swap removes exactly one inversion, so the total equals the number of inversions in[5, 3, 4, 1, 2]: - 5 is before and larger than 3, 4, 1, 2: 4 inversions. - 3 is before and larger than 1, 2: 2. - 4 is before and larger than 1, 2: 2. - 1 before 2: 0. Total . Pass by pass: 4, then 2, then 2, then 0, then 0 swaps. Answer: 8. - Question 59Database Management and Warehousingnat2 marksLet there be two relations and as shown. has three columns , and . has two columns and .
Consider that the following tuple relational calculus expression is evaluated.X Y P Q R P S P1 Q1 R1 P1 10 P2 Q2 R2 P1 15 P3 Q3 R2 P2 20 P3 1The number of tuples that will be returned is __________ . (Answer in integer)Answer: 2 to 3
Solution
- is always true (take ). - So a tuple of is returned when has some row with the same and . Checking: - : has . Yes. - : has . Yes. - : has only , and is false. No. Two tuples of are returned. A relation is a set, so having two matching rows for does not duplicate the output. Answer: 2. (The official key accepts 2 to 3.) - Question 60Database Management and Warehousingnat2 marksLet Account be a relation as shown.
Consider the given SQL query.Account AccNo Balance A1 5000 A2 5000 A3 10000 A4 15000 A5 18000The number of rows returned by the SQL query is __________ . (Answer in integer)sqlSELECT 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
Solution
For each account, compare the number of higher balances with the number of lower balances:
Three rows are returned. Answer: 3.AccNo Balance higher lower higher >= lower? A1 5000 3 0 yes A2 5000 3 0 yes A3 10000 2 2 yes A4 15000 1 3 no A5 18000 0 4 no - Question 61Database Management and Warehousingnat2 marksConsider 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
Solution
- E1(A11, A12, A13): 1 relation. - E2(A21, A23): 1 relation. - The multi-valued attribute A22 needs its own relation E2_A22(A21, A22) to stay in 1NF/3NF: 1 relation. - A many-to-many relationship always needs a separate relation R12(A11, A21), even with total participation: 1 relation. Total . Answer: 4. - Question 62Probability and Statisticsnat2 marksFor a given data set , where , it is known thatLet us denote . The value of is __________ . (Answer in integer)
Answer: 10
Solution
Standard identity:Let . ThenSo . Answer: 10. - Question 63Probability and Statisticsnat2 marksLet be a random variable that follows distribution. The conditional distribution of the random variable given is the distribution. The value of is __________ . (Answer in integer)
Answer: 0
Solution
Write , where is independent of .because is symmetric about 0, so . Zero covariance means zero correlation, even though clearly depends on . Answer: 0. - Question 64Probability and Statisticsnat2 marksLet be a matrix such that each of its elements follows 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
Solution
Row 2 and column 3 share one entry, . Condition on it. - If (probability ), each of the other 4 entries in the row and in the column needs exactly 2 ones: . - If (probability ), each needs exactly 3 ones among the other 4: .Answer: 0.10 (accepted range 0.08 to 0.12). - Question 65Linear Algebranat2 marksLet be a matrix, where and is the identity matrix of order . The value of , where , is __________ . (Answer in integer)
Answer: 1
Solution
For a symmetric matrix, the maximum of over unit vectors is its largest eigenvalue (Rayleigh quotient). is the centering projection: , giving eigenvalue 0, and for every , giving eigenvalue 1 with multiplicity . The maximum is 1, reached by any unit vector whose entries sum to 0. Answer: 1.
Practice the full paper with a timer
Attempt GATE DA 2026 in the exact GATE interface and get a detailed score and topic-wise analysis — free.
Create free account →