cs2008_2024T2_Q1_AN.pdf
Machine Learning Practice · Quiz 1 · May 2024
← Course papers · Start practice / exam
This page contains the reliably extracted subset, not the complete original paper.
Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.
Question 132 NAT · 2.5 marks
Consider a dataset that has 25 data-points. The data-point xi and its frequency is given in the
following table:
[[IMAGE:84882d9d0fbdb573_1_3]]
In case the table is not clear: the value 0 appears once in the dataset, the value 1 appears four
times in the dataset, and so on. Find the maximum likelihood estimate for the parameter λ of the
Poisson distribution given this dataset.

A published solution is not available for this question yet.
Question 134 NAT · 1.0 marks
Consider following common data and answer the given subquestions:
[[IMAGE:84882d9d0fbdb573_3_4]]
What will be the output of the following code snippet?
[[IMAGE:84882d9d0fbdb573_3_5]]
Enter -1, if you think the above code snippet will generate an error.


A published solution is not available for this question yet.
Question 135 NAT · 1.0 marks
Consider following common data and answer the given subquestions:
[[IMAGE:84882d9d0fbdb573_3_4]]
What will be the output of the following code snippet?
[[IMAGE:84882d9d0fbdb573_3_6]]
Enter -1, if you think the above code snippet will generate an error.


A published solution is not available for this question yet.
Question 136 NAT · 2.0 marks
Consider following common data and answer the given subquestions:
[[IMAGE:84882d9d0fbdb573_3_4]]
What will be the output of the following code snippet?
[[IMAGE:84882d9d0fbdb573_4_7]]
Enter -1, if you think the above code snippet will generate an error.


A published solution is not available for this question yet.
Question 137 NAT · 2.0 marks
Consider following common data and answer the given subquestions:
[[IMAGE:84882d9d0fbdb573_3_4]]
What will be the output of the following code snippet?
[[IMAGE:84882d9d0fbdb573_4_8]]
Enter -1, if you think the above code snippet will generate an error.


A published solution is not available for this question yet.
Question 138 MSQ · 2.0 marks
Consider following common data and answer the given subquestions:
[[IMAGE:84882d9d0fbdb573_3_4]]
Given the data, which of the following options will provide the same output?

[[IMAGE:84882d9d0fbdb573_5_9]]

[[IMAGE:84882d9d0fbdb573_5_10]]

[[IMAGE:84882d9d0fbdb573_5_11]]

[[IMAGE:84882d9d0fbdb573_5_12]]

[[IMAGE:84882d9d0fbdb573_5_13]]

[[IMAGE:84882d9d0fbdb573_5_14]]

A published solution is not available for this question yet.
Question 139 MSQ · 2.0 marks
Consider following common data and answer the given subquestions:
[[IMAGE:84882d9d0fbdb573_3_4]]
If you would like to see the most frequent car manufacturers in the dataset, which of the following
can be used?

[[IMAGE:84882d9d0fbdb573_5_15]]

[[IMAGE:84882d9d0fbdb573_5_16]]

[[IMAGE:84882d9d0fbdb573_5_17]]

[[IMAGE:84882d9d0fbdb573_5_18]]

[[IMAGE:84882d9d0fbdb573_5_19]]

A published solution is not available for this question yet.
Question 140 MSQ · 2.0 marks
Which of the following choice(s) are correct ?
Null values cannot be interpreted by the model hence we need to handle them
accordingly.
Null values cannot be replaced because we can not manipulate the dataset.
We should let the sklearn or software automatically decide how to handle
different kinds of missing values.
Different types of representation of missing values could be seen in the
dataset.
A published solution is not available for this question yet.
Question 141 MSQ · 2.0 marks
Which of the following options are true about Pearson correlation matrix ?
[[IMAGE:84882d9d0fbdb573_6_20]]

[[IMAGE:84882d9d0fbdb573_6_21]]

[[IMAGE:84882d9d0fbdb573_6_22]]

[[IMAGE:84882d9d0fbdb573_6_23]]

A published solution is not available for this question yet.
Question 142 MSQ · 3.0 marks
[[IMAGE:84882d9d0fbdb573_6_24]]

[[IMAGE:84882d9d0fbdb573_6_25]]

[[IMAGE:84882d9d0fbdb573_6_26]]

[[IMAGE:84882d9d0fbdb573_6_27]]

[[IMAGE:84882d9d0fbdb573_6_28]]

[[IMAGE:84882d9d0fbdb573_6_29]]

[[IMAGE:84882d9d0fbdb573_6_30]]

A published solution is not available for this question yet.
Question 143 MCQ · 2.0 marks
We need to preprocess the data before using it for model building due to which of the following
reasons ?
Due to errors in data capture, data may contain outliers or missing values.
Different features may be at different scales.
Data contains non numerical features.
All of these
A published solution is not available for this question yet.
Question 144 MCQ · 3.0 marks
Consider following data and answer the given subquestions:
[[IMAGE:84882d9d0fbdb573_7_31]]
Each row represents a data point. There are exactly 4 points. The index of points starts from 0 and
ends at 3 (included).
Which of the following pairs have the highest euclidean distance? Note: take care of the missing
values and adjust accordingly. The options refer to the indices of points.

1 and 2
0 and 2
1 and 3
2 and 3
0 and 1
There is a tie between two or more options.
None of these.
A published solution is not available for this question yet.
Question 145 MCQ · 2.0 marks
Consider following data and answer the given subquestions:
[[IMAGE:84882d9d0fbdb573_7_31]]
Each row represents a data point. There are exactly 4 points. The index of points starts from 0 and
ends at 3 (included).
Which of the following pairs have the smallest euclidean distance? Note: take care of the missing
values and adjust accordingly. The options refer to the indices of points.

1 and 2
0 and 2
1 and 3
2 and 3
0 and 1
There is a tie between two or more options.
None of these.
A published solution is not available for this question yet.
Question 146 NAT · 2.0 marks
Consider following data and code snippet:
[[IMAGE:84882d9d0fbdb573_9_32]]
Based on the above data, answer the given subquestions.
What will be the output of the following code snippet:
[[IMAGE:84882d9d0fbdb573_9_33]]
Enter -1, if you think the above code snippet will generate an error.


A published solution is not available for this question yet.
Question 147 NAT · 2.0 marks
Consider following data and code snippet:
[[IMAGE:84882d9d0fbdb573_9_32]]
Based on the above data, answer the given subquestions.
What will be the output of the following code snippet:
[[IMAGE:84882d9d0fbdb573_9_34]]
Enter -1, if you think the above code snippet will generate an error.


A published solution is not available for this question yet.
Question 148 NAT · 2.0 marks
Consider following data and code snippet:
[[IMAGE:84882d9d0fbdb573_9_32]]
Based on the above data, answer the given subquestions.
What will be the output of the following code snippet:
[[IMAGE:84882d9d0fbdb573_10_35]]
Enter -1, if you think the above code snippet will generate an error.


A published solution is not available for this question yet.
Question 149 NAT · 2.0 marks
Consider following data and code snippet:
[[IMAGE:84882d9d0fbdb573_9_32]]
Based on the above data, answer the given subquestions.
What will be the output of the following code snippet:
[[IMAGE:84882d9d0fbdb573_10_36]]
Enter -1, if you think the above code snippet will generate an error.


A published solution is not available for this question yet.
Question 150 MSQ · 2.0 marks
Consider following data and code snippet:
[[IMAGE:84882d9d0fbdb573_9_32]]
Based on the above data, answer the given subquestions.
Which of the following can be used to get the simpleimputer object?

[[IMAGE:84882d9d0fbdb573_11_37]]

[[IMAGE:84882d9d0fbdb573_11_38]]

[[IMAGE:84882d9d0fbdb573_11_39]]

[[IMAGE:84882d9d0fbdb573_11_40]]

[[IMAGE:84882d9d0fbdb573_11_41]]

[[IMAGE:84882d9d0fbdb573_11_42]]

[[IMAGE:84882d9d0fbdb573_11_43]]

A published solution is not available for this question yet.
Question 151 MCQ · 2.0 marks
Go through the code snippet given below and answer the given subquestions.
[[IMAGE:84882d9d0fbdb573_12_44]]
Which of the following options will be the output of the given code?

[[IMAGE:84882d9d0fbdb573_12_45]]

[[IMAGE:84882d9d0fbdb573_12_46]]

[[IMAGE:84882d9d0fbdb573_12_47]]

[[IMAGE:84882d9d0fbdb573_12_48]]

A published solution is not available for this question yet.
Question 152 MCQ · 2.0 marks
Go through the code snippet given below and answer the given subquestions.
[[IMAGE:84882d9d0fbdb573_12_44]]
[[IMAGE:84882d9d0fbdb573_12_49]]


-0.528
1
0.528
Given code will return an error
A published solution is not available for this question yet.
Question 153 MCQ · 3.0 marks
Consider the following code:
[[IMAGE:84882d9d0fbdb573_13_50]]
Which of the following may be the correct output of the above code?:

[[IMAGE:84882d9d0fbdb573_13_51]]

[[IMAGE:84882d9d0fbdb573_13_52]]

[[IMAGE:84882d9d0fbdb573_13_53]]

[[IMAGE:84882d9d0fbdb573_13_54]]

[[IMAGE:84882d9d0fbdb573_13_55]]

A published solution is not available for this question yet.
Question 154 MCQ · 3.0 marks
Consider the following code:
[[IMAGE:84882d9d0fbdb573_14_56]]
Which of the following is more likely to be true?

[[IMAGE:84882d9d0fbdb573_14_57]]

[[IMAGE:84882d9d0fbdb573_14_58]]

[[IMAGE:84882d9d0fbdb573_14_59]]

A published solution is not available for this question yet.
Question 155 NAT · 2.0 marks
What will be the output of the following code ?
[[IMAGE:84882d9d0fbdb573_14_60]]

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

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 157 MSQ · 2.0 marks
Consider the following code block and if needed make appropriate assumptions:
[[IMAGE:84882d9d0fbdb573_15_62]]
Which of the following may be appropriate to be filled in the blank space value for scoring
parameter?

[[IMAGE:84882d9d0fbdb573_15_63]]

[[IMAGE:84882d9d0fbdb573_16_64]]

[[IMAGE:84882d9d0fbdb573_16_65]]

[[IMAGE:84882d9d0fbdb573_16_66]]

[[IMAGE:84882d9d0fbdb573_16_67]]

[[IMAGE:84882d9d0fbdb573_16_68]]
**System Commands**
**Section Id :** 64065359217
**Section Number :** 10
**Section type :** Online
**Mandatory or Optional :** Mandatory
**Number of Questions :** 16
**Number of Questions to be attempted :** 16
**Section Marks :** 100
**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.