Indian Institute of Technology Madras
BS Degree Programme · Examination & Study Paper
Machine Learning Practice
Most repeated questions
Examination Instructions & Guidelines
- Solve on notebook/paper first before checking solutions.
- MCQ: Exactly 1 option is correct. Negative marking applies.
- MSQ: One or more options correct. Select all to score.
- NAT: Numerical response. No negative marking.
- Scientific calculator allowed for all calculations.
- Official answer key is sealed at the end of this sheet.
Type 1 · asked 4 times · Recommender systems
Compute the values X and Y in the recommender data table
Read the passage below, then answer Q1–Q2

Based on the above data, answer the given subquestions.
Q1NAT1 Mark·Write the numberEnd Term · 31 Aug 2025 (AN)Key ↓Calculate and enter the value of X (truncated to two decimal places).
Your answer:- Q2NAT1 Mark·Write the numberEnd Term · 31 Aug 2025 (AN)Key ↓
Calculate and enter the value of Y (truncated to two decimal places).
Your answer: Read the passage below, then answer Q3–Q4

Based on the above data, answer the given subquestions.
Q3NAT1 Mark·Write the numberEnd Term · 31 Aug 2025 (FN)Key ↓
Your answer:- Q4NAT2 Marks·Write the numberEnd Term · 31 Aug 2025 (FN)Key ↓
Your answer:
Type 2 · asked 3 times · Linear regression & SGD
Explain how the learning_rate setting behaves in SGDRegressor
- Q5MCQ2 Marks·Choose one optionEnd Term · 22 Dec 2024 (AN)Key ↓

- AIt adjusts the learning rate based on the number of iterations.
- BIt defines the initial value for the learning rate and keeps it constant throughout training.
- CIt determines the maximum step size allowed during training.
- DIt specifies the fraction of the dataset used for each step in the stochastic gradient descent.
- Q6MSQ2 Marks·Choose all correct optionsEnd Term · 31 Aug 2025 (AN)Key ↓

- A

- B

- C

- D

- A
- Q7MSQ2 Marks·Choose all correct optionsEnd Term · 31 Aug 2025 (FN)Key ↓

- A

- B

- C

- D

- A
Type 3 · asked 3 times · Pandas data loading & cleaning
Pandas: drop rows with missing values in given columns
- Q8MCQ2 Marks·Choose one optionEnd Term · 22 Dec 2024 (AN)Key ↓
You have loaded a dataset with 1000 samples and 20 features into a Pandas DataFrame. Some samples have missing values for a few features. If you want to remove rows with fewer than 15 non-null values, what method would you use?
- A

- B

- C

- D

- E

- A
Read the passage below, then answer Q9

Based on the above data, answer the given subquestions.
Q9MCQ2 Marks·Choose one optionEnd Term · 31 Aug 2025 (AN)Key ↓
- A

- B

- C

- D

- A
Read the passage below, then answer Q10

Based on the above data, answer the given subquestions.
Q10MCQ2 Marks·Choose one optionEnd Term · 31 Aug 2025 (FN)Key ↓
- A

- B

- C

- D

- A
Type 4 · asked 3 times · Model evaluation metrics
Choose valid scoring metric strings for cross-validation or grid search
- Q11MCQ3 Marks·Choose one optionEnd Term · 22 Dec 2024 (AN)Key ↓

- A

- B

- C

- D

- A
Read the passage below, then answer Q12

Based on the above data, answer the given subquestions.
Q12MSQ2 Marks·Choose all correct optionsEnd Term · 31 Aug 2025 (AN)Key ↓
- A

- B

- C

- D

- A
Read the passage below, then answer Q13

Based on the above data, answer the given subquestions.
Q13MSQ2 Marks·Choose all correct optionsEnd Term · 31 Aug 2025 (FN)Key ↓
- A

- B

- C

- D

- A
Type 5 · asked 2 times · Model evaluation metrics
Compute the mean absolute error for given y_true and y_pred
Type 6 · asked 2 times · Cross-validation & hyperparameter search
Count how many models cross_val_score trains for a given CV splitter
Type 7 · asked 2 times · Neural networks (MLP)
Pick the correct MLPClassifier code for given hyperparameters
Type 8 · asked 2 times · K-means clustering
Pick the correct KMeans code for given clusters, init and n_init
Type 9 · asked 2 times · Preprocessing, features & pipelines
Pick the correct pipeline: SimpleImputer followed by a scaler
Type 10 · asked 2 times · Preprocessing, features & pipelines
Benefits of caching with the memory parameter in a Pipeline
- Q24MSQ2 Marks·Choose all correct optionsEnd Term · 31 Aug 2025 (AN)Key ↓

- ASaves computation time by reusing results of expensive transformations when inputs and parameters have not changed.
- BHelps speed up repeated runs of cross-validation involving the same transformation steps.
- CReduces CPU usage by running transformations in parallel threads automatically.
- DImproves efficiency in hyperparameter search by avoiding redundant computations in pipeline steps.
- EGuarantees better generalization performance on the test set.
- Q25MSQ2 Marks·Choose all correct optionsEnd Term · 31 Aug 2025 (FN)Key ↓

- A

- B

- C

- D

- E

- A
Type 11 · asked 2 times · K-means clustering
True statements about the elbow method in KMeans
- Q26MSQ2 Marks·Choose all correct optionsEnd Term · 31 Aug 2025 (AN)Key ↓

- AThe elbow method involves plotting the number of clusters against the inertia and identifying a point where the decrease in inertia slows down.
- BThe elbow point represents the cluster count beyond which additional clusters do not significantly improve the model fit.
- CThe metric used in the elbow method is the silhouette score.
- DThe elbow point is always the smallest number of clusters in the plot.
- EThe elbow method may sometimes be inconclusive if no clear bend is visible in the curve.
- Q27MSQ2 Marks·Choose all correct optionsEnd Term · 31 Aug 2025 (FN)Key ↓

- AIt helps determine the optimal number of clusters by plotting the number of clusters vs. inertia (within-cluster sum of squares).
- BThe ”elbow point” is where adding more clusters yields a significantly larger reduction in inertia.
- CThe ”elbow point” is where adding more clusters yields diminishing returns in reducing inertia.
- DIt always produces a clear and unambiguous elbow point.
- EIt can be visualized using a plot of number of clusters vs. distortion score.
Type 12 · asked 2 times · Text, image & time-series data
Build the document-term matrix from a text vectorizer and count its values
Type 13 · asked 2 times · Pandas data loading & cleaning
Pandas: select rows by a condition on columns
Read the passage below, then answer Q30

Based on the above data, answer the given subquestions.
Q30MSQ1 Mark·Choose all correct optionsEnd Term · 31 Aug 2025 (AN)Key ↓
- A

- B

- C

- D

- A
Read the passage below, then answer Q31

Based on the above data, answer the given subquestions.
Q31MSQ1 Mark·Choose all correct optionsEnd Term · 31 Aug 2025 (FN)Key ↓
- A

- B

- C

- D

- A
Type 14 · asked 2 times · Pandas data loading & cleaning
Pandas: create a new column from two columns with missing values
Read the passage below, then answer Q32

Based on the above data, answer the given subquestions.
Q32MSQ2 Marks·Choose all correct optionsEnd Term · 31 Aug 2025 (AN)Key ↓
- A

- B

- C

- D

- A
Read the passage below, then answer Q33

Based on the above data, answer the given subquestions.
Q33MSQ2 Marks·Choose all correct optionsEnd Term · 31 Aug 2025 (FN)Key ↓
- A

- B

- C

- D

- A
Type 15 · asked 2 times · Cross-validation & hyperparameter search
Grid search: choose valid loss/criterion values so all fits run
Read the passage below, then answer Q34

Based on the above data, answer the given subquestions.
Q34MCQ2 Marks·Choose one optionEnd Term · 31 Aug 2025 (AN)Key ↓select the appropriate values for A and B in the loss parameter to ensure that all model fits execute successfully.
- A

- B

- C

- D

- A
Read the passage below, then answer Q35

Based on the above data, answer the given subquestions.
Q35MCQ2 Marks·Choose one optionEnd Term · 31 Aug 2025 (FN)Key ↓
- A

- B

- C

- D

- A
Type 16 · asked 2 times · Cross-validation & hyperparameter search
Count how many models GridSearchCV fits
Read the passage below, then answer Q36

Based on the above data, answer the given subquestions.
Q36NAT1 Mark·Write the numberEnd Term · 31 Aug 2025 (AN)Key ↓
Your answer:Read the passage below, then answer Q37

Based on the above data, answer the given subquestions.
Q37NAT1 Mark·Write the numberEnd Term · 31 Aug 2025 (FN)Key ↓
Your answer:
Type 17 · asked 2 times · Recommender systems
Predict a missing rating with user-user collaborative filtering
Read the passage below, then answer Q38

Based on the above data, answer the given subquestions.
Q38NAT3 Marks·Write the numberEnd Term · 31 Aug 2025 (AN)Key ↓
Your answer:Read the passage below, then answer Q39

Based on the above data, answer the given subquestions.
Q39NAT2 Marks·Write the numberEnd Term · 31 Aug 2025 (FN)Key ↓
Your answer:
Type 18 · asked 2 times · Classifiers: logistic, NB, KNN & more
Pick the right LogisticRegression solver for the setting
Official KeyMaster Answer Key & Explanations
Official answer keys from IIT Madras BS past papers. Click any question to review.
Reveal KeyCollapse Key
Master Answer Key & Explanations
Official answer keys from IIT Madras BS past papers. Click any question to review.






































