ML Study Hub

Home / MLP / Week 8 / Real questions

MLP week 8 - real exam questions

22 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
MLP End Term · 13 Sep 2026 · open the full paper
Practice 1MSQ4 marksselect all that apply
Select the correct statements regarding the following code snippet: question figure
  1. model2 is more likely to have a lower bias and higher variance compared to model1.
  2. Increasing the value of C allowed model2 to penalize misclassification errors more strongly.
  3. model1 must always perform better on the test set because it has lower training accuracy.
  4. The gamma parameter has no effect because the kernel is already set to 'rbf'.
MLP End Term · 21 Dec 2025 · open the full paper
Practice 2MSQ2 marksselect all that apply
Which of the following algorithms may get impacted by feature scaling?
  1. LinearRegression
  2. DecisionTree
  3. SVM
  4. NaiveBayes
MLP Quiz 2 · 01 Dec 2024 · open the full paper
Practice 3MCQ2 marks
question figure
  1. LogisticRegression
  2. Perceptron
  3. RidgeClassifier
  4. Support Vector Machine (SVM)
  5. LassoClassifer
MLP Quiz 2 · 01 Dec 2024 · open the full paper
Practice 4MCQ2 marks
question figure
  1. The boundaries become more complex and tightly fitted to the training data.
  2. The boundaries become more regular and smooth.
  3. Decision boundaries are unaffected by C.
  4. The number of support vectors decreases.
MLP End Term · 01 Sep 2024 · open the full paper
Practice 5MSQ3 marksselect all that apply
Which options are correct for Support Vectors in SVM ?
  1. Support vectors are the data points nearest to the hyperplane
  2. Using these support vectors, we maximize the margin of the classifier.
  3. Using these support vectors, we minimize the margin of the classifier.
  4. None of these
MLP End Term · 01 Sep 2024 · open the full paper
Practice 6MCQ2 marks
Which of the following is true for a hard margin SVM algorithm ?
  1. It does not create hyperplanes as a decision boundary
  2. It will correctly classify all the data point if the data is linearly separable
  3. It is robust to outliers
  4. It is mostly used for clustering the data
MLP Quiz 2 · 04 Aug 2024 · open the full paper
Practice 7MCQ2 marks
question figure
  1. LogisticRegression
  2. Perceptron
  3. RidgeClassifier
  4. Support Vector Machine (SVM)
MLP Quiz 2 · 04 Aug 2024 · open the full paper
Practice 8MCQ2 marks
What is the default loss value in SGDClassifier API and it gives which classifier?
  1. ‘log loss’, LogisticRegressor
  2. ‘log loss’, LogisticClassifier
  3. ‘hinge’, SVM
  4. ‘hinge’, Perceptron
MLP Quiz 2 · 04 Aug 2024 · open the full paper
Practice 9MSQ2 marksselect all that apply
Which of the following scikit-learn model supports incremental learning through partial_fit method ?
  1. SGDClassifier
  2. LinearRegression
  3. Perceptron
  4. SVC
MLP Quiz 2 · 04 Aug 2024 · open the full paper
Practice 10MSQ3 marksselect all that apply
Which of the following options are true for regularization parameter C in sklearn.svm.SVC ?
  1. Large value of the regularization parameter C will overfit the training set andcomplex decision boundaries will form.
  2. Large value of the regularization parameter C will underfit the training set andsmooth decision boundaries will form.
  3. Small value of the regularization parameter C will overfit the training set andcomplex decision boundaries will form.
  4. Small value of the regularization parameter C will underfit the training set andsmooth decision boundaries will form.
  5. None of these
MLP End Term · 28 Apr 2024 · open the full paper
Practice 11MCQ3 marks
You’re working on a dataset containing customer purchase data, and you want to segment the customers into distinct groups based on their purchasing behavior. Each data point represents a customer and includes features like “Total Amount Spent” and “Number of Items Purchased.” Which algorithm is suitable for this scenario?
  1. Linear Regression
  2. Decision Tree
  3. K-means Clustering
  4. Support Vector Machine
  5. None of these
MLP Quiz 2 · 24 Mar 2024 · open the full paper
Practice 12MCQ2 marks
You’re building a machine learning pipeline to preprocess data and train a model on a classification task. You decide to use a pipeline that includes data preprocessing and a support vector machine (SVM) classifier. The following code snippet demonstrates the pipeline creation and usage: question figure You’re building a machine learning pipeline to preprocess data and train a model on a classification task. You decide to use a pipeline that includes data preprocessing and a support vector machine (SVM) classifier. The following code snippet demonstrates the pipeline creation and usage: What is the purpose of using the pipeline in this code snippet?
  1. The pipeline combines multiple models for better model performance.
  2. The pipeline allows for simultaneous training of the scaler and classifier.
  3. The pipeline simplifies the code by encapsulating preprocessing and modelingsteps.
  4. The pipeline ensures that only linear SVM can be used for this classificationtask.
MLP End Term · 24 Dec 2023 · open the full paper
Practice 13MSQ3 marksselect all that apply
When using a Support Vector Classifier (SVC) in scikit-learn with different values of the regularization parameter (C), how does the complexity of the decision boundary change? Select all correct statements:
  1. Smaller values of C result in a more complex decision boundary.
  2. Larger values of C result in a more complex decision boundary.
  3. The decision boundary becomes simpler with increasing values of C.
  4. Very large values of C may lead to overfitting.
MLP End Term · 30 Apr 2023 · open the full paper
Practice 14MCQ2 marks
Which of the following are correct about sklearn.svm.SVC: question figure Which of the following are correct about sklearn.svm.SVC:
  1. It will print number of support vectors
  2. It will print an array of support vectors
  3. It will print an array of probabilities representing distance from decisionboundary with each data point.
  4. It will print indices of the support vectors from the training set.
MLP End Term · 30 Apr 2023 · open the full paper
Practice 15MCQ3 marks
Which of the following options is true for the gamma parameter in a non-linear soft margin SVM?
  1. For high values of gamma, the points need to be very close to each other inorder to be considered in the same class
  2. For low values of gamma, the points need to be very close to each other inorder to be considered in the same class
  3. Gamma doesn’t affect the SVM model at all
  4. None of these
MLP End Term · 11 Dec 2022 · open the full paper
Practice 16MCQ2 marks
Consider following code snippet: question figure Consider following code snippet: Above classifier uses:
  1. hinge but quadratically penalized.
  2. logistic regression.
  3. linear SVM.
  4. None of these.
  5. perceptron.
MLP End Term · 11 Dec 2022 · open the full paper
Practice 17MCQ2 marks
Which of the following options represents the correct value of gamma for SVC_classifier = SVC(gamma = ’auto’)?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
MLP End Term · 11 Dec 2022 · open the full paper
Practice 18MCQ2 marks
Consider the following scatter plots of four different input datasets: question figure Consider the following scatter plots of four different input datasets: Which data will be classified better using gaussian rbf kernel?
  1. Data 1
  2. Data 3
  3. Data 4
  4. Data 2
MLP End Term · 11 Dec 2022 · open the full paper
Practice 19SA3 marks
What is the correct output of the following block of code? [Note: LinearSVC implements “one-vs-the-rest” multi-class strategy] question figure What is the correct output of the following block of code? [Note: LinearSVC implements “one-vs-the-rest” multi-class strategy]
MLP End Term · 11 Dec 2022 · open the full paper
Practice 20MCQ2 marks
Putting loss=hinge in class sklearn.linear_model.SGDClassifier(loss=’hinge’) dictates which of the following loss functions in SGDClassifier?
  1. hinge but quadratically penalized
  2. logistic regression
  3. linear SVM
  4. None of these
MLP Quiz 2 · 10 Jul 2022 · open the full paper
Practice 21MCQ2 marks
l1 penalty in LinearSVC classifier leads to coef_vectors which are-
  1. dense.
  2. sparse.
  3. Unique class labels.
  4. l1 penalty can’t be set via a parameter in LinearSVC.
MLP Quiz 2 · 10 Jul 2022 · open the full paper
Practice 22MCQ2 marks
Comprehension passage for this question
question figure
What is the output that Prashant will get?
  1. Indices of support vectors.
  2. Number of support vectors.
  3. Weights assigned to the features when kernel=”linear”
  4. ndarray of support vectors.