Data Science and Artificial Intelligence
GATE DA discipline:computing-and-data PYQs
Build your understanding with focused practice from past exam papers.
Questions 171–180 of 195. Imported answers require independent review unless marked reviewed.
Question 41
Open questionDAMCQ2 marksNeeds review
Consider the following Python function:
def fun(D, s1, s2):
if s1 < s2:
D[s1], D[s2] = D[s2], D[s1]
fun(D, s1+1, s2-1)
What does this Python function
do? Select the ONE appropriate option below.Your answerChoose one option.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 42
Open questionDAMCQ2 marksNeeds review
Consider the table below, where the
element of the table is the distance between points
and
. Single linkage clustering is performed on data points,
. | | | | | |
|---|---|---|---|---|---|
| 0 | 1 | 4 | 3 | 6 |
| 1 | 0 | 3 | 5 | 3 |
| 4 | 3 | 0 | 2 | 5 |
| 3 | 5 | 2 | 0 | 1 |
| 6 | 3 | 5 | 1 | 0 |
Which ONE of the following is the correct representation of the clusters produced?
Your answerChoose one option.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 43
Open questionDAMCQ2 marksNeeds review
Consider the two neural networks (NNs) shown in Figures 1 and 2, with ReLU 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 1

Figure 2

Your answerChoose one option.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 44
Open questionDAMCQ2 marksNeeds review
Consider a state space where the start state is number 1. The successor function for the state numbered
returns two states numbered
and
. Assume that the states in the unexpanded state list are expanded in the ascending order of numbers and the previously expanded states are not added to the unexpanded state list.Which ONE of the following statements about breadth-first search (BFS) and depth-first search (DFS) is true, when reaching the goal state number 6?
Your answerChoose one option.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 45
Open questionDAMCQ2 marksNeeds review
Consider the following sorting algorithms:
(i) Bubble sort
(ii) Insertion sort
(iii) Selection sort
Which ONE among the following choices of sorting algorithms sorts the numbers in the array [4,3,2,1,5] in increasing order after exactly two passes over the array?
Your answerChoose one option.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 46
Open questionDAMSQ2 marksNeeds review
Given the relational schema
and the set of functional dependencies:
Which of the following functional dependencies can be derived from the above set?
Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 47
Open questionDAMSQ2 marksNeeds review
Select all choices that are subspaces of
.Note:
denotes the set of real numbers.Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 48
Open questionDAMSQ2 marksNeeds review
Which of the following statements is/are TRUE?
Note:
denotes the set of real numbers.Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 49
Open questionDAMSQ2 marksNeeds review
Let
be the set of real numbers,
be a subspace of
and
be the matrix corresponding to the projection onto the subspace
. Which of the following statements is/are TRUE?Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 50
Open questionDAMSQ2 marksNeeds review
Consider the function
where
is the set of all real numbers.
Which of the following statements is/are TRUE?
Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer