MauryaHub PYQ Practice

Machine Learning Techniques · End Term · May 2026 · AN

Machine Learning Techniques · End Term · May 2026 AN

← Course papers · Start practice / exam

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

0 / 18 published solutions

Question 2 MCQ · 3.0 marks

Which of the following statements correctly distinguishes the hard-margin SVM from the soft- margin SVM?
A.
The hard-margin SVM has a feasible solution only when the training data is linearly separable, whereas the soft-margin SVM always has a feasible solution.
B.
The hard-margin SVM allows some training points to violate the margin, whereas the soft-margin SVM forbids all margin violations.
C.
Increasing the regularisation parameter
Source diagram or notation
in the soft-margin SVM makes it behave less like the hard-margin SVM.
D.
Unlike the hard-margin SVM, the soft-margin SVM can only be used with non- linear kernels.

A published solution is not available for this question yet.

Report a correction for Q2

Question 3 MCQ · 3.0 marks

Given a linearly separable dataset with margin
Source diagram or notation
and radius
Source diagram or notation
, which of the following statements about the perceptron algorithm are true?
A.
At a misclassified point
Source diagram or notation
, a single application of the update rule is guaranteed to classify
Source diagram or notation
correctly immediately after that step.
B.
For any linearly separable data with margin
Source diagram or notation
, the perceptron always converges to one unique separating hyperplane, independent of the order in which misclassified points are presented.
C.
Let
Source diagram or notation
(points in
Source diagram or notation
,
Source diagram or notation
examples) and
Source diagram or notation
(points in
Source diagram or notation
,
Source diagram or notation
examples) be two linearly separable datasets with
Source diagram or notation
and
Source diagram or notation
. The perceptron's worst-case mistake count is always larger for
Source diagram or notation
than for
Source diagram or notation
.
D.
None of these.

A published solution is not available for this question yet.

Report a correction for Q3

Question 4 MCQ · 3.0 marks

Assume that for a certain linear regression problem involving
Source diagram or notation
features, the following weight vectors all produce an equal mean squared error:
Source diagram or notation
Which of the weight vectors is likely to be chosen by ridge regression?
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q4

Question 5 MCQ · 3.0 marks

Consider the following dataset with two binary features
Source diagram or notation
and binary label
Source diagram or notation
:
Source diagram or notation
Consider the following three claims about this dataset: (i) Logistic regression (using the raw features
Source diagram or notation
, with or without a bias term) can achieve zero training error. (ii) A decision tree of depth at most
Source diagram or notation
, using axis-aligned splits on
Source diagram or notation
, can achieve zero training error. (iii)
Source diagram or notation
-nearest-neighbour, evaluated on this training set, achieves zero training error. Consider each point is its own nearest neighbour. Select the option that lists exactly the claims that are true.
A.
(i), (ii) and (iii)
B.
Only (ii) and (iii)
C.
Only (i) and (iii)
D.
Only (iii)

A published solution is not available for this question yet.

Report a correction for Q5

Question 6 MCQ · 3.0 marks

Suppose the dataset is initially linearly separable. Later, the data-generating process changes and the class boundary becomes highly nonlinear, for example:
Source diagram or notation
for one class and
Source diagram or notation
for the other. Without manually creating nonlinear features, which classifier among the three is most naturally capable of representing this type of decision boundary?
A.
Perceptron
B.
Logistic Regression
C.
Decision Tree
D.
None of these

A published solution is not available for this question yet.

Report a correction for Q6

Question 7 MCQ · 3.0 marks

Suppose the true data-generating process is a polynomial of degree
Source diagram or notation
. You fit three models to the data: linear regression, polynomial regression of degree
Source diagram or notation
, and polynomial regression of degree
Source diagram or notation
. Which option correctly characterizes the bias and variance of each fitted model relative to the true model?
A.
Linear: low bias, low variance; degree-
Source diagram or notation
: low bias, high variance; degree-
Source diagram or notation
: high bias, high variance.
B.
Linear: high bias, high variance; degree-
Source diagram or notation
: low bias, low variance; degree-
Source diagram or notation
: high bias, low variance.
C.
Linear: low bias, high variance; degree-
Source diagram or notation
: high bias, low variance; degree-
Source diagram or notation
: low bias, high variance.
D.
Linear: high bias, low variance; degree-
Source diagram or notation
: low bias, low variance; degree-
Source diagram or notation
: low bias, high variance.

A published solution is not available for this question yet.

Report a correction for Q7

Question 8 NAT · 2.0 marks

Consider logistic regression on one-dimensional data, with
Source diagram or notation
(the model is
Source diagram or notation
). The current weight is
Source diagram or notation
, the training set is a single example
Source diagram or notation
, and the step size is
Source diagram or notation
. Gradient ascent is performed directly on the log-likelihood of the data. Compute
Source diagram or notation
after one gradient-ascent step. (Round to
Source diagram or notation
decimal places; enter
Source diagram or notation
if it cannot be determined.)

A published solution is not available for this question yet.

Report a correction for Q8

Question 9 NAT · 2.0 marks

In logistic regression, a point is classified positive only if
Source diagram or notation
. What score threshold
Source diagram or notation
(with
Source diagram or notation
at the boundary of this rule) does this correspond to? (Round to
Source diagram or notation
decimal places.)

A published solution is not available for this question yet.

Report a correction for Q9

Question 10 NAT · 2.0 marks

You build a fully-connected feed-forward neural network. The input is a
Source diagram or notation
-dimensional vector; the network has two hidden layers of
Source diagram or notation
and
Source diagram or notation
neurons respectively, followed by an output layer of
Source diagram or notation
neurons. Every layer is densely connected to the next.
Source diagram or notation
, compute the total number of weight parameters in the network. (Enter
Source diagram or notation
if it cannot be determined.)

A published solution is not available for this question yet.

Report a correction for Q10

Question 11 NAT · 3.0 marks

Consider one-dimensional linear regression with no bias term,
Source diagram or notation
. The squared-error objective over the training set is
Source diagram or notation
. The dataset is
Source diagram or notation
. Starting from
Source diagram or notation
with learning rate
Source diagram or notation
perform one gradient-descent step. What is the model's prediction at
Source diagram or notation
?

A published solution is not available for this question yet.

Report a correction for Q11

Question 12 NAT · 3.0 marks

Consider a soft-margin SVM in
Source diagram or notation
with
Source diagram or notation
and
Source diagram or notation
. Two of the training points strictly violate the margin constraint, these two points are
Source diagram or notation
with
Source diagram or notation
, and
Source diagram or notation
with
Source diagram or notation
. All other points lie strictly beyond the margin. Compute the perpendicular distance between the margin hyperplanes
Source diagram or notation
and
Source diagram or notation
. (Round to
Source diagram or notation
decimal places.)

A published solution is not available for this question yet.

Report a correction for Q12

Question 13 NAT · 3.0 marks

A decision-tree node contains
Source diagram or notation
training examples:
Source diagram or notation
positive and
Source diagram or notation
negative. A candidate split divides them into two children: one child with
Source diagram or notation
positive and
Source diagram or notation
negative, the other with
Source diagram or notation
positive and
Source diagram or notation
negative. Using entropy (base-
Source diagram or notation
logarithms), compute the information gain of this split. (Round to
Source diagram or notation
decimal places.)

A published solution is not available for this question yet.

Report a correction for Q13

Question 14 MCQ · 1.0 marks

Source diagram or notation
For the covariance matrix , compute the variance captured along the first principal component.
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q14

Question 15 MCQ · 4.0 marks

The figure below shows the training points of a soft-margin SVM in
Source diagram or notation
, together with its decision boundary
Source diagram or notation
and its two margin hyperplanes
Source diagram or notation
and
Source diagram or notation
(dashed). Each point is marked with its true label,
Source diagram or notation
or
Source diagram or notation
. For how many points is it possible that
Source diagram or notation
lie in the range
Source diagram or notation
? (Enter
Source diagram or notation
if it cannot be determined from the figure.)
Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q15

Question 16 MCQ · 4.0 marks

Consider a dataset with six datapoints
Source diagram or notation
, with labels
Source diagram or notation
and
Source diagram or notation
. A hard-margin linear SVM is trained on this dataset. Which ONE of the following sets is a possible set of support vectors?
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q16

Question 17 MCQ · 4.0 marks

Consider a binary classification problem in
Source diagram or notation
with positive examples
Source diagram or notation
and negative examples
Source diagram or notation
. Apply the feature map
Source diagram or notation
and a linear model
Source diagram or notation
. Which of the following weight vectors
Source diagram or notation
gives a maximum-margin decision surface separating the two classes?
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q17

Question 18 MCQ · 2.0 marks

In
Source diagram or notation
-nearest-neighbours, as the hyperparameter
Source diagram or notation
is increased from
Source diagram or notation
towards
Source diagram or notation
(the size of the training set), which of the following best describes the trend in the model's bias and variance?
A.
Bias increases, variance decreases.
B.
Bias decreases, variance increases.
C.
Both bias and variance increase.
D.
Both bias and variance decrease.

A published solution is not available for this question yet.

Report a correction for Q18

Question 19 MCQ · 2.0 marks

Suppose
Source diagram or notation
are i.i.d. samples from the uniform distribution
Source diagram or notation
with unknown parameter
Source diagram or notation
. Which of the following is the maximum-likelihood estimate of
Source diagram or notation
?
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q19