GATE 2026 Data Science and Artificial Intelligence (DA) Questions with Solutions

GATE 2026

65 questions

MCQ 33 · MSQ 14 · NAT 181-mark 30 · 2-mark 35

Questions 36–40 of 65

Q36Clustering2 marksMCQ−0.67 if wrong
Let four points in three-dimensional space be:

P1:[2,3,−1]P1: [2,3,-1], P2:[3,1,1]P2: [3,1,1], P3:[5,−2,3]P3: [5,-2,3] and P4:[3,3,3]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?

Q37Regression2 marksMCQ−0.67 if wrong
Which of the following statements is true for Ridge Regression?

Q38Propositional Logic2 marksMCQ−0.67 if wrong
Assume that a Creative (C)(C) person will Succeed (S)(S) if the person is also Disciplined (DD), but will not succeed otherwise. Now, consider the following statements:

(i)C∧S⇔D(i) C \wedge S \Leftrightarrow D
(ii)C⇒(S⇔D)(ii) C \Rightarrow(S \Leftrightarrow D)
(iii)C⇔((D⇒S)∨¬S)(iii) C \Leftrightarrow((D \Rightarrow S) \vee \neg S)

Which of the following options is correct?

Q39Programming in Python2 marksMCQ−0.67 if wrong
A recursive function in Python is given.

 def mystery(n): 
 	if n <= 0: 
  		return 1 
 	else: 
  		return mystery(n-1) + mystery(n-2) 
Now, consider the following function call: mystery(4)

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

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

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

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

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

Which of the following statements must always be true, regardless of the structure of G?{G}?