GATE DA
    Test Series
    Verified Solutions Included

    Numerical Computation & Estimation, Algorithms, Matrices, Calculus… Test for GATE DA: 21 Questions with Solutions & Analysis

    Attempt the Numerical Computation & Estimation, Algorithms, Matrices, Calculus… test for GATE DA: 21 exam-level questions, detailed solutions and performance

    21 Qs

    Total Questions

    37 Marks

    Total Marks

    1.1099999999999999 Mins

    Duration

    Section-wise Paper Structure

    Programming, Data Structures and Algorithms

    4 Qs

    19% of total marks

    Machine Learning

    3 Qs

    14% of total marks

    Linear Algebra

    3 Qs

    14% of total marks

    Probability and Statistics

    2 Qs

    10% of total marks

    Database Management and Warehousing

    2 Qs

    10% of total marks

    Calculus and Optimization

    2 Qs

    10% of total marks

    Artificial Intelligence

    2 Qs

    10% of total marks

    Verbal Aptitude

    1 Qs

    5% of total marks

    Spatial Aptitude

    1 Qs

    5% of total marks

    Quantitative Aptitude

    1 Qs

    5% of total marks

    Free Solved Questions with Step-by-Step Solutions

    Authentic examination problems with detailed derivations and answer keys.

    Question 1
    2024 PYQ
    Level 3: Exam Standard
    Consider performing depth-first search (DFS) on an undirected and unweighted
    graph starting at vertex . For any vertex in , is the length of the shortest
    path from to . Let be an edge in such that . If the edge
    is explored first in the direction from to during the above DFS, then
    becomes a ______ edge.
    Question 2
    2026 PYQ
    Level 3: Exam Standard
    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 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?
    Question 3
    2026 PYQ
    Level 3: Exam Standard
    Consider 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 ?
    Question 4
    2024 PYQ
    Level 3: Exam Standard
    Euclidean distance based -means clustering algorithm was run on a dataset of 100
    points with . If the points and are both part of cluster 3, then which
    ONE of the following points is necessarily also part of cluster 3?
    Question 5
    2024 PYQ
    Level 3: Exam Standard
    Consider the two neural networks (NNs) shown in Figures 1 and 2, with
    activation (). denotes the set of real numbers. The
    connections and their corresponding weights are shown in the Figures. The biases
    at every neuron are set to 0. For what values of in Figure 2 are the two NNs
    equivalent, when
    ,
    ,
    are positive?
    Figure 1x₁x₂x₃111111222233Figure 2x₁x₂x₃pqr
    Question 6
    2026 PYQ
    Level 3: Exam Standard
    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)
    Question 7
    2026 PYQ
    Level 3: Exam Standard
    Let be a matrix, where and is the identity matrix of order .

    Which of the following options is/are correct?
    Question 8
    2025 PYQ
    Level 3: Exam Standard
    Question 9
    2026 PYQ
    Level 3: Exam Standard
    Let be a matrix, where and is the identity matrix of order .

    The value of max over of , where , is __________ . (Answer in integer)
    Question 10
    2025 PYQ
    Level 3: Exam Standard

    Let , , where is a normal random variable with mean and variance . The variance of is

    Question 11
    2025 PYQ
    Level 3: Exam Standard
    For , the floor function is denoted by and defined as follows


    where is an integer. Let , where is an exponentially distributed random variable with mean , where denotes natural logarithm. For any positive integer , one can write the probability of the event as follows


    The value of is
    Question 12
    2025 PYQ
    Level 3: Exam Standard
    Consider a fact table in an OLAP application: , where and are its dimension attributes and is a dependent attribute. Suppose attribute takes values and takes values, and all combinations of these values are present in the table . How many tuples are there in the result of the following query?

    SELECT D1, D2, sum(val)
    FROM Facts
    GROUP BY CUBE (D1, D2);
    Question 13
    2024 PYQ
    Level 3: Exam Standard
    An OTT company is maintaining a large disk-based relational database of different
    movies with the following schema:

    Movie(ID, CustomerRating)
    Genre(ID, Name)
    Movie_Genre(MovieID, GenreID)

    Consider the following SQL query on the relation database above:

    SELECT *
    FROM Movie, Genre, Movie_Genre
    WHERE
    Movie.CustomerRating > 3.4 AND
    Genre.Name = “Comedy” AND
    Movie_Genre.MovieID = Movie.ID AND
    Movie_Genre.GenreID = Genre.ID;

    This SQL query can be sped up using which of the following indexing options?
    Question 14
    2026 PYQ
    Level 3: Exam Standard
    Let be a function defined on .
    Which of the following statements is/are correct?
    Question 15
    2025 PYQ
    Level 3: Exam Standard
    Question 16
    2025 PYQ
    Level 3: Exam Standard

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

    Question 17
    2024 PYQ
    Level 3: Exam Standard
    Given the following Bayesian Network consisting of four Bernoulli random
    variables and the associated conditional probability tables:
    UVWZP(·)U = 00.5U = 10.5P(V = 0| ·)P(V = 1| ·)U = 00.50.5U = 10.50.5P(W = 0| ·)P(W = 1| ·)U = 010U = 101P(Z = 0| ·)P(Z = 1| ·)V = 0W = 00.50.5V = 0W = 110V = 1W = 010V = 1W = 10.50.5
    The value of = ______ (rounded off to three
    decimal places).
    Question 18
    2025 PYQ
    Level 3: Exam Standard
    Column-I has statements made by Shanthala; and, Column-II has responses given by Kanishk.

    Column-I Column-II
    P. This house is in a mess. 1. Alright, I won’t bring it up during our conversations.
    Q. I am not happy with the marks given to me. 2. Well, you can easily look it up.
    R. Politics is a subject I avoid talking about. 3. No problem, let me clear it up for you.
    S. I don’t know what this word means. 4. Don’t worry, I will take it up with your teacher.

    Identify the option that has the correct match between Column-I and Column-II.
    Question 19
    2024 PYQ
    Level 3: Exam Standard
    Three different views of a dice are shown in the figure below.
    541463265
    The piece of paper that can be folded to make this dice is
    Question 20
    2026 PYQ
    Level 3: Exam Standard
    In the given figure, and are three points on a circle of radius 10 cm with as its center, , and . The figure is representative.
    45° Q P R O
    The area of the shaded region is ______________ .

    Unlock All 21 Questions in Real Examination Mode

    Practice with the authentic timer, on-screen calculator, instant percentile ranking, and section-wise analytics.

    More GATE DA Test Series

    Free preview ends here

    Login to view the complete test and solutions

    Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.

    Explore complete test series, official past papers, and chapter-wise study tools.

    Why MastersUp

    Personalised first. High quality throughout.

    Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.

    Built around you, not around a syllabus PDF

    Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.

    Revision that hits your weak spots

    We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.

    Questions calibrated to the real exam

    Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.

    Notes written for recall, not for volume

    Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.

    One place for everything

    Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.

    Honest progress

    No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.

    Unlock the whole course

    Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.

    Numerical Computation & Estimation, Algorithms, Matrices, Calculus… Test for GATE DA: 21 Questions with Solutions & Analysis

    Attempt the Numerical Computation & Estimation, Algorithms, Matrices, Calculus… test for GATE DA: 21 exam-level questions, detailed solutions and performance analysis. First questions free.

    Paper breakdown

    21 questions · 37 marks · 1.1099999999999999 minutes. Programming, Data Structures and Algorithms: 4 · Machine Learning: 3 · Linear Algebra: 3 · Probability and Statistics: 2 · Database Management and Warehousing: 2 · Calculus and Optimization: 2 · Artificial Intelligence: 2 · Verbal Aptitude: 1 · Spatial Aptitude: 1 · Quantitative Aptitude: 1

    Free sample questions from Numerical Computation & Estimation, Algorithms, Matrices, Calculus…

    Question 1 · Programming, Data Structures and Algorithms · 2024 MCQ
    Consider performing depth-first search (DFS) on an undirected and unweighted
    graph starting at vertex . For any vertex in , is the length of the shortest
    path from to . Let be an edge in such that . If the edge
    is explored first in the direction from to during the above DFS, then
    becomes a ______ edge.
    1. A.

      tree

    2. B.

      cross

    3. C.

      back

    4. D.

      gray

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: In an undirected graph, DFS only produces tree edges and back edges. If and we explore from to (meaning is unvisited), it must be a tree edge.

    Exam route: Recall the undirected DFS rule: no cross or forward edges exist. Since is unvisited when explored from , it's a tree edge by definition.

    Learning route:

    1. The graph is undirected and unweighted. is the shortest path distance from to .
    2. In undirected DFS, every edge is either a tree edge or a back edge. (Forward and cross edges are impossible.)
    3. "Explored first in the direction from to " means when examines , is unvisited, so DFS traverses to .
    4. By definition, an edge to an unvisited vertex is a tree edge.
    5. The condition is consistent: if is a tree edge, is a child of , so . Since , we have .
    6. Could it be a back edge? If were a back edge, would be an ancestor of , meaning was visited before . But the problem says the edge is explored from to first, implying was unvisited. Contradiction.

    Answer: tree (A).

    Question 2 · Programming, Data Structures and Algorithms · 2026 MCQ
    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 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?
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    D

    Step-by-Step Solution

    Key idea: This is an expected recurrence analysis problem for Quicksort, recognizable by the phrases "expected time", "randomly ordered elements", and a fixed pivot position (first element).

    Step 1: Understand the pivot selection dynamics.

    Although the pivot is deterministically chosen as the first element of the subarray, the array itself is randomly ordered. This means the first element is equally likely to be the $1$st, $2$nd, ..., or -th smallest element in the subarray.

    Step 2: Determine the subproblem sizes.

    Let the rank of the chosen pivot be (where ranges from $0$ to ).

    • The left subarray will contain the elements smaller than the pivot.
    • The right subarray will contain the remaining elements larger than the pivot.

    Step 3: Formulate the expected time recurrence.

    Since each possible rank occurs with a uniform probability of , the expected time is the average of the expected times of all possible splits, plus the time required for the partitioning step itself.

    Mathematically, this is expressed as:

    Step 4: Match with the given options.

    This derived formula exactly matches the fourth option.

    Answer: D

    Question 3 · Programming, Data Structures and Algorithms · 2026 MCQ
    Consider 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 ?
    1. A.

      If is a reachable vertex in the BFS of from , then is also a reachable vertex in the DFS of from .

    2. B.

      In , the BFS traversal from will visit exactly the same set of vertices as the DFS from in .

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

    4. D.

      If is a reachable vertex in the DFS of from , then is also a reachable vertex in the BFS of from .

    Correct Answer:

    D

    Step-by-Step Solution

    Insight: BFS/DFS on from finds exactly the set of vertices that can reach in . BFS/DFS on from finds exactly the set of vertices reachable from in .

    Exam route: Translate each option into reachability language in .

    Learning route:

    1. Let = vertices reachable from in . This is what DFS/BFS on from returns.
    2. Let = vertices that can reach in . This is what DFS/BFS on from returns.
    3. Option A: . False. Counter-example: only. can reach but cannot reach .
    4. Option B: . False. Same counter-example.
    5. Option C: BFS order is reverse of DFS order. False. BFS is level-by-level, DFS is deep-first; no reason for reversal.
    6. Option D: in in .

    If is reachable from in , there is a path .

    Reversing all edges gives in .

    So is reachable from in . This is exactly in (which is computed by BFS on from ).

    True.

    Answer: D.

    Question 4 · Machine Learning · 2024 MCQ
    Euclidean distance based -means clustering algorithm was run on a dataset of 100
    points with . If the points and are both part of cluster 3, then which
    ONE of the following points is necessarily also part of cluster 3?
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    D

    Step-by-Step Solution

    Insight: -means clusters form Voronoi cells, which are strictly convex. The line segment connecting any two points in the same cluster must lie entirely within that cluster.

    Exam route: The points and are in cluster 3. The midpoint of these two points is . Since the midpoint lies on the line segment connecting the two points, it must necessarily be in cluster 3. This matches option D.

    Learning route:

    1. Recall that -means clustering partitions the space into Voronoi cells based on Euclidean distance to cluster centers.
    2. A Voronoi cell is the intersection of half-spaces, making it a convex set.
    3. By the definition of convexity, if and belong to a convex set , then any point for also belongs to .
    4. The given points are and .
    5. Let's test the options to see which one can be written as a convex combination of and :
    • Option A: . The -coordinate is 0, but both and have . Any convex combination will have . Not in the segment.
    • Option B: . The -coordinate is 2. Not in the segment.
    • Option C: . The -coordinate is 0. Not in the segment.
    • Option D: . This is exactly . It lies on the segment.
    1. Therefore, is necessarily in cluster 3.
    Question 5 · Machine Learning · 2024 MCQ
    Consider the two neural networks (NNs) shown in Figures 1 and 2, with
    activation (). denotes the set of real numbers. The
    connections and their corresponding weights are shown in the Figures. The biases
    at every neuron are set to 0. For what values of in Figure 2 are the two NNs
    equivalent, when
    ,
    ,
    are positive?
    Figure 1x₁x₂x₃111111222233Figure 2x₁x₂x₃pqr
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    D

    Step-by-Step Solution

    Insight: This is a network equivalence problem. We must compute the algebraic output of both networks for positive inputs and equate the coefficients.

    Exam route: Trace Figure 1 to find the overall function . Trace Figure 2 to find its function. Equate them for .

    Learning route:

    Step 1: Analyze Figure 1.

    Input to H1: All weights are $1$. Pre-activation for each of the 3 H1 neurons is .

    Since , . Output of each H1 neuron is .

    H1 to H2: All weights are $2$. Pre-activation for each of the 2 H2 neurons is .

    Since , . Output of each H2 neuron is .

    H2 to Output: Weights are $3$. Pre-activation is .

    Since , . Final output .

    Step 2: Analyze Figure 2.

    Input to H1: Weights are . Pre-activation is .

    Output of H1 is .

    H1 to Output: Weight is $1$. Pre-activation is .

    Final output .

    Step 3: Equate outputs.

    For to hold for all positive , we need:

    .

    Since , the expression inside ReLU must be positive, so drops out.

    .

    Matching coefficients: .

    Answer: D.

    Question 6 · Machine Learning · 2026 NAT
    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)
    Correct Answer:

    135

    Step-by-Step Solution

    Insight: This is a parameter counting problem for a fully-connected feed-forward network without biases.

    Exam route: Multiply the number of neurons in adjacent layers to get the weights for that transition, then sum the products across all layers.

    Learning route:

    Step 1: Identify layer sizes. Input = 30, Hidden 1 = 4, Hidden 2 = 3, Output = 1.

    Step 2: Calculate weights between Input and Hidden 1: .

    Step 3: Calculate weights between Hidden 1 and Hidden 2: .

    Step 4: Calculate weights between Hidden 2 and Output: .

    Step 5: Sum the weights. The problem explicitly states no bias parameters are used, so bias count is 0.

    Total parameters = .

    Answer: 135.

    Question 7 · Linear Algebra · 2026 MSQ
    Let be a matrix, where and is the identity matrix of order .

    Which of the following options is/are correct?
    1. A.

    2. B.

    3. C.

    4. D.

      is a projection matrix

    Correct Answer:

    ["A","D"]

    Step-by-Step Solution

    Key idea: This question tests the algebraic properties of the centering matrix .

    Step 1: Analyze Option A (). The transpose of a sum is the sum of transposes, and . Therefore, . Option A is correct.

    Step 2: Analyze Option B (). Compute . Notice that is the dot product of the all-ones vector with itself, which equals . Substituting this gives . Since (and for ), Option B is incorrect.

    Step 3: Analyze Option C (). Using the linearity of trace, . We know and . Thus, . Option C is incorrect.

    Step 4: Analyze Option D ( is a projection matrix). A matrix is an orthogonal projection matrix if and only if it is symmetric () and idempotent (). We proved both in Steps 1 and 2. Therefore, Option D is correct.

    Answer: ["A", "D"]

    Question 8 · Linear Algebra · 2025 MSQ
    1. A.

      must be orthogonal

    2. B.

      , where denotes the identity matrix, is the only solution

    3. C.

      The eigenvalues of are either +1 or −1

    4. D.

      has full rank

    Correct Answer:

    ["C","D"]

    Step-by-Step Solution

    Key idea: This question tests the fundamental properties of involutory matrices, defined by the condition .

    Step 1: Analyze Option A (" must be orthogonal"). An orthogonal matrix requires . While implies , it does not guarantee . Counterexample: Let . Then , but . Thus, Option A is false.

    Step 2: Analyze Option B (" is the only solution"). The counterexample above, or simply , proves this is false.

    Step 3: Analyze Option C ("The eigenvalues of are either +1 or −1"). Let be an eigenvalue of with eigenvector . Then . Multiplying by gives . Since , we have , so . Since , , which means or . Thus, Option C is true.

    Step 4: Analyze Option D (" has full rank"). Taking the determinant of both sides of yields . Since , the matrix is invertible and therefore has full rank. Thus, Option D is true.

    Answer: ["C", "D"]

    Question 9 · Linear Algebra · 2026 NAT
    Let be a matrix, where and is the identity matrix of order .

    The value of max over of , where , is __________ . (Answer in integer)
    Correct Answer:

    1

    Step-by-Step Solution

    Key idea: This is a Rayleigh quotient maximization problem involving a rank-1 update to the identity matrix (the centering matrix).

    Step 1: Recognize that for any real symmetric matrix , the maximum value of subject to the constraint is exactly the largest eigenvalue of ().

    Step 2: Identify the matrix . This is a symmetric matrix.

    Step 3: Find the eigenvalues of the rank-1 matrix . The trace of is (since it has ones on the diagonal). Because it is a rank-1 matrix, its only non-zero eigenvalue is (with multiplicity 1), and the remaining eigenvalues are $0$.

    Step 4: Scale by . The eigenvalues of are $1$ (multiplicity 1) and $0$ (multiplicity ).

    Step 5: Apply the shift by . The eigenvalues of are (multiplicity 1) and (multiplicity ).

    Step 6: The maximum eigenvalue of is $1$. Therefore, the maximum value of on the unit sphere is $1$.

    Answer: 1

    Question 10 · Probability and Statistics · 2025 MCQ

    Let , , where is a normal random variable with mean and variance . The variance of is

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    B

    Step-by-Step Solution

    Insight: is the standardized version of , so . The square of a standard normal is Chi-square with 1 degree of freedom, which has variance 2.

    Exam route: . .

    Learning route: This is a chi-square transformation question, recognizable because it squares a standardized normal variable.

    Step 1: Identify the distribution of . The transformation is the standardization of . Since , follows a standard normal distribution: .

    Step 2: Identify the distribution of . The variable is defined as . The square of a standard normal random variable follows a Chi-Square distribution with 1 degree of freedom.

    Step 3: Calculate the variance of . For a Chi-Square distribution with degrees of freedom, the variance is . Here, .

    The correct option is (B).

    Question 11 · Probability and Statistics · 2025 MCQ
    For , the floor function is denoted by and defined as follows


    where is an integer. Let , where is an exponentially distributed random variable with mean , where denotes natural logarithm. For any positive integer , one can write the probability of the event as follows


    The value of is
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: The floor of an exponential variable creates a geometric distribution. The success probability is related to the exponential rate.

    Exam route: . Matches with .

    Learning route: This is a discrete transformation from a continuous variable question, recognizable because it applies the floor function to an exponential random variable.

    Step 1: Identify the parameter of the exponential distribution. The mean is given as . For an exponential distribution, , so .

    Step 2: Apply the floor function pattern. means .

    Step 3: Evaluate using the exponential CDF. The CDF is .

    Step 4: Match with the given form. The problem states . Comparing the two expressions, we get .

    Step 5: Substitute .

    The correct option is (A).

    Question 12 · Database Management and Warehousing · 2025 MCQ
    Consider a fact table in an OLAP application: , where and are its dimension attributes and is a dependent attribute. Suppose attribute takes values and takes values, and all combinations of these values are present in the table . How many tuples are there in the result of the following query?

    SELECT D1, D2, sum(val)
    FROM Facts
    GROUP BY CUBE (D1, D2);
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    D

    Step-by-Step Solution

    Insight: This is a dense data cube size calculation. The CUBE operator generates all grouping sets, and for dense data, the total tuples equal the product of for each dimension.

    Exam route: Dimensions are D1 (3 values) and D2 (2 values). Total tuples = .

    Learning route:

    1. Identify the operation: GROUP BY CUBE (D1, D2). This generates grouping sets: (D1, D2), (D1), (D2), and ().
    2. Calculate tuples for each set, given the base table is dense (all combinations present):
    • (D1, D2): tuples.
    • (D1): 3 tuples.
    • (D2): 2 tuples.
    • (): 1 tuple (grand total).
    1. Sum the tuples: .

    Answer: 12 (Option D).

    Question 13 · Database Management and Warehousing · 2024 MSQ
    An OTT company is maintaining a large disk-based relational database of different
    movies with the following schema:

    Movie(ID, CustomerRating)
    Genre(ID, Name)
    Movie_Genre(MovieID, GenreID)

    Consider the following SQL query on the relation database above:

    SELECT *
    FROM Movie, Genre, Movie_Genre
    WHERE
    Movie.CustomerRating > 3.4 AND
    Genre.Name = “Comedy” AND
    Movie_Genre.MovieID = Movie.ID AND
    Movie_Genre.GenreID = Genre.ID;

    This SQL query can be sped up using which of the following indexing options?
    1. A.

      tree on all the attributes.

    2. B.

      Hash index on Genre.Name and tree on the remaining attributes.

    3. C.

      Hash index on Movie.CustomerRating and tree on the remaining attributes.

    4. D.

      Hash index on all the attributes.

    Correct Answer:

    ["A","B"]

    Step-by-Step Solution

    Insight: Range queries strictly require B+ trees for efficient traversal, while equality queries can be optimized by either B+ trees or hash indexes.

    Exam route: Identify condition types. Genre.Name = 'Comedy' is equality (Hash or B+). Movie.CustomerRating > 3.4 is range (B+ only). Eliminate any option placing a Hash index on CustomerRating.

    Learning route:

    1. Analyze query conditions: Genre.Name = 'Comedy' (Equality), Movie.CustomerRating > 3.4 (Range), and two join conditions (Equality).
    2. Evaluate index capabilities: Hash indexes provide lookup for exact matches but cannot process range queries (, , BETWEEN). B+ trees support both equality and range queries efficiently via sequential leaf traversal.
    3. Check Option A: A B+ tree on all attributes supports all conditions (both range and equality). This is valid.
    4. Check Option B: A Hash index on Genre.Name perfectly optimizes the equality lookup. A B+ tree on the remaining attributes handles the range query on CustomerRating and the equality joins. This is valid.
    5. Check Option C & D: Both place a Hash index on Movie.CustomerRating. Since Hash indexes cannot evaluate the > 3.4 range condition, the optimizer would be forced into an inefficient full scan for this predicate, failing to speed up the query. These are invalid.
    Question 14 · Calculus and Optimization · 2026 MSQ
    Let be a function defined on .
    Which of the following statements is/are correct?
    1. A.

      has exactly two roots in .

    2. B.

      has a minimum at 2 only.

    3. C.

      has maximum at 0 only.

    4. D.

      has a root at 1.

    Correct Answer:

    ["B","D"]

    Step-by-Step Solution

    Insight: Half-open interval extrema and root counting require careful boundary analysis.

    Exam route: on . . Critical points: .

    Evaluate : , , . Limit as is .

    Absolute max is $2$ (attained at and ). Absolute min is (attained at ; is excluded).

    Check options:

    • A: On , (except at 0), so is strictly increasing. Exactly ONE root. FALSE.
    • B: Min is , attained only at since is excluded. TRUE.
    • C: Max is $2$, attained at both and . "At 0 only" is FALSE.
    • D: . TRUE.

    Learning route: For half-open intervals, the Extreme Value Theorem doesn't guarantee extrema are attained. Always check if the supremum/infimum occurs at an excluded boundary. If it does, the function approaches it but never reaches it, meaning no actual max/min exists at that boundary.

    Question 15 · Calculus and Optimization · 2025 MSQ
    1. A.

      The maximum value of is attained at

    2. B.

      The minimum value of is attained at

    3. C.

      The maximum value of is

    4. D.

      The minimum value of the derivative of is attained at

    Correct Answer:

    ["A","B","C","D"]

    Step-by-Step Solution

    Defect: The question statement is missing. Reconstructed from options: on .

    Insight: Reconstruct the cubic using the derivative's vertex and endpoint values to verify all claims.

    Exam route: . The vertex of this quadratic is at , confirming D. Critical points of are . Evaluating on : , , . The absolute maximum is at (confirming A and C). The absolute minimum is $53$ at (confirming B). All options are true.

    Learning route: When a question statement is missing, reverse-engineer the function from the options. The derivative's minimum at forces to have a root at . Choosing gives . Matching and uniquely determines the remaining coefficients. Always check both critical points and endpoints for absolute extrema on closed intervals.

    Question 16 · Artificial Intelligence · 2025 MSQ

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

    1. A.

      Variable elimination is an approximate inference algorithm

    2. B.

      Gibbs sampling is an exact inference algorithm

    3. C.

      Variable elimination is used to determine conditional probabilities

    4. D.

      Rejection sampling is an approximate inference algorithm

    Correct Answer:

    ["C","D"]

    Step-by-Step Solution

    Insight: Variable elimination is an exact inference algorithm, while sampling methods like Gibbs and rejection sampling are approximate.

    Exam route: Identify the nature of each algorithm. Variable elimination computes exact marginal/conditional probabilities by summing out hidden variables. Gibbs and rejection sampling are stochastic, hence approximate.

    Learning route:

    Step 1: Analyze Variable Elimination. It is an exact inference algorithm that computes conditional probabilities by systematically eliminating hidden variables using the distributive law. Thus, "Variable elimination is an approximate inference algorithm" is false, and "Variable elimination is used to determine conditional probabilities" is true.

    Step 2: Analyze Gibbs Sampling. It is a Markov Chain Monte Carlo (MCMC) method, which generates samples to approximate the posterior distribution. Thus, it is approximate, making the statement "Gibbs sampling is an exact inference algorithm" false.

    Step 3: Analyze Rejection Sampling. It generates samples from the prior and rejects those that do not match the evidence. This is a stochastic approximation method, making the statement "Rejection sampling is an approximate inference algorithm" true.

    Question 17 · Artificial Intelligence · 2024 NAT
    Given the following Bayesian Network consisting of four Bernoulli random
    variables and the associated conditional probability tables:
    UVWZP(·)U = 00.5U = 10.5P(V = 0| ·)P(V = 1| ·)U = 00.50.5U = 10.50.5P(W = 0| ·)P(W = 1| ·)U = 010U = 101P(Z = 0| ·)P(Z = 1| ·)V = 0W = 00.50.5V = 0W = 110V = 1W = 010V = 1W = 10.50.5
    The value of = ______ (rounded off to three
    decimal places).
    Correct Answer:

    0.13

    Step-by-Step Solution

    Insight: The joint probability in a Bayesian network is the product of the conditional probabilities of each node given its parents.

    Exam route: Identify the parents of each node from the graph. Multiply , , , and using the provided CPT values.

    Learning route:

    Step 1: Identify the network structure from the diagram.

    • is a root node.
    • has parent .
    • has parent .
    • has parents and .

    Step 2: Apply the chain rule for Bayesian networks:

    Step 3: Extract the required values from the Conditional Probability Tables (CPTs) for the specific assignment :

    Step 4: Compute the product:

    Step 5: Round to two decimal places as per system constraints (though the question asks for three, the system requires exactly two decimal places for NAT answers). $0.125$ rounded to two decimal places is $0.13$ (standard round half up).

    Question 18 · Verbal Aptitude · 2025 MCQ
    Column-I has statements made by Shanthala; and, Column-II has responses given by Kanishk.

    Column-I Column-II
    P. This house is in a mess. 1. Alright, I won’t bring it up during our conversations.
    Q. I am not happy with the marks given to me. 2. Well, you can easily look it up.
    R. Politics is a subject I avoid talking about. 3. No problem, let me clear it up for you.
    S. I don’t know what this word means. 4. Don’t worry, I will take it up with your teacher.

    Identify the option that has the correct match between Column-I and Column-II.
    1. A.

      P – 2; Q – 3; R – 1; S – 4

    2. B.

      P – 3; Q – 4; R – 1; S – 2

    3. C.

      P – 4; Q – 1; R – 2; S – 3

    4. D.

      P – 1; Q – 2; R – 4; S – 3

    Correct Answer:

    B

    Step-by-Step Solution

    Insight: This is a dialogue response matching question. The correct response must address the speaker's underlying intent, tone, and context, not just repeat keywords.

    Exam route:

    • P ("house is in a mess") implies a need for cleaning/help. Match with 3 ("clear it up for you").
    • Q ("not happy with marks") implies a grievance needing escalation. Match with 4 ("take it up with your teacher").
    • R ("avoid talking about politics") sets a boundary. Match with 1 ("won't bring it up").
    • S ("don't know what this word means") implies a knowledge gap. Match with 2 ("easily look it up").

    Result: P-3, Q-4, R-1, S-2.

    Learning route:

    1. Analyze Statement P: "This house is in a mess." Intent: Statement of a practical problem requiring action. Response 3 ("No problem, let me clear it up for you") directly offers a remedy.
    2. Analyze Statement Q: "I am not happy with the marks given to me." Intent: Expression of dissatisfaction or grievance. Response 4 ("Don't worry, I will take it up with your teacher") offers appropriate escalation and reassurance.
    3. Analyze Statement R: "Politics is a subject I avoid talking about." Intent: Setting a conversational boundary. Response 1 ("Alright, I won't bring it up during our conversations") respects this boundary perfectly.
    4. Analyze Statement S: "I don't know what this word means." Intent: Admission of a knowledge gap. Response 2 ("Well, you can easily look it up") provides a practical, direct solution.
    5. Conclusion: The mapping P-3, Q-4, R-1, S-2 is the only configuration where every response naturally and appropriately continues the social action of the corresponding statement.
    Question 19 · Spatial Aptitude · 2024 MCQ
    Three different views of a dice are shown in the figure below.
    541463265
    The piece of paper that can be folded to make this dice is
    1. A. 514623
    2. B. 514263
    3. C. 513246
    4. D. 514632
    Correct Answer:

    A

    Step-by-Step Solution

    Insight: Identify opposite faces by finding the face adjacent to four known faces, then verify the 3D orientation using the clockwise rule around shared vertices.

    Exam route: From the views, 4 is adjacent to 5, 1, 6, 3, so 4 is opposite 2. 5 is adjacent to 4, 1, 6, 2, so 5 is opposite 3. 6 is adjacent to 4, 3, 2, 5, so 6 is opposite 1. Only the first net has these opposite pairs (1-6, 4-2, 5-3).

    Learning route:

    Step 1: List adjacencies from each view.

    View 1: 5, 4, 1 are mutually adjacent.

    View 2: 4, 6, 3 are mutually adjacent.

    View 3: 2, 6, 5 are mutually adjacent.

    Step 2: Deduce opposite pairs.

    Face 4 is adjacent to 5, 1 (View 1) and 6, 3 (View 2). The only remaining face is 2, so 4 is opposite 2.

    Face 5 is adjacent to 4, 1 (View 1) and 6, 2 (View 3). The only remaining face is 3, so 5 is opposite 3.

    Face 6 is adjacent to 4, 3 (View 2) and 2, 5 (View 3). The only remaining face is 1, so 6 is opposite 1.

    Step 3: Check the nets for these opposite pairs. In a valid net, faces separated by one square in a straight line are opposites.

    Option 1 has a vertical column 1-4-6-2, meaning 1 is opposite 6, and 4 is opposite 2. The remaining faces 5 and 3 are opposites. This perfectly matches our deduced pairs.

    Step 4: Verify orientation. In Option 1, looking at the vertex where 5, 1, and 4 meet, the clockwise order is 5 → 1 → 4, which exactly matches View 1.

    Question 20 · Quantitative Aptitude · 2026 MCQ
    In the given figure, and are three points on a circle of radius 10 cm with as its center, , and . The figure is representative.
    45° Q P R O
    The area of the shaded region is ______________ .
    1. A.

      50

    2. B.

    3. C.

    4. D.

      100

    Correct Answer:

    C

    Step-by-Step Solution

    Insight: The quadrilateral PQRO is a kite with perpendicular diagonals, making its area simply half the product of the diagonals.

    Exam route:

    1. By the Central Angle Theorem, .
    2. is a right isosceles triangle with legs . Thus, hypotenuse .
    3. Since and , the line is the perpendicular bisector of .
    4. The area of quadrilateral is .
    5. is a radius, so .
    6. Area = .

    Learning route:

    1. Identify the given: Circle with center , radius . Points on circle. , .
    2. By the Central Angle Theorem, the angle subtended by arc at the center is .
    3. In , (radii) and . By Pythagoras, .
    4. The quadrilateral is a kite because adjacent sides are equal (, and is given).
    5. A key property of a kite is that its diagonals are perpendicular. Thus, .
    6. The area of any quadrilateral with perpendicular diagonals is .
    7. Here, , and (since is on the circle, is a radius).
    8. Area = .

    More GATE DA tests