All subjects ยท 27 October 2026
GATE DA 2027 | 25-30 Questions Daily - 27-10-2026
GATE DA 2027 | 25-30 Questions Daily - 27-10-2026
29 questions below: try each one and check your answer. Free, no login needed.
All subjects ยท 27 October 2026
GATE DA 2027 | 25-30 Questions Daily - 27-10-2026
29 questions below: try each one and check your answer. Free, no login needed.
Q1HardMCQProbability and Statistics
A fair die is rolled repeatedly until the first 6 appears. Let N be the number of rolls required. Given that N is even, what is the probability that N equals 2?
Q2HardMCQProbability and Statistics
Let X and Y be independent random variables, each uniformly distributed between 0 and 1. Define Z as the larger of X and Y. What is the expected value of Z, given that X is less than Y?
Q3HardMCQProbability and Statistics
A box is chosen at random (each of the two boxes is equally likely) from Box A and Box B. Box A contains 2 red balls and 1 blue ball. Box B contains 1 red ball and 2 blue balls. Two balls are drawn without replacement from the chosen box. Given that both drawn balls are red, what is the probability that Box A was chosen?
Q4HardMCQProbability and Statistics
Let X be a random variable with density 2x for x between 0 and 1. Given that X equals x, let Y be a Bernoulli random variable (taking value 0 or 1) such that the probability that Y equals 1 is x squared. What is the covariance of X and Y?
Q5AIR 1 ChallengeMCQProbability and Statistics
Let X and Y be independent Exponential random variables, each with rate 1. Define U as X divided by (X plus Y), and S as X plus Y. What is the probability that U is greater than 3/4, given that S is greater than 1?
Q6MediumMCQLinear Algebra
Let A be an n by n real matrix. Which condition guarantees that the columns of A form a basis of n-dimensional real space?
Q7MediumMCQCalculus and Optimization
Suppose f is differentiable on an open interval containing an interior point c, and c is a local maximum of f. Which statement must hold?
Q8MediumMCQLinear Algebra
A real symmetric matrix A has all eigenvalues strictly positive. Which conclusion follows?
Q9MediumMCQCalculus and Optimization
Let f be continuous on the closed interval from a to b and differentiable on the open interval from a to b. If the derivative of f is greater than zero at every point in the open interval, which conclusion is guaranteed?
Q10MediumMCQLinear Algebra
Let f be a twice continuously differentiable function from n-dimensional real space to the real numbers. At a stationary point x-star, the gradient is zero and the Hessian matrix is positive semidefinite. What can be concluded in general?
Q11MediumMCQ
A model achieves very low training error but significantly higher test error. Which approach is most directly aimed at addressing this problem?
Q12MediumMCQ
In k-nearest neighbors classification, what is a likely consequence of choosing k = 1 rather than a much larger k?
Q13MediumMCQ
Why is feature scaling often important for algorithms such as k-means and distance-based nearest-neighbor methods?
Q14MediumMCQ
A binary classifier is evaluated on a dataset where only 1% of examples belong to the positive class. Why might accuracy be misleading?
Q15MediumMCQ
In gradient descent for a differentiable loss function, what is the most likely consequence of choosing a learning rate that is excessively large?
Q16HardMCQProgramming, Data Structures and Algorithms
What is the output of this Python code?
def f(n):
if n <= 1:
return n
return f(n // 2) + f(n // 2) + n % 2
print(f(11))Q17HardMCQProgramming, Data Structures and Algorithms
What does this code print?
s = []
for x in [3, 1, 4, 1, 5]:
while s and s[-1] < x:
s.pop()
s.append(x)
print(s)Q18HardMCQProgramming, Data Structures and Algorithms
What is the output of this code?
def bsearch(a, x):
lo, hi = 0, len(a)
while lo < hi:
mid = (lo + hi) // 2
if a[mid] < x:
lo = mid + 1
else:
hi = mid
return lo
print(bsearch([1, 2, 2, 2, 4, 7], 2))Q19HardMCQProgramming, Data Structures and Algorithms
What is printed by this code?
import heapq
h = [7, 2, 5, 1]
heapq.heapify(h)
ans = []
for _ in range(3):
ans.append(heapq.heappop(h))
print(ans, h[0])Q20HardMCQProgramming, Data Structures and Algorithms
What is the output of this graph traversal?
from collections import deque
G = {0: [1, 2], 1: [3], 2: [3], 3: []}
q = deque([0])
seen = {0}
order = []
while q:
u = q.popleft()
order.append(u)
for v in G[u]:
if v not in seen:
seen.add(v)
q.append(v)
print(order)Q21MediumMCQDatabase Management and Warehousing
Conflict Serializability. Consider this schedule, in the order given: T1 reads X; T2 writes X; T2 reads Y; T1 writes Y; T3 reads X; T3 writes Y. Which statement is correct?
Q22MediumMCQDatabase Management and Warehousing
Recoverability and Cascading Rollback. Consider this schedule, in the order given: T1 writes X; T2 reads X; T2 writes Y; T3 reads Y; T1 commits; T2 commits; T3 commits. Which statement is correct?
Q23MediumMCQDatabase Management and Warehousing
Two-Phase Locking (2PL). A transaction T1 acquires an exclusive lock on X, then acquires a shared lock on Y, then releases the lock on X, and afterwards requests an exclusive lock on Z. Assume locks are never upgraded or downgraded implicitly. Which statement is correct?
Q24MediumMCQDatabase Management and Warehousing
Relational Algebra: Division. Consider the relations Student(SID, Name), Enroll(SID, CID) and Required(CID). A student should be selected if the student is enrolled in every course listed in Required. Which relational algebra expression correctly returns the SIDs of the qualifying students?
Q25MediumMCQDatabase Management and Warehousing
Relational Model: Keys. Consider a relation R with attributes A, B and C, and the functional dependencies: A determines B, and B determines C. Which statement is correct under the relational model?
Q26HardMCQ
A* Search: Heuristic Analysis. A directed graph has these edges with their costs: S to A costs 2; S to B costs 5; A to B costs 1; A to G costs 7; B to G costs 2. The heuristic values are: S = 4, A = 3, B = 2, G = 0. A* graph search uses f = g + h (where g is the cost so far and h is the heuristic estimate), and a node is permanently closed once it is expanded. Which statement is correct?
Q27HardMCQ
Minimax with Alpha-Beta Pruning. A MAX root node has two MIN children, L and R, explored from left to right. L has leaf values 8, 6, 9. R has leaf values 5, 4, 7. Alpha-beta pruning is applied in the standard left-to-right order. Which leaves are evaluated, and what is the final root value?
Q28HardMCQ
Bayesian Network: Exact Inference. In a Bayesian network, A and B are both parents of C, and C is the parent of D. All variables are binary (0 or 1). The probability that A equals 1 is 0.4, and the probability that B equals 1 is 0.5 (A and B are independent). The probability that C equals 1 is: 0.9 when A=1 and B=1; 0.7 when A=1 and B=0; 0.6 when A=0 and B=1; 0.1 when A=0 and B=0. Also, the probability that D equals 1 is 0.8 when C=1, and 0.2 when C=0. What is the probability that A equals 1, given that D equals 1?
Q29HardMCQ
Constraint Satisfaction: Backtracking and Constraint Propagation. A problem has variables X, Y and Z, each with domain {1, 2, 3}, and these constraints: X is not equal to Y; Y is less than Z; X plus Y equals 4. After enforcing arc consistency on all constraints, which statement is correct?