ML Study Hub

Home / Past papers / MLP Quiz 1 / this paper

2024 Oct27: - 27 Oct 2024

MLP Quiz 122 questions50 marks16 MCQ · 6 MSQ
Elapsed 00:00
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q1MCQ2 marks
Which option will give the total count of canceled flights in the dataset?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q2MCQ2 marks
Which of the following code snippets will add a new column ’OnTime’ that shows True if the flight was not delayed, else False?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q3MSQ3 marksselect all that apply
How can you filter the flights that have a delay due to ’Weather’?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q4MCQ3 marks
Which option will sort the flights first by `Airline` in ascending order, then by DelayMinutes in descending order?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q5MCQ3 marks
Which option will give the count of flights that have a delay greater than the average delay?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q6MCQ2 marks
question figure
  1. (4, 5)
  2. (4, 6)
  3. (4, 7)
  4. (4, 8)
  5. None of these
Q7MCQ3 marks
question figure
  1. 0.0
  2. 0.5
  3. -0.5
  4. 1
  5. None of these
Q8MSQ2 marksselect all that apply
Which of the following preprocessing techniques helps in handling categorical features in a dataset?
  1. One-hot encoding
  2. StandardScaler
  3. Label encoding
  4. MinMaxScaler
Q9MSQ2 marksselect all that apply
Which of the following imputation strategies can be used for handling missing values?
  1. Filling with mean or median
  2. Deleting the rows with missing values
  3. Using a predictive model to estimate missing values
  4. Using a random generator to fill missing values
Q10MSQ2 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.
Q11MSQ2 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
Q12MSQ2 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q13MCQ3 marks
question figure
  1. 0 and 1
  2. 2 and 3
  3. 0 and 3
  4. 1 and 2
  5. 1 and 3
Q14MCQ3 marks
question figure
  1. 0
  2. 4
  3. 6
  4. None of these
Q15MCQ3 marks
How many different models will be trained during this grid search process? question figure
  1. 36
  2. 54
  3. 72
  4. 108
Q16MCQ2 marks
You are working on a machine learning project and have received a dataset containing numeric and categorical features. The dataset has some missing values and potential outliers. Given the following data cleaning steps: 1. Use One-Hot Encoding for categorical variables. 2. Impute missing values with feature’s mean for numeric features. 3. Remove duplicates. 4. Standardize numeric features using Z-score normalization. 5. Identify and handle outliers using the IQR method. Which of the following represents the MOST appropriate sequence for preparing the data for a machine learning model?
  1. 1 → 4 → 2 → 3 → 5
  2. 3 → 2 → 1 → 4 → 5
  3. 2 → 3 → 1 → 5 → 4
  4. 3 → 5 → 2 → 1 → 4
Q17MCQ2 marks
question figure
  1. 2
  2. 3
  3. 1
  4. None of these
Q18MCQ2 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q19MCQ2 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.
Q20MCQ2 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q21MCQ2 marks
question figure
  1. Intercept: 3.0, Coefficients: [1.0, 2.0]
  2. Intercept: 3.0, Coefficients: [0.0, 2.0]
  3. Intercept: 0.0, Coefficients: [1.0, 2.0]
  4. Given code will return an error.
Q22MCQ1 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.

Answer key

  1. Q1 (MCQ, 2 marks): A
  2. Q2 (MCQ, 2 marks): A
  3. Q3 (MSQ, 3 marks): B, C
  4. Q4 (MCQ, 3 marks): A
  5. Q5 (MCQ, 3 marks): A
  6. Q6 (MCQ, 2 marks): A
  7. Q7 (MCQ, 3 marks): D
  8. Q8 (MSQ, 2 marks): A, C
  9. Q9 (MSQ, 2 marks): A, B, C
  10. Q10 (MSQ, 2 marks): A, C
  11. Q11 (MSQ, 2 marks): B, C
  12. Q12 (MSQ, 2 marks): A, D
  13. Q13 (MCQ, 3 marks): B
  14. Q14 (MCQ, 3 marks): A
  15. Q15 (MCQ, 3 marks): A
  16. Q16 (MCQ, 2 marks): D
  17. Q17 (MCQ, 2 marks): A
  18. Q18 (MCQ, 2 marks): D
  19. Q19 (MCQ, 2 marks): D
  20. Q20 (MCQ, 2 marks): C
  21. Q21 (MCQ, 2 marks): A
  22. Q22 (MCQ, 1 marks): C

Concepts this paper tests

Auto-generated summary from the source site. Handy as a checklist; the lessons above explain each idea from scratch.

Summary of Core Topics, Concepts, Principles, and Equations

1. Pandas DataFrame Operations

2. Data Preprocessing

3. Pipeline and ColumnTransformer

5. Machine Learning Models

6. Mathematical Equations

Mean=1n∑i=1nxi\text{Mean} = \frac{1}{n} \sum_{i=1}^{n} x_i
σ=1n∑i=1n(xi−μ)2\sigma = \sqrt{\frac{1}{n} \sum_{i=1}^{n} (x_i - \mu)^2}
Manhattan Distance=∑i=1n∣xi−yi∣\text{Manhattan Distance} = \sum_{i=1}^{n} |x_i - y_i|