ML Study Hub

Home / MLT / Week 9 / Real questions

MLT week 9 - real exam questions

39 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
Given a linearly separable dataset with margin and radius question figure , which of the following statements about the perceptron algorithm are true?
  1. At a misclassified point , a single application of the update rule is guaranteed to classify correctly immediately after that step.
  2. For any linearly separable data with margin , the perceptron always converges to one unique separating hyperplane, independent of the order in which misclassified points are presented.
  3. Let (points in , examples) and (points in , examples) be two linearly separable datasets with and . The perceptron's worst-case mistake count is always larger for than for .
  4. None of these.
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 4SA2 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 5SA2 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 6MSQ4 marksselect all that apply
Let be points in that are linearly separable by a hyperplane through the origin. Construct where is a constant. The perceptron algorithm (initialised at , learning rate ) is run on both and , using the same ordering of points in both runs. Which of the following statements are true?
  1. The mistake bound of the perceptron on is strictly larger than its mistake bound on .
  2. may fail to be linearly separable.
  3. The perceptron is guaranteed to converge on .
  4. The perceptron produces exactly the same decision boundary on and on .
MLT End Term · 13 Sep 2026 · open the full paper
Practice 7MSQ4 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 8MSQ2 marksselect all that apply
Let question figure be the sigmoid (logistic) function. Select all statements below that are true for every .
  1. .
  2. is a non-decreasing function but not strictly increasing.
  3. is a strictly increasing function.
  4. is convex on all of .
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 11MCQ2 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 End Term · 10 May 2026 · open the full paper
Practice 12MSQ3 marksselect all that apply
Two loss functions are plotted in this graph. What are the two? question figure
  1. Logistic loss
  2. Hinge loss
  3. Squared loss
  4. 0-1 loss
MLT End Term · 10 May 2026 · open the full paper
Practice 13SA4 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 14MCQ4 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 15MSQ3 marksselect all that apply
Consider a binary classification dataset in that is linearly separable. Suppose there exist two distinct weight vectors and that both correctly classify all training points with a positive margin. The Perceptron algorithm is applied to this dataset. Which of the following statements are correct? (Select all that apply.)
  1. The Perceptron algorithm is guaranteed to converge to .
  2. The final weight vector obtained by the Perceptron algorithm depends on the initialization and the order in which the data points are presented.
  3. The Perceptron algorithm is guaranteed to converge to some separating hyperplane in a finite number of updates.
  4. The Perceptron algorithm always converges to the maximum margin separator among all possible separating hyperplanes.
MLT End Term · 10 May 2026 · open the full paper
Practice 16SA4 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 · 21 Dec 2025 · open the full paper
Practice 17MCQ3 marks
Consider two datasets and where and such that and , where and . The maximum number of mistakes made by the perceptron algorithm is higher on dataset than on dataset .
  1. True
  2. False
MLT End Term · 31 Aug 2025 · open the full paper
Practice 18MSQ4 marksselect all that apply
Given a two-dimensional data set where points from class 1 are: {(−2, 3), (−1, 1)} and points from class 0 are: {(1, 3), (1, 4)}. Which of the following statements are true?
  1. The given data points from classes 1 and 0 can be linearly separated using ahard-margin SVM.
  2. A perceptron model and a hard-margin SVM can give different decisionboundary for this dataset.
  3. A soft-margin SVM would be a more robust choice than a hard-margin SVM forthis dataset as the dataset is not linearly separable.
  4. The width of the separation between the two supporting hyperplanes is 4.
MLT End Term · 22 Dec 2024 · open the full paper
Practice 19SA3 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 End Term · 01 Sep 2024 · open the full paper
Practice 20MSQ3 marksselect all that apply
question figure
  1. The dataset is linearly separable with a positive margin.
  2. The perceptron algorithm will terminate after a finite number of iterationswhen trained on this dataset.
  3. The dataset is linearly separable, but the margin may be zero.
  4. The dataset is not linearly separable.
MLT End Term · 01 Sep 2024 · open the full paper
Practice 21MCQ1 mark
Comprehension passage for this question
Based on the above data, answer the given subquestions. question figure
The weight vector output by the perceptron algorithm on this dataset can be expressed as a linear combination of the data-points where the coefficients of the linear combination are integers.
  1. TRUE
  2. FALSE
MLT End Term · 01 Sep 2024 · open the full paper
Practice 22MCQ1 mark
Comprehension passage for this question
Based on the above data, answer the given subquestions. question figure
What is the most appropriate choice of activation function for the output layer if the binary cross-entropy loss is used?
  1. Sigmoid
  2. Linear
  3. ReLU
MLT End Term · 01 Sep 2024 · open the full paper
Practice 23MCQ1 mark
Comprehension passage for this question
Based on the above data, answer the given subquestions. question figure
question figure
  1. ReLU
  2. Sigmoid
MLT End Term · 01 Sep 2024 · open the full paper
Practice 24MSQ3 marksselect all that apply
question figure
  1. The dataset is linearly separable with a positive margin.
  2. The perceptron algorithm will terminate after a finite number of iterationswhen trained on this dataset.
  3. The dataset is linearly separable, but the margin may be zero.
  4. The dataset is not linearly separable.
MLT End Term · 01 Sep 2024 · open the full paper
Practice 25MCQ1 mark
Comprehension passage for this question
question figure
The weight vector output by the perceptron algorithm can be expressed as a linear combination of the data-points where the coefficients of the linear combination are integers.
  1. TRUE
  2. FALSE
MLT End Term · 01 Sep 2024 · open the full paper
Practice 26SA0.5 marks
Comprehension passage for this question
Based on the above data, answer the given subquestions. question figure
Enter the number corresponding to the logistic loss.
MLT End Term · 01 Sep 2024 · open the full paper
Practice 27SA0.5 marks
Comprehension passage for this question
Based on the above data, answer the given subquestions. question figure
Enter the number corresponding to the perceptron loss.
MLT End Term · 01 Sep 2024 · open the full paper
Practice 28MCQ1 mark
Comprehension passage for this question
Based on the above data, answer the given subquestions. question figure
question figure
  1. ReLU
  2. Sigmoid
MLT End Term · 28 Apr 2024 · open the full paper
Practice 29SA3 marks
Consider a simple neural network with one hidden layer. The network has the following architecture: Input layer with 3 neurons. Hidden layer with 2 neurons, using the sigmoid activation function. Output layer with 1 neuron, using the linear activation function. The weights and biases for the network are as follows: Hidden Layer: Neuron 1: Weights: [0.5, -0.2, 0.8] Bias: 0.1 Neuron 2: Weights: [0.4, 0, 0.2] Bias: -0.4 Output Layer: Neuron 1: Weights: [0.2, 0.4] Bias: -0.3 Assume that the input values are [0.6, 0.3, 0.8]. Calculate output of Neuron 1 in hidden layer
MLT End Term · 03 Sep 2023 · open the full paper
Practice 30MCQ6 marks
question figure
  1. The given data points from classes A and B can be linearly separated using aHard-margin SVM.
  2. Points (2, 2) from class 1 and (3, 3) from class 0 will be on the decisionboundary or support vectors.
  3. A Soft-margin SVM would be a more robust choice than a Hard-margin SVM forthis dataset as the dataset is not linearly separable.
  4. A perceptron model and a hard margin SVM will always give the same decisionboundary for this dataset.
MLT End Term · 03 Sep 2023 · open the full paper
Practice 31MSQ6 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 End Term · 03 Sep 2023 · open the full paper
Practice 32MSQ7 marksselect all that apply
question figure
  1. The values of 0-1 loss function will be 3
  2. The values of cross entropy loss will be equals to 3.65
  3. The values of 0-1 loss equals 4.
  4. The values of cross entropy loss will be equals to 6.35
MLT End Term · 11 Dec 2022 · open the full paper
Practice 33SA5 marks
What is the maximum number of mistakes that the Perceptron algorithm can make in this data set? question figure
MLT End Term · 07 Aug 2022 · open the full paper
Practice 34MCQ2 marks
During classification of linearly separable data-set using perceptron algorithm, as the value of learning rate α is decreased,
  1. The number of steps required for convergence increases.
  2. The number of steps required for convergence decreases.
  3. The number of steps required for convergence is independent of the learningrate.
  4. The perceptron algorithm may not converge.
MLT End Term · 07 Aug 2022 · open the full paper
Practice 35MCQ2 marks
The following is the activation vector output by some hidden layer in a neural network when some input vector is given to it: question figure The following is the activation vector output by some hidden layer in a neural network when some input vector is given to it: Which of the following could be the activation function used in this layer?
  1. Softmax
  2. Sigmoid
  3. ReLU
  4. Tanh
MLT End Term · 07 Aug 2022 · open the full paper
Practice 36SA3 marks
You are given a linearly separable dataset with feature matrix X, for which a perceptron has been trained until it converges (perfectly separates the data). The weight vector corresponding to it is w. This dataset has 60 points from the positive class and 40 from the negative class. What is the output of the following snippet of code? question figure You are given a linearly separable dataset with feature matrix X, for which a perceptron has been trained until it converges (perfectly separates the data). The weight vector corresponding to it is w. This dataset has 60 points from the positive class and 40 from the negative class. What is the output of the following snippet of code?
MLT End Term · 07 Aug 2022 · open the full paper
Practice 37MCQ2 marks
During classification of linearly separable data-set using perceptron algorithm, as the value of learning rate α is increased,
  1. The number of steps required for convergence increases.
  2. The number of steps required for convergence decreases.
  3. The number of steps required for convergence is independent of the learningrate.
  4. The perceptron algorithm may not converge.
MLT End Term · 07 Aug 2022 · open the full paper
Practice 38MCQ2 marks
question figure
  1. Softmax
  2. Sigmoid
  3. ReLU
  4. Tanh
MLT Quiz 2 · 10 Jul 2022 · open the full paper
Practice 39MCQ3 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.