ML Study Hub

Home / MLP / Week 3 / Real questions

MLP week 3 - real exam questions

60 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 1MCQ4 marks
Consider the following code: question figure After the model is fit raises an error. Why?
  1. VotingRegressor deletes the original estimator.
  2. VotingRegressor internally clones every estimator before fitting.
  3. LinearRegression does not store coefficients.
  4. VotingRegressor converts all models to RandomForest since it is the best model out of the 3 due to ensemble learning.
MLP End Term · 13 Sep 2026 · open the full paper
Practice 2MSQ4 marksselect all that apply
Consider two regularization models, Model A (Ridge) and Model B (Lasso), trained on a dataset where two input features are highly collinear ( X1≈X2 ). question figure Which of the following statements accurately describe the expected behavior of these models and their evaluation metrics under severe collinearity?
  1. Model B (Lasso) will distribute the regression coefficients evenly across both X1 and X2 to balance the penalty, while Model A (Ridge) will force one of the coefficients to be exactly zero.
  2. Model A (Ridge) will shrink the coefficients of X1 and X2 toward zero but keep them roughly equal, whereas Model B (Lasso) will unstablely select one feature to keep and drive the coefficient of the other exactly to zero.
  3. If the target variable y contains extreme outliers, evaluating these models using Mean Squared Error (MSE) will penalize those large errors more heavily than Mean Absolute Error (MAE).
  4. Minimizing the MSE loss function during the training of Model A and Model B mathematically guarantees that the sum of the residual errors ( y−ŷ ) will always equal zero.
MLP End Term · 10 May 2026 · open the full paper
Practice 3MSQ5 marksselect all that apply
Consider the following adaboost models: question figure Which of the following statements are MOST accurate?
  1. adb1 is less likely to overfit than adb2 because its base trees are shallower.
  2. Increasing n_estimators always improves test accuracy for AdaBoost.
  3. Learning rate affects the contribution of each base learner; a smaller learning rate always reduces training accuracy.
  4. adb2 with deeper trees will have lower bias but higher variance than adb1.
MLP End Term · 21 Dec 2025 · open the full paper
Practice 4MSQ2 marksselect all that apply
Which of the following algorithms don't get impacted by feature scaling?
  1. LinearRegression
  2. KNN
  3. KMeans
  4. DecisionTree
MLP End Term · 21 Dec 2025 · open the full paper
Practice 5MCQ2 marks
What does the parameter hidden_layer_sizes=(50, 30) represent in both MLPClassifier and MLPRegressor?
  1. 50 input features and 30 output units
  2. Two hidden layers with 50 and 30 neurons respectively
  3. 50 epochs and 30 batches
  4. 50 samples per batch and 30 iterations
MLP End Term · 21 Dec 2025 · open the full paper
Practice 6MSQ2 marksselect all that apply
Which of the following is a hyper parameter?
  1. "intercept_" in LinearRegression
  2. "degree" in PolynomialFeatures
  3. "n_neighbors" in KNeighborsClassifier
  4. "max_depth" in DecisionTreeClassifier
MLP End Term · 21 Dec 2025 · open the full paper
Practice 7MCQ1 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 8MSQ1 markselect all that apply
We use classification report to evaluate our classification model: question figure Which of the following metrics are included in the classification report?
  1. Accuracy
  2. Mean Squared Error
  3. F1 Score
  4. Cross Entropy Loss
  5. Recall
MLP End Term · 21 Dec 2025 · open the full paper
Practice 9SA2 marks
For a LinearRegression model with equation assume that the noise term . The model parameters satisfy the constraint A LinearRegression model is trained without intercept as shown below: question figure What is the value of ? Enter your answer rounded to three decimal places
MLP End Term · 21 Dec 2025 · open the full paper
Practice 10MSQ2 marksselect all that apply
Which of the following algorithms may get impacted by feature scaling?
  1. LinearRegression
  2. DecisionTree
  3. SVM
  4. NaiveBayes
MLP End Term · 31 Aug 2025 · open the full paper
Practice 11MCQ1 mark
How to change the loss function in SGDRegressor to Huber loss?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
MLP End Term · 13 Apr 2025 · open the full paper
Practice 12MSQ2 marksselect all that apply
Which of the following techniques can be used for hyperparameter tuning in Ridge Regression? Select all correct options.
  1. GridSearchCV
  2. ElasticNetCV
  3. RandomizedSearchCV
  4. Mini batch gradient descent
MLP Quiz 1 · 23 Feb 2025 · open the full paper
Practice 13MCQ2 marks
question figure
  1. It specifies the tolerance level for early stopping based on the change in thevalidation error.
  2. It controls the learning rate of the stochastic regressor during training.
  3. It determines the maximum number of iterations for the training process.
  4. It defines the fraction of the validation set used for early stopping.
MLP Quiz 1 · 23 Feb 2025 · open the full paper
Practice 14MSQ2 marksselect all that apply
Which of the following Evaluation metrics can be used in a regression problem?
  1. Mean Squared Error
  2. Accuracy
  3. F1-Score
  4. Mean Absolute Error
  5. credit score
  6. CGPA
MLP End Term · 22 Dec 2024 · open the full paper
Practice 15MCQ3 marks
question figure
  1. The number of base estimators to be trained.
  2. The size of each sample batch for testing.
  3. The maximum number of features used for training.
  4. The number of samples to draw from X to train each base estimator
MLP End Term · 22 Dec 2024 · open the full paper
Practice 16MCQ3 marks
question figure
  1. It increases the model’s capacity to fit the training data closely, potentiallycausing overfitting.
  2. It adds a stronger regularization term to the loss function, reducing themodel’s complexity and helping prevent overfitting.
  3. It makes the model more prone to overfitting by increasing its sensitivity tonoise in the training data.
  4. It directly affects the learning rate, controlling how fast the model convergesduring training.
MLP End Term · 22 Dec 2024 · open the full paper
Practice 17MCQ2 marks
question figure
  1. It adjusts the learning rate based on the number of iterations.
  2. It specifies the learning rate to decrease as the model converges.
  3. It specifies the fraction of the dataset used for each step in the stochasticgradient descent.
  4. It defines the initial value for the learning rate and keeps it constantthroughout training.
MLP End Term · 22 Dec 2024 · open the full paper
Practice 18MCQ2 marks
Which of the following is NOT a hyperparameter in machine learning?
  1. Learning rate in gradient descent
  2. Bias in a linear regression model
  3. Number of clusters in k-means
  4. Minimum leaf size in decision trees
MLP End Term · 22 Dec 2024 · open the full paper
Practice 19MCQ2 marks
question figure
  1. It adjusts the learning rate based on the number of iterations.
  2. It defines the initial value for the learning rate and keeps it constantthroughout training.
  3. It determines the maximum step size allowed during training.
  4. It specifies the fraction of the dataset used for each step in the stochasticgradient descent.
MLP End Term · 22 Dec 2024 · open the full paper
Practice 20MCQ2 marks
question figure
  1. It increases the model’s capacity to fit the training data closely, potentiallycausing overfitting.
  2. It adds a stronger regularization term to the loss function, reducing themodel’s complexity and helping prevent overfitting.
  3. It makes the model more prone to overfitting by increasing its sensitivity tonoise in the training data.
  4. It directly affects the learning rate, controlling how fast the model convergesduring training.
MLP End Term · 22 Dec 2024 · open the full paper
Practice 21MSQ2 marksselect all that apply
Which of the following are techniques for dimensionality reduction?
  1. PCA (Principal Component Analysis)
  2. StandardScaler
  3. Lasso Regression
  4. t-SNE (t-distributed Stochastic Neighbor Embedding)
MLP Quiz 2 · 01 Dec 2024 · open the full paper
Practice 22MCQ2 marks
question figure
  1. It defines the tolerance for stopping criteria.
  2. It defines the learning rate schedule.
  3. It controls regularization strength.
  4. It controls the number of iterations.
MLP Quiz 1 · 27 Oct 2024 · open the full paper
Practice 23MCQ2 marks
question figure
  1. It controls the learning rate of the stochastic regressor during training.
  2. It determines the maximum number of iterations for the training process.
  3. It defines the fraction of the validation set used for early stopping.
  4. It specifies the tolerance level for early stopping based on the change in thevalidation error.
MLP Quiz 1 · 27 Oct 2024 · open the full paper
Practice 24MCQ1 mark
question figure
  1. Controls the total number of iterations.
  2. Specifies the tolerance level for early stopping.
  3. Defines the number of iterations with no improvement to stop training.
  4. Sets the learning rate schedule.
MLP End Term · 01 Sep 2024 · open the full paper
Practice 25MCQ1 mark
How to make SGDRegressor stop after 1000 epochs?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
MLP End Term · 01 Sep 2024 · open the full paper
Practice 26MCQ2 marks
question figure
  1. cv
  2. reg_rate
  3. alpha
  4. tol
MLP End Term · 01 Sep 2024 · open the full paper
Practice 27MCQ4 marks
Consider the following ML task/steps for a regression dataset: 1. Read the data from a file (named ‘dataset.csv’). It has 7 columns. The last column is the target variable, all 6 features numerical. 2. Remove rows which has target values missing. 3. Split the data into training and test sets. Take randomly the 70% of rows in the training set and the rest of them into the test set. 4. Fill the missing values in the features by KNNImputer using 3 nearest neighbours. 5. Train a LinearRegression model on the training set. 6. Report R2 score on the test set. Which of the following code snippets correctly accomplishes the above task? Assume necessary imports.
  1. question figure
  2. question figure
  3. question figure
  4. question figure
  5. question figure
  6. question figure
MLP End Term · 01 Sep 2024 · open the full paper
Practice 28MCQ2 marks
Consider following two statements: Statement 1: The GaussianNB classifier can incrementally learn using partial_fit. Statement 2: GaussianNB performance suffers when features are dependent, as it assumes independence in calculating conditional probabilities.
  1. Both statements are True
  2. Only statement 1 is True
  3. Only statement 2 is True
  4. Both statements are False
MLP Quiz 2 · 04 Aug 2024 · open the full paper
Practice 29MCQ3 marks
question figure
  1. cv
  2. reg_rate
  3. alpha
  4. tol
  5. lambda
  6. None of these
MLP Quiz 2 · 04 Aug 2024 · open the full paper
Practice 30MSQ2 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 1 · 07 Jul 2024 · open the full paper
Practice 31MCQ2 marks
question figure
  1. It controls the learning rate of the stochastic regressor during training.
  2. It determines the maximum number of iterations for the training process.
  3. It defines the fraction of the validation set used for early stopping.
  4. It specifies the tolerance level for early stopping based on the change in thevalidation error.
MLP End Term · 28 Apr 2024 · open the full paper
Practice 32MSQ2 marksselect all that apply
Select all the correct options:
  1. The more the SGD iterations, the lesser the fluctuations in training error.
  2. More iterations require more computation time.
  3. The tol (error tolerance) parameter restricts the number of iterationsperformed.
  4. Training error might not consistently decrease while performing SGDiterations.
  5. None of these
MLP Quiz 1 · 25 Feb 2024 · open the full paper
Practice 33MCQ2 marks
Which of the following metrics indicate higher their value, better the regression model’s performance?
  1. RMSE
  2. R2
  3. Mean absolute error
  4. Mean squared error
MLP Quiz 1 · 25 Feb 2024 · open the full paper
Practice 34MCQ2 marks
question figure
  1. It controls the learning rate of the stochastic regressor during training.
  2. It determines the maximum number of iterations for the training process.
  3. It defines the fraction of the validation set used for early stopping.
  4. It specifies the tolerance level for early stopping based on the change in thevalidation error.
MLP End Term · 24 Dec 2023 · open the full paper
Practice 35MCQ2 marks
Which of the following variations of gradient descent can be implemented with SGDClassifier?
  1. stochastic gradient descent
  2. mini gradient descent
  3. full batch gradient descent
  4. None of these
MLP End Term · 24 Dec 2023 · open the full paper
Practice 36MCQ3 marks
question figure
  1. Increasing the model’s complexity to fit the training data more closely.
  2. Adding a stronger regularization term to the loss function, discouragingcomplex models.
  3. Making the model more capable to learn more complex behaviour.
  4. Adjusting the learning rate to control convergence speed.
MLP End Term · 24 Dec 2023 · open the full paper
Practice 37MCQ2 marks
question figure
  1. It determines the maximum fraction of neurons to be used to train the model
  2. It is the learning rate
  3. It is the L1 regularization rate.
  4. It is the L2 regularization rate.
  5. None of these
MLP End Term · 24 Dec 2023 · open the full paper
Practice 38MSQ2 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 39MCQ2 marks
question figure
  1. alpha
  2. tol
  3. solver
  4. learner
  5. algo
  6. algorithm
MLP Quiz 1 · 29 Oct 2023 · open the full paper
Practice 40MSQ2 marksselect all that apply
Which of the following code blocks will correctly take the learning rate as ‘optimal’ ?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
MLP End Term · 03 Sep 2023 · open the full paper
Practice 41MSQ3 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 42MCQ3 marks
You’re designing an ‘MLPClassifier’ for an image recognition task. The dataset consists of grayscale images of animals. You want to introduce non-linearity to the neural network’s architecture. Which element of the neural network architecture would you adjust to incorporate non-linearity in the model?
  1. Number of hidden layers
  2. Number of neurons in input layer
  3. Learning rate
  4. Activation function
MLP End Term · 03 Sep 2023 · open the full paper
Practice 43MCQ3 marks
You’re working on a binary classification task using the ‘MLPClassifier’ to predict whether a customer will make a purchase based on their browsing behavior.You’re concerned about overfitting due to the complexity of the model. You decide to increase the ‘alpha’ parameter to control overfitting. The following code snippet shows the application of ‘MLPClassifier’: question figure You’re working on a binary classification task using the ‘MLPClassifier’ to predict whether a customer will make a purchase based on their browsing behavior.You’re concerned about overfitting due to the complexity of the model. You decide to increase the ‘alpha’ parameter to control overfitting. The following code snippet shows the application of ‘MLPClassifier’:
  1. Increasing the model’s complexity to fit the training data more closely.
  2. Adding a stronger regularization term to the loss function, discouragingcomplex models.
  3. Making the model more sensitive to outliers and noise in the data.
  4. Adjusting the learning rate to control convergence speed.
MLP End Term · 30 Apr 2023 · open the full paper
Practice 44MCQ2 marks
question figure
  1. DecisionTreeClassifier
  2. RandomForestRegressor
  3. LogisticRegressor
  4. SGDRegressor
MLP End Term · 11 Dec 2022 · open the full paper
Practice 45MCQ2 marks
Which of the following estimators implement partial_fit method in Regression?
  1. Ridge Regression
  2. SGDRegressor
  3. Linear Regression
  4. Polynomial Regression
MLP End Term · 11 Dec 2022 · open the full paper
Practice 46MCQ2 marks
Mention which of the following statement(s) is / are correct? Statement 1: Incremental learning is a dynamic technique which is applied when training data becomes available gradually over time or its size is out of system memory limits. Statement 2: Sklearn can not process large data in batches.
  1. Statement 1 is correct but statement 2 is incorrect.
  2. Statement 1 is incorrect but statement 2 is correct.
  3. Statement 1 and statement 2 both are incorrect.
  4. Statement 1 and statement 2 both are correct.
MLP End Term · 11 Dec 2022 · open the full paper
Practice 47MCQ3 marks
Mention whether the following statements are TRUE or FALSE . Statement 1 : ‘In order to extend ROC curve and ROC area to multi-label classification, it is necessary to binarize the output.‘ Statement 2: In SGDClassifier, setting warm_start=True does not retain the weight values of the model after max_iter and hence does not produce different results for each execution.‘
  1. Statement 1 is correct but statement 2 is incorrect.
  2. Statement 1 is incorrect but statement 2 is correct.
  3. Statement 1 and statement 2 both are incorrect.
  4. Statement 1 and statement 2 both are correct.
MLP End Term · 11 Dec 2022 · open the full paper
Practice 48MCQ3 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 49MCQ4 marks
Brajesh wants to tune hyper parameters of an AdaBoost model for a classification problem with following specifications: 1. Base estimator as Decision trees classifier with max_depth=1. 2. Number of estimators range from 30 to 40 (both inclusive) at the interval of 1. 3. Cross validation = 5. 4. Learning rate must vary between 0.2 to 2.0 (both inclusive) at the intervals of 0.2. 5. Train the best model on the entire training set. 6. Print score on test set. Which of the following code blocks will correctly execute Brajesh’s task? [Note: Assume necessary imports and variables for training and test sets.]
  1. question figure
  2. question figure
  3. question figure
  4. question figure
  5. question figure
MLP End Term · 11 Dec 2022 · open the full paper
Practice 50MCQ2 marks
Mention which of the following statement(s) is / are correct? 1. Statement 1: Incremental learning is a dynamic technique which is applied when training data becomes available gradually over time or its size is out of system memory limits. 2. Statement 2: Sklearn can process large data in batches and updates the model parameters for each batch.
  1. Statement 1 is correct but statement 2 is incorrect.
  2. Statement 1 is incorrect but statement 2 is correct.
  3. Statement 1 and statement 2 both are incorrect.
  4. Statement 1 and statement 2 both are correct.
MLP End Term · 11 Dec 2022 · open the full paper
Practice 51MSQ2 marksselect all that apply
The partial_fit in sklearn’s Perceptron model helps to:
  1. Iteratively train the model over a large dataset
  2. Implement batch gradient descent
  3. Update half of the weight parameters in each epoch.
  4. Tracking progress of the model in each iteration.
MLP End Term · 11 Dec 2022 · open the full paper
Practice 52MCQ3 marks
The correct code block or blocks to set adaptive learning rate while using SGDRegressor will be:
  1. question figure
  2. question figure
  3. question figure
  4. question figure
MLP End Term · 11 Dec 2022 · open the full paper
Practice 53MCQ3 marks
Consider following statements: 1. Statement 1 : In order to extend ROC curve and ROC area to multi-label classification, it is necessary to binarize the output. 2. Statement 2: In SGDClassifier, setting warm_start=True retains the weight values of the model after max_iter and hence produce different results for each execution. Choose the correct option:
  1. Statement 1 is correct but statement 2 is incorrect.
  2. Statement 1 is incorrect but statement 2 is correct.
  3. Statement 1 and statement 2 both are incorrect.
  4. Statement 1 and statement 2 both are correct.
MLP End Term · 11 Dec 2022 · open the full paper
Practice 54MCQ3 marks
You have a regression problem to solve with following information: 1. All features are numerical. 2. The dataset has size of 40 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 LinearRegression model(from sklearn.linear_model).
  2. Perform standard scaling followed by training with KNeighborsRegressormodel (from sklearn.neighbors).
  3. Perform min-max scaling followed by training with DecisionTreeRegressormodel (from sklearn.tree).
  4. Perform min-max scaling followed by training with SGDRegressor model (fromsklearn.linear_model).
MLP End Term · 11 Dec 2022 · open the full paper
Practice 55MSQ3 marksselect all that apply
Consider the following code and select the correct options. (Note: Assume necessary imports.) question figure Consider the following code and select the correct options. (Note: Assume necessary imports.)
  1. Scaled data have values in between [0, 1].
  2. Regressor has three hidden layers.
  3. Regressor has 150 hidden layers.
  4. Regressor applies stochastic gradient decent to update the weights.
MLP End Term · 11 Dec 2022 · open the full paper
Practice 56MCQ4 marks
Rajesh wants to tune hyper parameters of an AdaBoost model for a classification problem with following specifications: 1. Base estimator as Decision trees classifier with max_depth=1. 2. Number of estimators range from 10 to 20 (both inclusive) at the interval of 1. 3. Cross validation =4. 4. Learning rate must vary between 0.1 to 1.0 (both inclusive) at the intervals of 0.1. 5. Train the best model on the entire training set. 6. Print score on test set. Which of the following code blocks will correctly execute Rajesh’s task? [Note: Assume necessary imports and variables for training and test sets.]
  1. question figure
  2. question figure
  3. question figure
  4. question figure
  5. question figure
MLP Quiz 1 · 16 Oct 2022 · open the full paper
Practice 57MCQ3 marks
Which of the following code blocks will correctly take the learning rate as ‘invscaling’ ?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
MLP End Term · 07 Aug 2022 · open the full paper
Practice 58MCQ2 marks
Which of the following options is the correct method to shuffle training data after each epoch in SGDRegressor?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
MLP End Term · 07 Aug 2022 · open the full paper
Practice 59MSQ2 marksselect all that apply
Which of the following options represent(s) the correct method(s) to search for the best regularization parameter for ridge regression?
  1. Search for the best regularization rate with built-in cross validation in RidgeCVestimator
  2. Step 1: Instantiate object of Ridge estimator.Step 2: Set parameter alpha to the maximum regularization rate.
  3. Use cross validation with Ridge to search for best regularization.
  4. Apply cross validation with SGDRegressor for searching the best regularizationparameter.
MLP Quiz 2 · 10 Jul 2022 · open the full paper
Practice 60MSQ3 marksselect all that apply
Which of the following code blocks will correctly train a large scale regression model using partial_fit, if shape of X_train,Y_train are given as (8000,900,10) and (8000,900) respectively. Note that the dataset has been transformed into batches of size 900 each?
  1. question figure
  2. question figure
  3. question figure
  4. question figure