ML Study Hub

Home / MLT / Week 5 / Real questions

MLT week 5 - real exam questions

50 questions pulled from past papers whose wording matches this week's topics, newest first, duplicates removed. Pick your answers, then press Check answers. Figures and answer keys are the originals.

Elapsed 00:00
MLT End Term · 13 Sep 2026 · open the full paper
Practice 1MCQ3 marks
Assume that for a certain linear regression problem involving features, the following weight vectors all produce an equal mean squared error: Which of the weight vectors is likely to be chosen by ridge regression?
MLT End Term · 13 Sep 2026 · open the full paper
Practice 2MCQ3 marks
Consider the following dataset with two binary features and binary label : question figure Consider the following three claims about this dataset: (i) Logistic regression (using the raw features , with or without a bias term) can achieve zero training error. (ii) A decision tree of depth at most , using axis-aligned splits on , can achieve zero training error. (iii) -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.
  1. (i), (ii) and (iii)
  2. Only (ii) and (iii)
  3. Only (i) and (iii)
  4. Only (iii)
MLT End Term · 13 Sep 2026 · open the full paper
Practice 3MCQ3 marks
Suppose the dataset is initially linearly separable. Later, the data-generating process changes and the class boundary becomes highly nonlinear, for example: for one class and for the other. Without manually creating nonlinear features, which classifier among the three is most naturally capable of representing this type of decision boundary?
  1. Perceptron
  2. Logistic Regression
  3. Decision Tree
  4. None of these
MLT End Term · 13 Sep 2026 · open the full paper
Practice 4MCQ3 marks
Suppose the true data-generating process is a polynomial of degree . You fit three models to the data: linear regression, polynomial regression of degree , and polynomial regression of degree . Which option correctly characterizes the bias and variance of each fitted model relative to the true model?
  1. Linear: low bias, low variance; degree- : low bias, high variance; degree- : high bias, high variance.
  2. Linear: high bias, high variance; degree- : low bias, low variance; degree- : high bias, low variance.
  3. Linear: low bias, high variance; degree- : high bias, low variance; degree- : low bias, high variance.
  4. Linear: high bias, low variance; degree- : low bias, low variance; degree- : low bias, high variance.
MLT End Term · 13 Sep 2026 · open the full paper
Practice 5SA2 marks
Consider logistic regression on one-dimensional data, with (the model is ). The current weight is , the training set is a single example , and the step size is . Gradient ascent is performed directly on the log-likelihood of the data. Compute after one gradient-ascent step. (Round to decimal places; enter if it cannot be determined.)
MLT End Term · 13 Sep 2026 · open the full paper
Practice 6SA2 marks
In logistic regression, a point is classified positive only if . What score threshold (with at the boundary of this rule) does this correspond to? (Round to decimal places.)
MLT End Term · 13 Sep 2026 · open the full paper
Practice 7SA3 marks
Consider one-dimensional linear regression with no bias term, . The squared-error objective over the training set is question figure . The dataset is . Starting from with learning rate perform one gradient-descent step. What is the model's prediction at ?
MLT End Term · 13 Sep 2026 · open the full paper
Practice 8MSQ4 marksselect all that apply
Consider binary classification on input features . Define the decision boundary of a trained classifier as the set of points at which its predicted label changes. For which of the following method(s) can this decision boundary be non-linear in ?
  1. Perceptron.
  2. Logistic regression, predicting the positive class when .
  3. -nearest-neighbour with Euclidean distance.
  4. A decision tree using axis-aligned splits.
  5. Gaussian Naïve Bayes in which the class-conditional feature variances differ between the two classes.
  6. A support vector machine with a linear kernel.
  7. A support vector machine with an RBF (Gaussian) kernel.
MLT End Term · 13 Sep 2026 · open the full paper
Practice 9MSQ2 marksselect all that apply
Consider the effect of each operation below on a model's bias and variance. Which of the following statements are correct?
  1. Regularising the weights in a linear/logistic regression model increases bias and decreases variance.
  2. Increasing the maximum depth of a decision tree increases bias and decreases variance.
  3. Increasing the number of hidden units in a neural network decreases bias and increases variance.
  4. Removing all the non-support-vectors from the training set of an SVM leaves both bias and variance unchanged.
MLT End Term · 13 Sep 2026 · open the full paper
Practice 10SA2 marks
In logistic regression, a point is classified positive only if . What score threshold (with at the boundary of this rule) does this correspond to? (Round to 2 decimal places.)
MLT End Term · 13 Sep 2026 · open the full paper
Practice 11MCQ4 marks
Let be the solution to the ordinary least-squares linear regression problem question figure . Which of the following is always satisfied at ? Note that here is your feature matrix and is the label vector.
MLT End Term · 13 Sep 2026 · open the full paper
Practice 12SA3 marks
Consider one-dimensional ridge regression with no bias term. Given question figure and question figure , with , compute the optimal . Note that is th data point and is th label. (Round to 2 decimal places.)
MLT End Term · 13 Sep 2026 · open the full paper
Practice 13MCQ2 marks
Consider a binary classification dataset in which the two classes are perfectly linearly separable. You are considering a Perceptron, Logistic Regression, and a Decision Tree. If the objective is to learn a linear decision boundary and no probability estimates are required, which of the following classifiers are appropriate choices?
  1. Perceptron only
  2. Logistic Regression only
  3. Both Perceptron and Logistic Regression
  4. Decision Tree only
MLT Quiz 2 · 16 Aug 2026 · open the full paper
Practice 14MCQ4 marks
Under the probabilistic view of linear regression, assume where the observations are independent. Suppose the true noise variance is instead of , while the dataset and the observed labels remain unchanged. What happens to the maximum likelihood estimator question figure
  1. It is unchanged.
  2. It is scaled by .
  3. It is scaled by .
  4. It cannot be determined without knowing .
MLT Quiz 2 · 16 Aug 2026 · open the full paper
Practice 15MCQ4 marks
On a machine that folds plastic film, the operating temperature can be varied between and . To study the relationship between temperature and fold thickness, observations of temperature and the corresponding fold thickness were collected. The scatter plot along with the fitted simple linear regression line is shown below. question figure Determine, by inspecting the figure, which of the following sets of parameter estimates for the simple linear regression model is most appropriate. Note: The regression model is where Here, is the estimated intercept,• is the estimated slope, and• is the estimated standard deviation of the error term.•
MLT Quiz 2 · 16 Aug 2026 · open the full paper
Practice 16MCQ3 marks
A student minimizes the sum of squared errors (SSE) loss question figure while another student minimizes the mean squared error (MSE) loss question figure Both students use gradient descent with the same learning rate and the same initial parameter vector . Which one of the following statements is correct?
  1. They converge to different minimizers, because the losses differ.
  2. They converge to the same minimizer, but 's steps are times smaller; would need learning rate to reproduce 's trajectory.
  3. They converge to the same minimizer, and their iterates coincide at every step.
  4. They converge to the same minimizer, but 's steps are times larger.
MLT Quiz 2 · 16 Aug 2026 · open the full paper
Practice 17MCQ3 marks
Suppose the label vector is orthogonal to every feature vector, i.e. for all . is the optimal weight obtained after minimizing the objective function of linear regression. Which statement is correct?
  1. and the training error is .
  2. and the squared training error equals .
  3. and the squared training error equals .
  4. The normal equations have no solution.
MLT End Term · 10 May 2026 · open the full paper
Practice 18SA3 marks
Consider a regression problem in which we use a neural network with the following architecture: Input layer has neurons• Two hidden layers, each with neurons• Output layer with one neuron• Find the total number of parameters in the network. Ignore the biases.
MLT End Term · 10 May 2026 · open the full paper
Practice 19SA4 marks
Consider a logistic regression classifier trained on a dataset for a binary classification problem with features in and labels in . The weight vector learnt by the classifier is . Given a test data-point , the probability question figure , where is the base of the natural logarithm. Find the value of and enter the nearest integer as your answer.
MLT End Term · 10 May 2026 · open the full paper
Practice 20MCQ4 marks
Consider a dataset with two data-points for a binary classification problem with features in . is a data-point from the positive class while is from the negative class. We now consider three linear classifiers: perceptron, logistic regression and SVM. question figure If is the weight vector with the largest margin, which of the following is true? question figure
  1. All three classifiers output
  2. Only SVM outputs
  3. Only SVM and perceptron output
  4. Only perceptron and logistic regression output
MLT End Term · 10 May 2026 · open the full paper
Practice 21MSQ4 marksselect all that apply
Consider a dataset consisting of datapoints , where each . Let the four features be denoted by and .Suppose the features satisfy the following linear relationship: That is, one of the features is an exact linear combination of others. A linear regression model is trained to predict a target variable using these features. Consider the following statements: Consider the following statements: Which of the following is (are) true?
  1. Linear regression without regularization will achieve training MSE less than or equal to that of ridge regression.
  2. The solution for linear regression without regularization may not be unique.
  3. Ridge regression (L2 regularization) will always set at least one coefficient exactly to zero.
  4. Lasso regression (L1 regularization) can force some feature weights to become exactly zero.
MLT End Term · 10 May 2026 · open the full paper
Practice 22SA4 marks
Consider a binary classification problem using logistic regression. The model predicts the probability of class as: question figure A threshold of is used for classification. The predicted class label is given by: question figure The values of for the following datapoints are: How many datapoints will be classified as class ?
MLT End Term · 10 May 2026 · open the full paper
Practice 23SA3 marks
Consider a regression problem in which we use a neural network with the following architecture: • Input layer has neurons • Three hidden layers, each with neurons • Output layer with one neuron Find the total number of parameters in the network. Ignore the biases.
MLT Quiz 2 · 12 Apr 2026 · open the full paper
Practice 24MCQ3 marks
Consider a linear regression model applied to a dataset in which each data-point is described by two features. The first feature is always . The data-point's feature-label pair is represented as . Let be the optimal weight vector that minimizes the sum of squared errors. Consider two scenarios: : , for each data-point . : , for each data-point . Which of the following is true?
  1. is possible, but is impossible.
  2. is impossible, but is possible.
  3. One of or is possible.
  4. Both and are impossible.
MLT Quiz 2 · 12 Apr 2026 · open the full paper
Practice 25MCQ3 marks
In Ridge Regression, the optimal weight vector is given by . The regularization parameter is determined using 5-fold cross-validation. The following table summarizes the average Training Error and Validation Error (Mean Squared Error) obtained for various values of : question figure Based on the cross-validation results provided, what is the most appropriate choice for ?
  1. 0.001
  2. 0.1
  3. 1.0
  4. 10.0
  5. 100
MLT Quiz 2 · 12 Apr 2026 · open the full paper
Practice 26MSQ3 marksselect all that apply
A researcher is modeling a dataset using linear regression of the form . They are considering two different probabilistic assumptions for the independent and identically distributed (i.i.d.) noise term : • Assumption A: The noise follows a Gaussian distribution, . • Assumption B: The noise follows a Laplace distribution, . The training dataset is known to contain several extreme outliers resulting from sensor malfunctions. Which of the following statements correctly describes the behavior of the Maximum Likelihood Estimation (MLE) for the parameter vector ?
  1. Under Assumption A, the MLE is equivalent to minimizing Mean Squared Error (MSE), which is highly sensitive to outliers because the penalty grows quadratically.
  2. Under Assumption B, the MLE is equivalent to L1 regularization, which is more robust to outliers because the penalty for large residuals grows linearly.
  3. Both Assumption A and Assumption B lead to the same optimal parameter vector regardless of the presence of outliers.
  4. All the given options are correct
MLT Quiz 2 · 12 Apr 2026 · open the full paper
Practice 27MCQ2 marks
Let the linear regression model's solution be written as , where . Let be a valid kernel function. What will be the prediction for an unseen data point ?
MLT Quiz 2 · 12 Apr 2026 · open the full paper
Practice 28SA3 marks
Perform a 3-NN regressor for the following dataset: question figure where, is a feature vector and is the label. What will be the predicted value for the test data point ? ___________ Enter the answer correct to one decimal place.
MLT End Term · 21 Dec 2025 · open the full paper
Practice 29SA4 marks
Comprehension passage for this question
Based on the above data, answer the given subquestions. question figure
For input , compute the the regression output . Enter the answer correct to one decimal place.
MLT Quiz 1 · 13 Jul 2025 · open the full paper
Practice 30MSQ3 marksselect all that apply
For a linear regression problem, which among the following are true? Select all that apply.
  1. Gradient descent will converge to a global minimum.
  2. Gradient descent will converge to a local minimum (which is not a globalminimum).
  3. Stochastic gradient descent is guaranteed to converge to a global minimum.
  4. Gradient descent will take lesser number of iterations to converge to a localminimum than stochastic gradient descent.
MLT Quiz 1 · 13 Jul 2025 · open the full paper
Practice 31SA1 mark
Comprehension passage for this question
Based on the above data, answer the given subquestions. question figure
Find the mean squared error for the training dataset.
MLT End Term · 13 Apr 2025 · open the full paper
Practice 32MSQ2 marksselect all that apply
What is the role of the regularization term in ridge regression?
  1. It ensures that the dataset is normally distributed.
  2. It penalizes large coefficients to reduce overfitting.
  3. It forces more coefficients to be exactly zero, performing feature selection.
  4. It increases the variance of the model.
MLT End Term · 13 Apr 2025 · open the full paper
Practice 33MSQ2 marksselect all that apply
question figure
  1. It penalizes large coefficients to reduce overfitting.
  2. It shrinks the coefficients but does not set them to zero.
  3. It forces more coefficients to be exactly zero, performing feature selection.
  4. It has no effect on the regression model.
MLT Quiz 2 · 16 Mar 2025 · open the full paper
Practice 34MSQ3 marksselect all that apply
question figure
  1. It ensures that the regression model remains linear.
  2. It computes the similarity between data points in a transformed feature space.
  3. It allows the model to capture non-linear relationships by mapping data to ahigher-dimensional space.
  4. It helps in reducing the variance of the model.
  5. It minimizes the loss function in regression problems.
MLT End Term · 22 Dec 2024 · open the full paper
Practice 35SA3 marks
Consider a logistic regression model trained to detect spam emails. Emails containing harmful phishing links are labeled as spam (1), while regular emails are labeled as not spam (0). A good spam detector should correctly identify almost all emails with phishing links. Even a single phishing email incorrectly classified as not spam could expose users to significant risks. However, the detector may classify some regular emails as spam. This trade-off is acceptable to ensure safety. To ensure user safety, if the threshold is set to a low value to prioritize the detection of phishing emails, type 1. If the threshold is set to a high value to minimize false positives (misclassifying regular emails as spam), type 0.
MLT Quiz 2 · 04 Aug 2024 · open the full paper
Practice 36MCQ1 mark
Comprehension passage for this question
Based on the above data, answer the given subquestions. question figure
What kind of a regression problem is this?
  1. Ridge regression
  2. LASSO regression
MLT End Term · 24 Dec 2023 · open the full paper
Practice 37MSQ6 marksselect all that apply
Choose all the correct statements about neural networks
  1. It can not be used for both regression and classification problems
  2. It can have more than two hidden layers
  3. The activation functions have to be non-linear to separate not linearlyseparable data points
  4. Each neuron in the neural network may or may not have bias associated with it
MLT Quiz 2 · 03 Dec 2023 · open the full paper
Practice 38MSQ4 marksselect all that apply
Comprehension passage for this question
question figure
question figure
  1. The kernel regression is parametric
  2. The kernel regression is non-parametric
  3. The Kernel matrix K is positive semi-definite
  4. In general, Kernel regression is computationally expensive than a simple linearregression
MLT Quiz 2 · 03 Dec 2023 · open the full paper
Practice 39MCQ4 marks
question figure
  1. w1 → Lasso regression, w2 → Linear regression, w3 → Ridge regression
  2. w1→ Ridge regression, w2 → Lasso regression, w3 → Linear regression
  3. w1 → Linear regression, w2 → Ridge regression, w3 → Lasso regression
  4. w1 → Ridge regression, w2 → Linear regression, w3 → Lasso regression
MLT End Term · 03 Sep 2023 · open the full paper
Practice 40MSQ6 marksselect all that apply
Which of the following statements is/are true?
  1. Ridge regression and Lasso regression both puts a limit on the length ofweight vector.
  2. Ridge regression puts limit on length of the weight vector but LASSOregression does not put a limit on weight vector length.
  3. When many features are redundant, then LASSO regression is moreappropriate than ridge regression and linear regression as LASSO regression produces sparseweights for those features.
  4. When many features are redundant, then linear regression is moreappropriate than ridge regression and LASSO regression
MLT End Term · 03 Sep 2023 · open the full paper
Practice 41MSQ6 marksselect all that apply
Which of the following statements is/are true regarding logistic regression and perceptron algorithm?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
MLT Quiz 2 · 06 Aug 2023 · open the full paper
Practice 42MSQ4.5 marksselect all that apply
Which of the following statements is/are true regarding solution of Ridge regression problem?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
MLT End Term · 11 Dec 2022 · open the full paper
Practice 43MCQ3 marks
Suppose you run gradient descent for linear regression for 500 iterations with a learning rate 0.02. You observe that the training loss (sum of squared loss) is increasing after every iteration. What may be the reason? What changes would you make to the set-up for the gradient descent to converge to a solution?
  1. Number of features in the training data may be too low, try increasing them.
  2. Number of features in the training data may be too high, try reducing them.
  3. Learning rate may be too low; Try increasing it.
  4. Learning rate may be too high; Try reducing it.
MLT End Term · 11 Dec 2022 · open the full paper
Practice 44MCQ3 marks
Suppose you run gradient descent for linear regression for 100 iterations with a learning rate 0.01. You observe that the training loss (sum of squared loss) is increasing after every iteration. What may be the reason? What changes would you make to the set-up for the gradient descent to converge to a solution?
  1. Learning rate may be too low; Try increasing it.
  2. Learning rate may be too high; Try reducing it.
  3. Number of features in the training data may be too low, try increasing them.
  4. Number of features in the training data may be too high, try reducing them.
MLT End Term · 07 Aug 2022 · open the full paper
Practice 45MSQ3 marksselect all that apply
question figure
  1. The polynomial regression model of degree 6 adds a smooth fitting to thisdata.
  2. The polynomial regression model of degree 98 overfits this data.
  3. The polynomial regression model of degree 2 adds a smooth fitting to thisdata.
  4. The polynomial regression model of degree 3 underfits this data.
MLT End Term · 07 Aug 2022 · open the full paper
Practice 46SA3 marks
Comprehension passage for this question
Based on the above data, answer the given subquestions. question figure
If the present price of a car which is driven for 5 years is 9.5 lac. If the car has an LPG engine, what will be the prediction for the selling price of the car according to the given regression tree? Enter your answer in lac. If your answer is 5.6 lac, enter the answer 5.6.
MLT End Term · 07 Aug 2022 · open the full paper
Practice 47MSQ3 marksselect all that apply
question figure
  1. The polynomial regression model of degree 5 adds a smooth fitting to thisdata.
  2. The polynomial regression model of degree 99 overfits this data.
  3. The polynomial regression model of degree 1 adds a smooth fitting to thisdata.
  4. The polynomial regression model of degree 2 underfits this data.
MLT End Term · 07 Aug 2022 · open the full paper
Practice 48SA3 marks
Comprehension passage for this question
Based on the above data, answer the given subquestions. question figure
If the present price of a car which is driven for 7 years is 6.0 lac. If the car has a diesel engine, what will be the prediction for the selling price of the car according to the given regression tree? Enter your answer in lac. If your answer is 5.6 lac, enter the answer 5.6.
MLT Quiz 2 · 10 Jul 2022 · open the full paper
Practice 49MSQ2 marksselect all that apply
Which of the following could be the vector of probabilities output by a softmax regression model for 5 classes? Note that the options are independent of each other.
  1. question figure
  2. question figure
  3. question figure
  4. question figure
MLT Quiz 2 · 10 Jul 2022 · open the full paper
Practice 50MCQ3 marks
Consider a logistic regression model that is trained on videos to detect objectionable content. Videos with objectionable content belong to the positive class (label 1). Harmless videos belong to the negative class (label 0). A good detector should be able to correctly identify almost all videos that are objectionable. If it incorrectly classifies even a single video that has inappropriate content in it, that could have serious consequences, as millions of people might end up watching it. In this process the detector may classify some harmless videos as belonging to the positive class. But that is a price we are willing to pay. How should we choose the threshold (for inference) of this logistic regression model?
  1. The threshold should be a low value.
  2. The threshold should be a high value.
  3. The performance of the classifier is independent of the threshold.