ML Study Hub

Home / MLP / Week 4 / Real questions

MLP week 4 - 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
A matrix-factorization recommender is set up on MovieLens-100k as follows: question figure Which of the following statements is TRUE?
  1. Evaluating the expression returns the full predicted-rating matrix, of shape .
  2. The model has trainable parameters.
  3. Increasing reduces the risk of overfitting on the sparse rating matrix.
  4. The predicted rating of user for item is the cosine similarity between and .
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 · 13 Sep 2026 · open the full paper
Practice 3MCQ3 marks
Consider the following models: question figure Which of the following explains the two models correctly?
  1. model1 will apply weaker regularization compared to model2, resulting in smaller coefficients.
  2. model2 will apply stronger regularization compared to model1, resulting in more coefficients close to zero.
  3. model1 is more likely to have smaller magnitude coefficients because it uses stronger regularization.
  4. Both models apply the same amount of regularization because the penalty type is the same.
MLP End Term · 13 Sep 2026 · open the full paper
Practice 4MSQ3 marksselect all that apply
Consider the following implementation of PCA: question figure Which of the following are correct?
  1. X_pca.shape[1] is equal to the original number of features.
  2. The sum of pca.explained_variance_ratio_ is at least 0.95.
  3. len(pca.explained_variance_ratio_) is equal to X_pca.shape[1].
  4. The principal components correspond to the original features with the highest variance.
MLP End Term · 13 Sep 2026 · open the full paper
Practice 5MCQ3 marks
Consider the following two ensemble regression architectures trained on the same dataset: question figure How do these two models differ in their output strategy to produce the final prediction for a given test instance, and how does adding more estimators affect them?
  1. ensemble1 computes a weighted sum of predictions where later trees have higher weights; ensemble2 takes a simple arithmetic mean of all trees.
  2. ensemble1 reduces variance by averaging independent predictions from 100 trees, meaning increasing n_estimators to 500 will ideally not cause overfitting.
  3. ensemble2 reduces bias sequentially, meaning increasing n_estimators to 500 carries no risk of overfitting.
  4. Both models output predictions by calculating the majority vote across the terminal leaf nodes of all individual base estimators.
MLP End Term · 13 Sep 2026 · open the full paper
Practice 6MCQ3 marks
Consider the following code snippet: question figure Which of the following holds true?
  1. The model performs no regularization.
  2. The model performs regularization and the regularization can also perfrom some feature selection.
  3. The model performs regularization and the regularization cant perfrom some feature selection.
  4. The model is very likely to be prone to overfitting
MLP End Term · 13 Sep 2026 · open the full paper
Practice 7MSQ4 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 · 13 Sep 2026 · open the full paper
Practice 8MCQ2 marks
A forecasting model achieves an R2 score of 0.98 on the test set. However, it was trained using a feature that contains the sales value of the next day. Which of the following is the most appropriate conclusion?
  1. The model has low bias.
  2. The model has successfully captured seasonality.
  3. The evaluation is unreliable due to data leakage.
  4. The model has underfit the data.
MLP End Term · 10 May 2026 · open the full paper
Practice 9MSQ5 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 · 10 May 2026 · open the full paper
Practice 10MSQ4 marksselect all that apply
Select all the false statements amongst the given statements:
  1. RandomForest uses sampling without replacement for bagging.
  2. Boosting reduces bias by sequentially training models
  3. Bagging reduces bias by training multiple models on different subsets of data and averaging their predictions.
  4. Boosting trains all base models independently in parallel.
MLP End Term · 10 May 2026 · open the full paper
Practice 11MCQ3 marks
Consider the given 2 different lasso regression models trained on the same dataset: question figure Statements: 1. The coefficients of lasso2 are more likely to be smaller in magnitude than those of lasso1. 2. lasso1 may have fewer zero coefficients than lasso2. 3. The predictions of lasso1 on the training data will exactly match y. 4. Increasing alpha always increases model accuracy on unseen data. Which of the given statements are correct?
  1. 2 and 3
  2. 1 and 2
  3. 3 and 4
  4. 1 and 4
MLP End Term · 21 Dec 2025 · open the full paper
Practice 12MCQ2 marks
The adfuller() function in statsmodels is used to test:
  1. Whether a time series has seasonal patterns
  2. Whether a time series is stationary
  3. Whether the data follows a normal distribution
  4. Whether the variance of the data changes over time
MLP End Term · 21 Dec 2025 · open the full paper
Practice 13MCQ2 marks
What will typically happen if series_with_nans contains NaNs (null values) ? question figure
  1. statsmodels will automatically impute NaNs and fit silently.
  2. fit() will raise an error or drop NaNs depending on the estimator; user should handle NaNs beforehand.
  3. NaNs are treated as zeros.
  4. The model will only use the NaN values to estimate variance.
MLP End Term · 21 Dec 2025 · open the full paper
Practice 14MCQ1 mark
A newly launched movie has no ratings, but metadata such as genre, cast, and director is available. Which algorithm can still recommend it?
  1. User-based Collaborative Filtering
  2. Item-based Collaborative Filtering
  3. Content-based filtering
  4. Matrix factorization without regularization
MLP End Term · 21 Dec 2025 · open the full paper
Practice 15MCQ1 mark
What is the role of the alpha=1.0 parameter in the given sklearn code to build a regression model? question figure
  1. It applies L1 regularization and sets some coefficients to zero.
  2. It removes regularization completely and behaves like Linear Regression.
  3. It adds L2 regularization that penalizes large coefficients to prevent overfitting.
  4. It makes the model ignore the intercept term.
MLP End Term · 21 Dec 2025 · open the full paper
Practice 16MSQ2 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 17MCQ1 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 18MCQ1 mark
Following is the code to tune the degree parameter of a polynomial regression model. question figure What should the blank space contain?
  1. "degree"
  2. "PolynomialFeatures_degree"
  3. "sgd__degree"
  4. "poly__degree"
MLP End Term · 13 Apr 2025 · open the full paper
Practice 19MSQ2 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 End Term · 13 Apr 2025 · open the full paper
Practice 20MCQ2 marks
The following code attempts to implement Ridge regression on the Boston housing dataset but contains an error. The missing part should be correctly filled in to avoid issues during training. question figure The following code attempts to implement Ridge regression on the Boston housing dataset but contains an error. The missing part should be correctly filled in to avoid issues during training. Which of the following correctly fills the missing part while ensuring proper preprocessing?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
MLP End Term · 13 Apr 2025 · open the full paper
Practice 21MCQ2 marks
Which of the following techniques can be used for hyperparameter tuning in SGD Regression?
  1. GridSearchCV
  2. ElasticNetCV
  3. SelectKBest
  4. Feature Scaling with StandardScaler
MLP End Term · 13 Apr 2025 · open the full paper
Practice 22MSQ3 marksselect all that apply
Which of the following statements are true with regard to logistic regression?
  1. The decision boundary of a logistic regression model is always a straight line.
  2. The solver parameter in logistic regression determines the optimizationalgorithm used for training the model.
  3. Logistic regression can naturally handle multi-class classification without anymodifications.
  4. The regularization strength in logistic regression can be controlled using the Cparameter.
MLP Quiz 1 · 23 Feb 2025 · open the full paper
Practice 23MCQ2 marks
What is the primary risk of not performing a train-test split in a machine learning workflow?
  1. The training time will increase.
  2. The model might overfit the training data and perform poorly on new data.
  3. The dataset may become unbalanced.
  4. The model may fail to converge.
MLP Quiz 1 · 23 Feb 2025 · open the full paper
Practice 24MCQ2 marks
Suppose we want to transform features in a dataset using polynomial transformation. The sklearn API provides the functionality in which of the following modules?
  1. sklearn.dataset
  2. sklearn.model_selection
  3. sklearn.preprocessing
  4. sklearn.featureSelection
  5. sklearn.featureExtraction
MLP Quiz 1 · 23 Feb 2025 · open the full paper
Practice 25MCQ2 marks
Comprehension passage for this question
Consider the given Table 1: Banking data for the given subquestions stored as pandas dataframe in variable df question figure Consider the given Table 1: Banking data for the given subquestions stored as pandas dataframe in variable df Based on the above data, answer the given subquestions.
In Contact column which of the following statistical measures can be used to replace nan values?
  1. Mean
  2. Median
  3. Mode
  4. Variance
MLP End Term · 22 Dec 2024 · open the full paper
Practice 26MCQ3 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 27MCQ2 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 28MCQ2 marks
question figure
  1. It decreases the variance among individual trees.
  2. It increases the variance among individual trees.
  3. It reduces the number of samples used for training each tree.
  4. It reduces overfitting by restricting tree depth.
MLP End Term · 22 Dec 2024 · open the full paper
Practice 29MCQ2 marks
question figure
  1. It increases the variance among individual trees.
  2. It decreases the variance among individual trees.
  3. It reduces the number of samples used for training each tree.
  4. It reduces overfitting by restricting tree depth.
MLP End Term · 22 Dec 2024 · open the full paper
Practice 30MCQ2 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 31MSQ2 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 32MCQ3 marks
question figure
  1. It assigns equal weightage to L1 and L2 regularizations.
  2. It applies only L2 regularization.
  3. It applies only L1 regularization.
  4. It disables regularization completely.
MLP Quiz 2 · 01 Dec 2024 · open the full paper
Practice 33MCQ3 marks
question figure
  1. The data will be standardized without centering, preserving the mean of thedataset.
  2. The data will be centered but not scaled, leading to variance issues.
  3. The parameter has no effect; the data will always be centered regardless ofthis setting.
  4. The scaling operation will be disabled entirely, leaving the data unchanged.
MLP Quiz 2 · 01 Dec 2024 · open the full paper
Practice 34MCQ2 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 35MCQ2 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 36MSQ2 marksselect all that apply
Which of the following is correct about cross-validation in machine learning?
  1. Cross-validation helps prevent overfitting.
  2. It is a technique to improve the model’s accuracy.
  3. K-Fold cross-validation is one of the most popular types of cross-validation.
  4. Cross-validation is not suitable for small datasets.
MLP End Term · 01 Sep 2024 · open the full paper
Practice 37MCQ3 marks
question figure
  1. It determines whether to include a bias term in the model.
  2. It sets the degree of the polynomial features.
  3. It controls the regularization strength.
  4. It specifies the number of features to consider when fitting the model.
MLP End Term · 01 Sep 2024 · open the full paper
Practice 38MSQ2 marksselect all that apply
Data snooping:
  1. Leads to biased estimation on test sets
  2. Increases the risk of false positives
  3. Leads to better estimation on training sets
  4. Reduces the risk of false positives
MLP End Term · 01 Sep 2024 · open the full paper
Practice 39MSQ3 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 40MCQ2 marks
Decision Trees are prone to:
  1. Low bias, low variance
  2. High bias, low variance
  3. Low bias, high variance
  4. High bias, high variance
MLP Quiz 2 · 04 Aug 2024 · open the full paper
Practice 41MCQ2 marks
What is the effect of increasing the regularization parameter alpha in Ridge Regression?
  1. It increases the complexity of the model.
  2. It reduces the complexity of the model.
  3. It has no effect on the model.
  4. It increases the model’s sensitivity to the training data.
MLP Quiz 2 · 04 Aug 2024 · open the full paper
Practice 42MCQ2 marks
How can we use both Ridge and Lasso Regularization in a machine learning model?
  1. By setting penalty parameter to l2
  2. By setting penalty parameter to l1
  3. By setting penalty parameter to elasticnet
  4. By setting penalty parameter to l3
MLP Quiz 2 · 04 Aug 2024 · open the full paper
Practice 43MCQ2 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 44MSQ2 marksselect all that apply
question figure
  1. ‘poly’,
  2. ‘lasso’
  3. ‘rbf’,
  4. ‘scale’
MLP Quiz 2 · 04 Aug 2024 · open the full paper
Practice 45MSQ3 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 46MSQ2 marksselect all that apply
What is the solution for overfitting?
  1. To have less constraints/regularization
  2. To have more constraints/regularization
  3. Delete a significant portion of data
  4. Increase the dataset size.
  5. None of these.
MLP End Term · 28 Apr 2024 · open the full paper
Practice 47MSQ2 marksselect all that apply
Which of the following options are correct regarding regularization?
  1. It is a technique used to minimize the adjusted loss function and avoidunderfitting.
  2. It helps in increasing the bias of the training model.
  3. It determines the rows to be selected as a training dataset.
  4. Elastic net regularization is a combination of L1 and L2 regularization both.
MLP End Term · 24 Dec 2023 · open the full paper
Practice 48MCQ2 marks
Consider the Ridge regression model in scikit-learn, represented by the Ridge class. Which of the following statements about Ridge regression is correct?
  1. Ridge regression is designed to handle class imbalance of the dataset.
  2. The regularization term in Ridge regression is added to the sum of absoluteresiduals.
  3. Increasing the value of the regularization parameter (alpha) in Ridgeregression makes the model less sensitive to high-magnitude coefficients.
  4. Ridge regression is equivalent to Lasso regression when the regularizationparameter (alpha) is set to zero.
MLP End Term · 24 Dec 2023 · open the full paper
Practice 49MCQ2 marks
Which of these may NOT help in handling overfitting in decision trees?
  1. Increasing the value of min_samples_split
  2. Increasing the value of the pruning parameter
  3. Increasing the value of min_samples_leaf
  4. Increasing the depth of the tree
MLP End Term · 24 Dec 2023 · open the full paper
Practice 50MCQ3 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 51MSQ2 marksselect all that apply
question figure
  1. It applies lasso penalty.
  2. The training may terminate after 499 iterations or lesser
  3. the classifier represents a perceptron model
  4. The classifier’s model parameters will initialized with parameters learnt fromprevious call to fit() function, if the same object is trained/fitted multiple times on new data.
MLP End Term · 24 Dec 2023 · open the full paper
Practice 52MSQ2 marksselect all that apply
question figure
  1. ‘poly’,
  2. ‘lasso’
  3. ‘rbf’,
  4. ‘scale’
MLP End Term · 24 Dec 2023 · open the full paper
Practice 53MSQ3 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 · 24 Dec 2023 · open the full paper
Practice 54MCQ2 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 55MSQ2 marksselect all that apply
question figure
  1. ‘lasso’
  2. ‘poly’
  3. ‘scale’
  4. ‘rbf’
MLP Quiz 2 · 03 Dec 2023 · open the full paper
Practice 56MCQ3 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 Quiz 2 · 03 Dec 2023 · open the full paper
Practice 57MCQ4 marks
According to DecisionTreeClassifier parameters which of the following option will have least fitting(underfit) for the same data.
  1. question figure
  2. question figure
  3. question figure
  4. question figure
MLP Quiz 2 · 03 Dec 2023 · open the full paper
Practice 58MSQ2 marksselect all that apply
Which of the following are advantages of using ensemble methods in machine learning?
  1. Improved model performance
  2. Reduced overfitting
  3. Faster model training
  4. Simplicity of model interpretation
MLP Quiz 1 · 29 Oct 2023 · open the full paper
Practice 59MCQ2 marks
question figure
  1. The pipeline will generate polynomial features (including squared terms) andthen scale these features to a range between 0 and 1.
  2. The transformed data will consist of the original features, their squares, andinteraction terms, all scaled between 0 and 1.
  3. The pipeline scales the original features between 0 and 1, then subsequentlygenerates polynomial combinations including both square terms and interaction terms.
  4. Only interaction terms between features are generated by the pipeline, whichare then scaled between 0 and 1, without including the squared terms of individual features.
MLP Quiz 1 · 29 Oct 2023 · open the full paper
Practice 60MCQ2 marks
question figure
  1. Optimize the model’s complexity by automatically determining the best αthrough cross-validation.
  2. Reduce overfitting by incorporating 10-fold cross-validation during modelselection.
  3. Make predictions using an ensemble of 10 different Lasso models trained ondifferent subsets of the data.
  4. Maximize the number of features retained in the model, ensuring a complexmodel representation.