Data Science and Artificial Intelligence
GATE DA discipline:computing-and-data PYQs
Build your understanding with focused practice from past exam papers.
Questions 91–100 of 195. Imported answers require independent review unless marked reviewed.
Question 26
Open questiondaMSQ1 markNeeds review
Which of the following statements is/are correct in a Bayesian network?
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 27
Open questiondaMSQ1 markNeeds review
For which of the following inputs does binary search take time
in the worst case?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 28
Open questiondaMSQ1 markNeeds review
Let
, where
is the
identity matrix and
,
. Which of the following options is/are correct?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 29
Open questiondaMSQ1 markNeeds review
Suppose that insertion sort is applied to the array
and it takes exactly two swaps to sort the array. Select all possible values of
.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 30
Open questiondaMSQ1 markNeeds review
Let
and
be two sets of objects. Let
be a measure of dissimilarity between two objects
and
. Consider the following definitions of dissimilarity between
and
.
Which of the following statements is/are correct?
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 31
Open questiondaNAT1 markNeeds review
There are three boxes containing white balls and black balls.
Box-1 contains 2 black and 1 white balls.
Box-2 contains 1 black and 2 white balls.
Box-3 contains 3 black and 3 white balls.
In a random experiment, one of these boxes is selected, where the probability of choosing Box-1 is
, Box-2 is
, and Box-3 is
. A ball is drawn at random from the selected box. Given that the ball drawn is white, the probability that it is drawn from Box-2 is ________ (Round off to two decimal places)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 32
Open questiondaNAT1 markNeeds review
____________
(Round off to one decimal place)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 33
Open questiondaNAT1 markNeeds review
On a relation named Loan of a bank:
loan_number | branch_name | amount |
|---|---|---|
L11 | Banjara Hills | 9000 |
L14 | Kondapur | 5000 |
L15 | SR Nagar | 4000 |
L22 | SR Nagar | 2500 |
L23 | Balanagar | 8000 |
L25 | Kondapur | 7000 |
L19 | SR Nagar | 6500 |
the following SQL query is executed.
SELECT L1.loan_number
FROM Loan L1
WHERE L1.amount > (SELECT MAX (L2.amount)
FROM Loan L2
WHERE L2.branch_name = 'SR Nagar');
The number of rows returned by the query is ________ (Answer in integer)
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 34
Open questiondaNAT1 markNeeds review
Given data
of the form
, we fit a model
using linear least-squares regression. The optimal value of
is __________
(Round off to three decimal places)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 35
Open questiondaNAT1 markNeeds review
The naive Bayes classifier is used to solve a two-class classification problem with class-labels
. Suppose the prior probabilities are
and
. Assuming a discrete feature space with
for a specific feature vector
. The probability of misclassifying
is __________
(Round off to two decimal places)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