ML Study Hub

Home / Past papers / MLP Quiz 1 / this paper

IIT M DIPLOMA AN2 EXAM QDD2 25 Feb 2024 - 25 Feb 2024

MLP Quiz 124 questions50 marks16 MCQ · 7 MSQ · 1 SADiploma / QDD2
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
Choose the correct options to determine the count of NULL values in each column of a pandas DataFrame named ’df’
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q2MCQ2 marks
Which option will help in selecting data of odd indexed columns only? (ie. age, parch are odd indexed 1 and 3 respectively)
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q3MCQ2 marks
What is datatype of sex column in the given titanic dataset
  1. number
  2. bool
  3. str
  4. object
Q4MCQ2 marks
Which option will help in filtering data to find females who are alive after titanic incident?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q5MCQ2 marks
What is the given code below trying to accomplish for the given titanic dataset ? question figure What is the given code below trying to accomplish for the given titanic dataset ?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q6MCQ1 mark
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q7MCQ2 marks
You are working on a machine learning project that aims to predict housing prices based on various features of the houses. As the first step, you decide to perform exploratory data analysis and visualize the data to understand its structure and relationships. Which of the following visualization techniques or principles is LEAST likely to provide meaningful insights for this kind of regression problem?
  1. Plotting a heatmap of the correlation matrix to understand the linearrelationship between the numeric features.
  2. Using a scatter plot to visualize the relationship between the square footage ofa house and its price.
  3. Visualizing the distribution of housing prices using a pie chart.
  4. Creating box plots for housing prices, grouped by the number of bedrooms, todetect outliers and understand the distribution across different categories.
Q8MCQ2 marks
A company collects 40000 samples (examples) to build a Machine Learning model for an application. They decide to use 30% of the total samples for testing (to be stored in the variable testset) and the rest 70% for training (to be stored in the variable trainset). They also want to sample the same set of samples across multiple runs. Which of the following line (statement) achieves this task? Assume that all samples are stored in the variable data.
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q9MCQ2 marks
Choose the option based on the following statements: Statement 1: The train-test split allows us to simulate the model’s performance on new data by reserving a portion of the dataset for testing. Statement 2: Separating the dataset into training and testing sets helps prevent data leakage, where information from the test set unintentionally influences the model during training. This ensures a fair assessment of the model’s generalization capabilities.
  1. Statement 1 is True and statement 2 is False
  2. Statement 1 is False and statement 2 is True
  3. Both the statements are False
  4. Both the statements are True
Q10MCQ2 marks
In which of the following scenarios is data cleaning most required?
  1. Data has missing values and categorical string data.
  2. Data consists a lot of outliers based on values in target(y) column
  3. The data consists solely of numerical values and are on a similar scale.
  4. None of the choices
Q11MCQ2 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q12MCQ2 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
Q13MCQ2 marks
question figure
  1. 10
  2. 12
  3. 14
  4. 16
Q14MCQ2 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.
Q15MCQ2 marks
question figure
  1. Accuracy, Accuracy
  2. R2 score, R2 score
  3. Accuracy, R2 score
  4. R2 score, Accuracy
  5. F1 score, Precision
  6. Precision, Recall
  7. MAE, MSE
  8. The code will result in an error.
Q16MCQ3 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q17MSQ2 marksselect all that apply
Suppose that we plot the histogram of numerical features in a data set. This reveals which of the following information?
  1. Scale of the features
  2. (left or right) Skew of the distribution
  3. Modes in the distribution
  4. Missing values
Q18MSQ2 marksselect all that apply
question figure
  1. house.data.shape will give the count of number of rows and columns forfeatures and labels(target) both
  2. house.target_names will give the name of the target column
  3. house.data.head() will show last 5 rows of the data
  4. house.feature_names will give a list of names of the columns of the featurematrix
Q19MSQ2 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
Q20MSQ2 marksselect all that apply
question figure
  1. Column indexed at 0
  2. Column indexed at 1
  3. Column indexed at 2
  4. Column indexed at 3
  5. Column indexed at 4
  6. No columns
Q21MSQ2 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
Q22MSQ3 marksselect all that apply
Which of the following feature(s) will be selected in X_selected from X ? question figure
  1. malic_acid
  2. magnesium
  3. flavanoids
  4. proanthocyanins
  5. color_intensity
  6. proline
Q23MSQ3 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q24SA2 marks
question figure

Answer key

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

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. Machine Learning Models and Evaluation

4. Data Visualization

5. Feature Selection

6. Model Training and Evaluation

Equations

1. Standard Scaling

z=x−μσz = \frac{x - \mu}{\sigma}

where zz is the scaled value, xx is the original value, μ\mu is the mean, and σ\sigma is the standard deviation.

2. Mean Squared Error (MSE)

MSE=1n∑i=1n(yi−y^i)2\text{MSE} = \frac{1}{n} \sum_{i=1}^{n} (y_i - \hat{y}_i)^2

where yiy_i is the actual value and y^i\hat{y}_i is the predicted value.

3. R2 Score

R2=1−∑i=1n(yi−y^i)2∑i=1n(yi−yˉ)2R^2 = 1 - \frac{\sum_{i=1}^{n} (y_i - \hat{y}_i)^2}{\sum_{i=1}^{n} (y_i - \bar{y})^2}

where yˉ\bar{y} is the mean of the actual values.

4. Mean Absolute Error (MAE)

MAE=1n∑i=1n∣yi−y^i∣\text{MAE} = \frac{1}{n} \sum_{i=1}^{n} |y_i - \hat{y}_i|