Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT "DIPLOMA LEVEL : MACHINE LEARNING PRACTICE
(COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
(COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
Which variant of the Naive Bayes Classifier will be most suitable to predict the Gender in the given dataset?

Solution
Consider the following time series analysis code:

In the above code, what is the primary role of the parameter d=1 in order=(1,1,1)?
In the above code, what is the primary role of the parameter d=1 in order=(1,1,1)?
Solution
In the following question, an Assertion (A) is followed by a Reason (R). Choose the correct option from the choices given below:
Assertion (A): In classification problems, precision should always be maximized over recall
Reason (R): Recall is independent of false negatives
Assertion (A): In classification problems, precision should always be maximized over recall
Reason (R): Recall is independent of false negatives
Solution
Consider the following code snippet:

Which employees are included in filtered_df?
Which employees are included in filtered_df?
Solution
Inscript
What is the output of the following code? (Enter upto 2 decimals)

What is the output of the following code? (Enter upto 2 decimals)
Solution
Consider the following adaboost models:

Which of the following statements are MOST accurate?
Which of the following statements are MOST accurate?
Solution
Consider the following code snippet:

Which of the following statements are true?
Which of the following statements are true?
Solution
Consider the following Python code snippet used for basic image processing and answer the question that follows:

Which of the following statements are False?
Which of the following statements are False?
Solution
Identify which of the following lines (marked in comments) contain errors in the given code snippet:

Solution
Inscript
Consider the following code snippet:

What is the predicted class for the test datapoint?
Consider the following code snippet:
What is the predicted class for the test datapoint?
Solution
Inscript
Consider the following code snippet and answer the question that follows:

Enter the value obtained as output
Consider the following code snippet and answer the question that follows:
Enter the value obtained as output
Solution
Inscript
Consider the following lists containing the true values and the predicted values.

Calculate the f1_score for class 1. (Answer up to 2 decimals)
Consider the following lists containing the true values and the predicted values.
Calculate the f1_score for class 1. (Answer up to 2 decimals)
Solution
Inscript
Consider the following code snippet for a multi-class classification problem with three classes: 0, 1, and 2. The ground-truth labels are stored in
, and the predicted labels are stored in
.

What is the precision score for class 1?
Consider the following code snippet for a multi-class classification problem with three classes: 0, 1, and 2. The ground-truth labels are stored in
What is the precision score for class 1?
Solution
Which of the following transformations are commonly used as Data Augmentation techniques?
Solution
Analyze the following code snippet:

Which of the following statements are correct?
Which of the following statements are correct?
Solution
Which of the following statements regarding Tfidf Vectorizer is true?
Solution
Consider the following code snippet:

Identify the correct code snippet/s to retrive only employees from departments where the average salary > 65000.
Identify the correct code snippet/s to retrive only employees from departments where the average salary > 65000.
Solution
Select all the false statements amongst the given statements:
Solution
Which of the following implementations of LogisticRgression cannot be used to tackle multinomial multiclass problems?
Solution
What is the range of the metric that is being calculated by the following code snippet?

Solution
Consider the following cross validation strategy:

What does the above mentioned cross val strategy do?
What does the above mentioned cross val strategy do?
Solution
Consider the given 2 different lasso regression models trained on the same dataset:

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?
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?
Solution
Comprehension Passage
Consider the following dataset X with 6 samples and 3 features and answer the given

Inscript
What is the sum of all values of the first column of
? (Round off to two decimal places)
What is the sum of all values of the first column of
Solution
Comprehension Passage
Consider the following dataset X with 6 samples and 3 features and answer the given

Inscript
What is the output obtained while running
?
What is the output obtained while running
Solution
We create the following ml pipeline:

Which of the following statements is true?
Which of the following statements is true?
Solution
Shape
Thickness [ / ]
3
All colors