cs2008_2024T3_Q1_AN.pdf
Machine Learning Practice · Quiz 1 · Sep 2024
← Course papers · Start practice / exam
Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.
Question 26 MCQ · 3.0 marks
[[IMAGE:e330c6d45a646e53_1_0]]

(0,1)
(2,3)
(3,2)
(2,4)
A published solution is not available for this question yet.
Question 27 MCQ · 4.0 marks
Which point has the lowest probability of being chosen as the 3rd cluster mean? Use squared
distance to calculate the scores.
(1,0)
(2,3)
(3,2)
(1,2)
**MLP**
**Section Id :** 64065369402
**Section Number :** 3
**Section type :** Online
**Mandatory or Optional :** Mandatory
**Number of Questions :** 18
**Number of Questions to be attempted :** 18
**Section Marks :** 50
**Display Number Panel :** Yes
**Section Negative Marks :** 0
**Group All Questions :** No
**Enable Mark as Answered Mark for Review and**
No
**Clear Response :**
**Section Maximum Duration :** 0
**Section Minimum Duration :** 0
**Section Time In :** Minutes
**Maximum Instruction Time :** 0
A published solution is not available for this question yet.
Question 29 MCQ · 2.0 marks
[[IMAGE:e330c6d45a646e53_2_1]]
Based on the above data, answer the given subquestions.
Which option will give the total count of canceled flights in the dataset?

[[IMAGE:e330c6d45a646e53_3_2]]

[[IMAGE:e330c6d45a646e53_3_3]]

[[IMAGE:e330c6d45a646e53_3_4]]

[[IMAGE:e330c6d45a646e53_3_5]]

A published solution is not available for this question yet.
Question 30 MCQ · 2.0 marks
[[IMAGE:e330c6d45a646e53_2_1]]
Based on the above data, answer the given subquestions.
Which of the following code snippets will add a new column ’OnTime’ that shows True if the flight
was not delayed, else False?

[[IMAGE:e330c6d45a646e53_3_6]]

[[IMAGE:e330c6d45a646e53_3_7]]

[[IMAGE:e330c6d45a646e53_3_8]]

[[IMAGE:e330c6d45a646e53_3_9]]

A published solution is not available for this question yet.
Question 31 MSQ · 3.0 marks
[[IMAGE:e330c6d45a646e53_2_1]]
Based on the above data, answer the given subquestions.
How can you filter the flights that have a delay due to ’Weather’?

[[IMAGE:e330c6d45a646e53_3_10]]

[[IMAGE:e330c6d45a646e53_4_11]]

[[IMAGE:e330c6d45a646e53_4_12]]

[[IMAGE:e330c6d45a646e53_4_13]]

A published solution is not available for this question yet.
Question 32 MCQ · 3.0 marks
[[IMAGE:e330c6d45a646e53_2_1]]
Based on the above data, answer the given subquestions.
Which option will sort the flights first by `Airline` in ascending order, then by DelayMinutes in
descending order?

[[IMAGE:e330c6d45a646e53_4_14]]

[[IMAGE:e330c6d45a646e53_4_15]]

[[IMAGE:e330c6d45a646e53_4_16]]

[[IMAGE:e330c6d45a646e53_4_17]]

A published solution is not available for this question yet.
Question 33 MCQ · 3.0 marks
[[IMAGE:e330c6d45a646e53_2_1]]
Based on the above data, answer the given subquestions.
Which option will give the count of flights that have a delay greater than the average delay?

[[IMAGE:e330c6d45a646e53_4_18]]

[[IMAGE:e330c6d45a646e53_4_19]]

[[IMAGE:e330c6d45a646e53_4_20]]

[[IMAGE:e330c6d45a646e53_4_21]]

A published solution is not available for this question yet.
Question 34 MCQ · 2.0 marks
[[IMAGE:e330c6d45a646e53_5_22]]
Based on the above data, answer the given subquestions.
[[IMAGE:e330c6d45a646e53_5_23]]


(4, 5)
(4, 6)
(4, 7)
(4, 8)
None of these
A published solution is not available for this question yet.
Question 35 MCQ · 3.0 marks
[[IMAGE:e330c6d45a646e53_5_22]]
Based on the above data, answer the given subquestions.
[[IMAGE:e330c6d45a646e53_5_24]]


0.0
0.5
-0.5
1
None of these
A published solution is not available for this question yet.
Question 36 MSQ · 2.0 marks
Which of the following preprocessing techniques helps in handling categorical features in a
dataset?
One-hot encoding
StandardScaler
Label encoding
MinMaxScaler
A published solution is not available for this question yet.
Question 37 MSQ · 2.0 marks
Which of the following imputation strategies can be used for handling missing values?
Filling with mean or median
Deleting the rows with missing values
Using a predictive model to estimate missing values
Using a random generator to fill missing values
A published solution is not available for this question yet.
Question 38 MSQ · 2.0 marks
Which of the following is correct about cross-validation in machine learning?
Cross-validation helps prevent overfitting.
It is a technique to improve the model’s accuracy.
K-Fold cross-validation is one of the most popular types of cross-validation.
Cross-validation is not suitable for small datasets.
A published solution is not available for this question yet.
Question 39 MSQ · 2.0 marks
Which of the following are valid loss functions for SGDClassifier?
Squared Loss
Hinge Loss
Log Loss
Mean Absolute Error
A published solution is not available for this question yet.
Question 40 MSQ · 2.0 marks
[[IMAGE:e330c6d45a646e53_7_25]]

[[IMAGE:e330c6d45a646e53_7_26]]

[[IMAGE:e330c6d45a646e53_7_27]]

[[IMAGE:e330c6d45a646e53_7_28]]

[[IMAGE:e330c6d45a646e53_7_29]]

A published solution is not available for this question yet.
Question 41 MCQ · 3.0 marks
[[IMAGE:e330c6d45a646e53_8_30]]

0 and 1
2 and 3
0 and 3
1 and 2
1 and 3
A published solution is not available for this question yet.
Question 42 MCQ · 3.0 marks
[[IMAGE:e330c6d45a646e53_8_31]]

0
4
6
None of these
A published solution is not available for this question yet.
Question 43 MCQ · 3.0 marks
[[IMAGE:e330c6d45a646e53_9_32]]
How many different models will be trained during this grid search process?

36
54
72
108
A published solution is not available for this question yet.
Question 44 MCQ · 2.0 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 → 4 → 2 → 3 → 5
3 → 2 → 1 → 4 → 5
2 → 3 → 1 → 5 → 4
3 → 5 → 2 → 1 → 4
A published solution is not available for this question yet.
Question 45 MCQ · 2.0 marks
[[IMAGE:e330c6d45a646e53_10_33]]

2
3
1
None of these
A published solution is not available for this question yet.
Question 46 MCQ · 2.0 marks
[[IMAGE:e330c6d45a646e53_11_34]]

[[IMAGE:e330c6d45a646e53_11_35]]

[[IMAGE:e330c6d45a646e53_11_36]]

[[IMAGE:e330c6d45a646e53_11_37]]

[[IMAGE:e330c6d45a646e53_11_38]]

A published solution is not available for this question yet.
Question 47 MCQ · 2.0 marks
[[IMAGE:e330c6d45a646e53_11_39]]

It controls the learning rate of the stochastic regressor during training.
It determines the maximum number of iterations for the training process.
It defines the fraction of the validation set used for early stopping.
It specifies the tolerance level for early stopping based on the change in the
validation error.
A published solution is not available for this question yet.
Question 48 MCQ · 2.0 marks
[[IMAGE:e330c6d45a646e53_12_40]]

[[IMAGE:e330c6d45a646e53_12_41]]

[[IMAGE:e330c6d45a646e53_12_42]]

[[IMAGE:e330c6d45a646e53_12_43]]

[[IMAGE:e330c6d45a646e53_12_44]]

A published solution is not available for this question yet.
Question 49 MCQ · 2.0 marks
[[IMAGE:e330c6d45a646e53_12_45]]

Intercept: 3.0, Coefficients: [1.0, 2.0]
Intercept: 3.0, Coefficients: [0.0, 2.0]
Intercept: 0.0, Coefficients: [1.0, 2.0]
Given code will return an error.
A published solution is not available for this question yet.
Question 50 MCQ · 1.0 marks
[[IMAGE:e330c6d45a646e53_13_46]]

Controls the total number of iterations.
Specifies the tolerance level for early stopping.
Defines the number of iterations with no improvement to stop training.
Sets the learning rate schedule.
**BA**
**Section Id :** 64065369403
**Section Number :** 4
**Section type :** Online
**Mandatory or Optional :** Mandatory
**Number of Questions :** 5
**Number of Questions to be attempted :** 5
**Section Marks :** 20
**Display Number Panel :** Yes
**Section Negative Marks :** 0
**Group All Questions :** No
**Enable Mark as Answered Mark for Review and**
No
**Clear Response :**
**Section Maximum Duration :** 0
**Section Minimum Duration :** 0
**Section Time In :** Minutes
**Maximum Instruction Time :** 0
A published solution is not available for this question yet.