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)
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
Solution
Solution
You’re working with a dataset that consists of training data (‘train_data’) and test data (‘test_data’). The dataset contains both numerical and categorical features. You decide to employ a combination of ‘StandardScaler’ (for numerical columns) and ‘OneHotEncoder’ (for categorical columns) from ‘scikit-learn’ using the ‘ColumnTransformer’ utility. Which of the following actions is MOST likely to introduce data leakage or potential modeling issues?
Solution
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?
Solution
Solution
Imagine you’ve loaded a dataset with 1000 samples into a Pandas DataFrame, and each sample has 30 features. Unfortunately, some samples have missing values for a few features, and you want to remove samples with more than 3 null values present. Please select the method to
accomplish this task.?
accomplish this task.?
Solution
Choose the options with respect to the given statements:
Statement1 : To apply various sklearn methods from in series on a column we should use Pipeline.
Statement2 : To apply various sklearn methods on various columns in parallel we should use ColumnTransformer.
Statement1 : To apply various sklearn methods from in series on a column we should use Pipeline.
Statement2 : To apply various sklearn methods on various columns in parallel we should use ColumnTransformer.
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Which of the following code blocks will correctly take the learning rate as ‘optimal’ ?
Solution
While performing exploratory data analysis (EDA) on a dataset, you come across some columns with a high percentage of missing values. Along with that, a few categorical columns have a large number of unique categories. Which of the following actions would typically be a recommended initial approach during EDA? (Choose multiple correct options.)
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Comprehension Passage
Go through the code snippet given below and answer the given subquestions.

Which of the following options will be the output of the given code?
Solution
Comprehension Passage
Go through the code snippet given below and answer the given subquestions.

Which of the following could be the possible output of print(reg.score())?
Solution
Shape
Thickness [ / ]
3
All colors