ML Study Hub

Home / MLP / Week 5 / Real questions

MLP week 5 - real exam questions

28 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 · 10 May 2026 · open the full paper
Practice 1MCQ3 marks
Which of the following implementations of LogisticRgression cannot be used to tackle multinomial multiclass problems?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
MLP End Term · 21 Dec 2025 · open the full paper
Practice 2MCQ1 mark
Identify the errors in the following code: question figure
  1. include_bias has to be kept true for polynomial features.
  2. MinMaxScalar should be used for simple LinearRegression Models
  3. model.fit_transform should be replace with model.fit
  4. model.predict should be replaced with model.predict_proba
MLP End Term · 21 Dec 2025 · open the full paper
Practice 3MSQ2 marksselect all that apply
Select the correctly matched pairs of sklearn functions with the use of fit, fit_transform and transform.
  1. Learning the weights of logistic regression model on training data - fit_transform
  2. Creating a decision tree on the training data - fit
  3. fitting MinMaxScaler on test data - fit_transform
  4. fitting MinMaxScaler on train data - fit_transform
MLP End Term · 13 Apr 2025 · open the full paper
Practice 4MCQ1 mark
question figure
  1. Increasing the number of hidden layers always improves regression accuracy.
  2. Using the ReLU activation function in hidden layers is a good choice for MLPregression.
  3. The output layer should use a softmax activation to predict continuous houseprices.
  4. MLPRegressor does not require feature scaling since neural networksautomatically normalize input data.
MLP End Term · 13 Apr 2025 · open the full paper
Practice 5MSQ3 marksselect all that apply
Which of the following statements are true with regard to logistic regression?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
MLP End Term · 22 Dec 2024 · open the full paper
Practice 6MSQ3 marksselect all that apply
question figure
  1. GaussianNB
  2. LogisticRegression
  3. SGDClassifier
  4. RandomForestClassifier
MLP Quiz 2 · 01 Dec 2024 · open the full paper
Practice 7MCQ2 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 8MSQ2 marksselect all that apply
question figure
  1. ’linear’
  2. ’quadratic’
  3. ’rbf’
  4. ’sigmoid’
MLP Quiz 1 · 27 Oct 2024 · open the full paper
Practice 9MSQ2 marksselect all that apply
Which of the following are valid loss functions for SGDClassifier?
  1. Squared Loss
  2. Hinge Loss
  3. Log Loss
  4. Mean Absolute Error
MLP End Term · 01 Sep 2024 · open the full paper
Practice 10MSQ3 marksselect all that apply
question figure
  1. The logistic regression model will use equal weights for both the classes in animbalanced dataset.
  2. The model does not use any regularization because the parameter C is set.
  3. The “balanced” mode uses the values of y to automatically adjust weightsinversely proportional to class frequencies in the input data.
  4. The value of C indicates that the model will apply a regularization.
MLP End Term · 01 Sep 2024 · open the full paper
Practice 11MSQ2 marksselect all that apply
Which of the following models are inherently multiclass models?
  1. Perceptron
  2. DecisionTreeClassifier
  3. KNeighborClassifier
  4. LogisticRegression
MLP Quiz 2 · 04 Aug 2024 · open the full paper
Practice 12MCQ2 marks
question figure
  1. Trains a single Logistic Regression model for all labels.
  2. Combines Logistic Regression with another model.
  3. Trains a separate Logistic Regression model for each label.
  4. Applies Logistic Regression in a one-vs-rest strategy for multi-classclassification.
MLP Quiz 2 · 04 Aug 2024 · open the full paper
Practice 13MCQ2 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 14MCQ2 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 End Term · 24 Dec 2023 · open the full paper
Practice 15MCQ2 marks
question figure
  1. logistic
  2. relu
  3. identity
  4. tanh
MLP End Term · 24 Dec 2023 · open the full paper
Practice 16MSQ2 marksselect all that apply
Which of the following observations warrant use of SGD model?
  1. The data set size is 1000 GB.
  2. The model has to be trained in non-iterative manner.
  3. The model must be a decision tree.
  4. The model must be a logistic regressor.
  5. None of these
MLP End Term · 24 Dec 2023 · open the full paper
Practice 17MSQ2 marksselect all that apply
question figure
  1. The classifier is based on perceptron model.
  2. The classifier is based on logistic regression model.
  3. The learning rate decays every iteration.
  4. The learning rate is 0.0001.
  5. It will run exactly for 1000 iterations, which is independent of the data.
  6. None of these.
MLP Quiz 2 · 03 Dec 2023 · open the full paper
Practice 18MCQ3 marks
question figure
  1. It applies the perceptron classification with regularization.
  2. It applies the perceptron classification without regularization.
  3. It applies the logistic regression with regularization.
  4. It applies the logistic regression without regularization.
MLP End Term · 03 Sep 2023 · open the full paper
Practice 19MSQ3 marksselect all that apply
question figure
  1. MultinomialNB
  2. RandomForestRegressor
  3. LogisticRegressor
  4. SGDRegressor
MLP End Term · 03 Sep 2023 · open the full paper
Practice 20MCQ3 marks
You’re working on a binary classification problem where the dataset is relatively small, and you suspect that a linear decision boundary will work well due to distinct class separation. Additionally, you want to perform logistic regression with L1 regularization for improved feature selection. Which solver is most appropriate for this scenario?
  1. Newton-CG
  2. SGD
  3. LBFGS
  4. Liblinear
MLP End Term · 30 Apr 2023 · open the full paper
Practice 21MCQ2 marks
question figure
  1. DecisionTreeClassifier
  2. RandomForestRegressor
  3. LogisticRegressor
  4. SGDRegressor
MLP End Term · 11 Dec 2022 · open the full paper
Practice 22MCQ2 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 23MSQ2 marksselect all that apply
Which of the following statements correctly set L1 penalty to 0.2 and L2 Penalty to 0.8 in LogisticRegression?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
MLP End Term · 11 Dec 2022 · open the full paper
Practice 24MCQ3 marks
You have a binary classification problem to solve with following information: 1. All features are numircal. 2. The dataset has size of 80 GB. 3. The data has to be preprocessed. 4. After data preprocessing, train the model with gradient descent or its variations. Which of the following will perform the above task?
  1. Perform one hot encoding followed by training with LogisticRegression model(sklearn.linear_model).
  2. Perform standard scaling followed by asklearn.neighbors.KNeighborsClassifier model.
  3. Perform min-max scaling followed by a sklearn.tree.DecisionTreeClassifiermodel.
  4. Perform max-absolute scaling followed by asklearn.linear_model.SGDClassifier model.
MLP End Term · 11 Dec 2022 · open the full paper
Practice 25MCQ2 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 1 · 16 Oct 2022 · open the full paper
Practice 26MCQ1 mark
Which of the following options represent the possible type of machine learning algorithm does the cluster plot shown in Figure 2 demonstrate? question figure Which of the following options represent the possible type of machine learning algorithm does the cluster plot shown in Figure 2 demonstrate?
  1. K-means clustering
  2. Linear regression
  3. Logistic regression
  4. PCA
MLP End Term · 07 Aug 2022 · open the full paper
Practice 27MCQ2 marks
Consider X and y as the training dataset. What will be the output of the following code? question figure Consider X and y as the training dataset. What will be the output of the following code?
  1. logistic
  2. relu
  3. identity
  4. softmax
MLP End Term · 07 Aug 2022 · open the full paper
Practice 28MSQ4 marksselect all that apply
Which of the following is/are true about the following block of the code? question figure Which of the following is/are true about the following block of the code?
  1. Given dataset belongs to binary classification.
  2. Number of neurons in the 1st hidden layer is 8.
  3. Strength of the L1 regularization term is 0.0001
  4. The activation function for the output layer in the given code is the ′logistic′function.