ML Study Hub

Home / MLP / Week 12 / Real questions

MLP week 12 - real exam questions

58 questions pulled from past papers whose wording matches this week's topics, newest first, duplicates removed. Pick your answers, then press Check answers. Figures and answer keys are the originals.

Elapsed 00:00
MLP End Term · 13 Sep 2026 · open the full paper
Practice 1SA3 marks
A K-Means algorithm has a cluster centroid: C=(6,6) During the next iteration, a new data point: (10,10) is assigned to this cluster. Before the update step, this cluster contained 4 data points. The individual points are not available, but the centroid of the cluster before adding the new point was: (6,6) After adding the new point and performing the centroid update step, the new centroid becomes: (6.8,6.8) What is the sum of the coordinates of the original 4 data points combined?
MLP End Term · 13 Sep 2026 · open the full paper
Practice 2MSQ4 marksselect all that apply
Consider the following code: question figure Select the correct statements:
  1. The algorithm starts by selecting two random centroids and iteratively updates them.
  2. The algorithm initially treats every point as a separate cluster and repeatedly merges clusters based on the complete linkage criterion.
  3. The final labels represent the two groups formed after cutting the dendrogram to obtain two clusters.
  4. Changing n_clusters=2 to n_clusters=3 will change the entire merging process from the first step.
  5. The output labels will always be [0,0,0,1,1] because the first three points are closer to each other.
MLP End Term · 13 Sep 2026 · open the full paper
Practice 3MCQ3 marks
After training a KMeans clustering algorithm on a dataset we find a data point is sitting exactly on or extremely close to the decision boundary between two neighboring clusters. Which of the following values will the silhouette score be close / equal to?
  1. 1
  2. 0
  3. -1
  4. infinity
MLP End Term · 13 Sep 2026 · open the full paper
Practice 4MCQ4 marks
Four data points are given: A=(1,1), B=(2,2), C=(8,8), D=(10,10) A hierarchical agglomerative clustering algorithm using single linkage and Euclidean distance is applied. Initially, each point is considered as an individual cluster. Which two clusters will be merged in the first step?
  1. A and B
  2. C and D
  3. A and D
  4. B and C
MLP End Term · 13 Sep 2026 · open the full paper
Practice 5MSQ3 marksselect all that apply
Consider the following implementation of PCA: question figure Which of the following are correct?
  1. X_pca.shape[1] is equal to the original number of features.
  2. The sum of pca.explained_variance_ratio_ is at least 0.95.
  3. len(pca.explained_variance_ratio_) is equal to X_pca.shape[1].
  4. The principal components correspond to the original features with the highest variance.
MLP End Term · 13 Sep 2026 · open the full paper
Practice 6MSQ4 marksselect all that apply
A company uses K-Means clustering to divide its customers into 4 groups based on their purchasing behavior. After training the model, the data science team observes the following: Two different runs of K-Means on the same dataset produce different customer groups. One cluster contains customers that are much farther away from their assigned cluster center compared to other clusters. Which of the following statements are most likely to explain these observations?
  1. K-Means can converge to different solutions because the initial placement of cluster centroids can affect the final clusters.
  2. The cluster with customers far from its centroid may indicate that the chosen value of K does not represent the natural grouping structure of the data.
  3. K-Means guarantees finding the globally optimal clustering solution regardless of initialization.
  4. K-Means assigns clusters by maximizing the distance between points within the same cluster.
MLP End Term · 10 May 2026 · open the full paper
Practice 7MSQ5 marksselect all that apply
Consider the following code snippet: question figure Which of the following statements are true?
  1. If the model reaches convergence in under 20 iterations, it is guaranteed that every data point is mapped to its nearest centroid.
  2. The value for number of clusters is a hyperparameter that can be validated using a silhouette score or the elbow method.
  3. The algorithm will execute a total of 20 independent runs using different starting centroid seed
  4. The initialization process will select 9 data points entirely at random to serve as the starting centroids.
MLP End Term · 21 Dec 2025 · open the full paper
Practice 8MCQ2 marks
Performing singular value decomposition on a user-item matrix aims to:
  1. Increase sparsity
  2. Reduce dimensionality
  3. Delete user history
  4. Improve data imbalance
MLP End Term · 21 Dec 2025 · open the full paper
Practice 9MCQ2 marks
Which of the following can be used to evaluate the outputs of the KNNClassifier?
  1. Negative Mean Absolute Error
  2. Silhoutte Score
  3. F1 Score
  4. R2 Score
  5. Inertia
MLP End Term · 21 Dec 2025 · open the full paper
Practice 10MSQ2 marksselect all that apply
Which of the following algorithms don't get impacted by feature scaling?
  1. LinearRegression
  2. KNN
  3. KMeans
  4. DecisionTree
MLP End Term · 21 Dec 2025 · open the full paper
Practice 11MCQ1 mark
Which of the following statements about Hierarchical Agglomerative Clustering is TRUE?
  1. It starts with all data points in a single cluster and recursively splits them.
  2. It requires the number of clusters to be specified before training.
  3. It repeatedly merges the two closest clusters until a stopping condition is met.
  4. It updates cluster centroids after each merge.
MLP End Term · 21 Dec 2025 · open the full paper
Practice 12MCQ1 mark
You are using make_blobs to generate synthetic data for clustering: question figure What will the output of the above clustering show?
  1. One cluster containing all points.
  2. It will raise an error since n_samples is not divisible by centers
  3. Two clusters, but not necessarily equal-sized; distribution of samples per cluster may vary.
  4. Two clusters with exactly 4 points each.
MLP End Term · 21 Dec 2025 · open the full paper
Practice 13MCQ2 marks
You are given a dataset where each row represents a customer using two numerical features. You apply K-means clustering with K=3 clusters using the following code: question figure What does the variable labels represent after the model is fitted?
  1. The values of the input features used for clustering.
  2. The cluster index assigned to each data point.
  3. The total number of clusters formed.
  4. The coordinates of the cluster centroids.
MLP End Term · 21 Dec 2025 · open the full paper
Practice 14MCQ2 marks
You are using make_blobs to generate synthetic data for clustering: question figure What will the output of the above clustering code?
  1. One cluster containing all points.
  2. It will raise an error since n_samples is not divisible by centers
  3. Two clusters, but not necessarily equal-sized; distribution of samples per cluster may vary.
  4. Two clusters with exactly 4 points each.
MLP End Term · 21 Dec 2025 · open the full paper
Practice 15MSQ1 markselect all that apply
Which of the following can be used to evaluate the outputs of the K-Means algorithm?
  1. Negative Mean Absolute Error
  2. Silhoutte Score
  3. F1 Score
  4. R2 Score
  5. Inertia
MLP End Term · 31 Aug 2025 · open the full paper
Practice 16MSQ2 marksselect all that apply
question figure
  1. The elbow method involves plotting the number of clusters against the inertiaand identifying a point where the decrease in inertia slows down.
  2. The elbow point represents the cluster count beyond which additional clustersdo not significantly improve the model fit.
  3. The metric used in the elbow method is the silhouette score.
  4. The elbow point is always the smallest number of clusters in the plot.
  5. The elbow method may sometimes be inconclusive if no clear bend is visible inthe curve.
MLP End Term · 13 Apr 2025 · open the full paper
Practice 17MCQ2 marks
question figure
  1. Convert images to grayscale.
  2. Scaling the data using Min-Max Scaling
  3. Apply PCA to reduce feature dimensions.
  4. One-Hot encode the target labels (digits 0-9)
MLP End Term · 13 Apr 2025 · open the full paper
Practice 18MSQ2 marksselect all that apply
In top-down (divisive) hierarchical clustering, clusters are recursively split until each data point is its own cluster. The choice of a distance metric plays a crucial role in determining the quality of clustering. Which of the following distance (similarity) metrics are commonly used in hierarchical clustering?
  1. Euclidean Distance
  2. Manhattan Distance
  3. Jaccard Similarity
  4. Cosine Distance
MLP End Term · 13 Apr 2025 · open the full paper
Practice 19MSQ2 marksselect all that apply
In top-down hierarchical clustering, clusters are recursively split until each data point is its own cluster. The choice of a distance metric plays a crucial role in determining the quality of clustering. Which of the following distance (similarity) metrics are commonly used in hierarchical clustering?
  1. Euclidean Distance
  2. Tree Distance
  3. Centroid Distance
  4. Minkowski Distance
MLP End Term · 22 Dec 2024 · open the full paper
Practice 20MCQ3 marks
question figure
  1. Performs hierarchical clustering and outputs cluster distances.
  2. Outputs the silhouette score for the data points.
  3. Groups data points into 2 clusters and outputs the labels of the clusters foreach data point.
  4. Reduces the dimensionality of the dataset to 2 dimensions.
MLP End Term · 22 Dec 2024 · open the full paper
Practice 21MCQ2 marks
Which of the following is NOT a hyperparameter in machine learning?
  1. Learning rate in gradient descent
  2. Bias in a linear regression model
  3. Number of clusters in k-means
  4. Minimum leaf size in decision trees
MLP End Term · 22 Dec 2024 · open the full paper
Practice 22MSQ3 marksselect all that apply
What parameters of the k-means clustering algorithm should be tuned to optimize the model performance?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
MLP End Term · 22 Dec 2024 · open the full paper
Practice 23MSQ3 marksselect all that apply
Consider the following options for evaluating the optimal number of clusters in k-means. Which approaches are valid?
  1. Using an Elbow Curve.
  2. Computing Silhouette Scores.
  3. Cross-validation with multiple folds.
  4. All of these
MLP End Term · 22 Dec 2024 · open the full paper
Practice 24MSQ3 marksselect all that apply
Which of the following statements are correct about the Silhouette Coefficient?
  1. It measures how well each sample is clustered.
  2. A higher score indicates better-defined clusters.
  3. It requires ground truth labels (target variable) to compute.
  4. It can be used to evaluate the quality of any clustering algorithm.
MLP End Term · 22 Dec 2024 · open the full paper
Practice 25MCQ2 marks
question figure
  1. The total amount spent by each customer.
  2. The cluster assignments indicating which group each customer belongs to.
  3. The number of items purchased by each customer.
  4. The centroid coordinates of the clusters formed.
MLP End Term · 22 Dec 2024 · open the full paper
Practice 26MCQ3 marks
question figure
  1. Outputs the number of iterations and the final silhouette score of the clusters.
  2. Outputs the cluster labels for each data point and the maximum distancebetween clusters.
  3. Outputs the coordinates of the cluster centroids and the number of points ineach cluster.
  4. Outputs the coordinates of the cluster centroids and the sum of squareddistances of samples to their closest cluster center.
MLP End Term · 22 Dec 2024 · open the full paper
Practice 27MSQ2 marksselect all that apply
Which of the following are techniques for dimensionality reduction?
  1. PCA (Principal Component Analysis)
  2. StandardScaler
  3. Lasso Regression
  4. t-SNE (t-distributed Stochastic Neighbor Embedding)
MLP End Term · 01 Sep 2024 · open the full paper
Practice 28MCQ3 marks
How does agglomerative clustering handle outliers?
  1. It ignores outliers during the clustering process.
  2. It assigns outliers to the nearest cluster.
  3. It creates separate clusters for outliers.
  4. It removes outliers from the dataset before clustering.
MLP End Term · 01 Sep 2024 · open the full paper
Practice 29MCQ3 marks
What is agglomerative clustering?
  1. A hierarchical clustering technique that starts with each data point as itscluster and merges the closest clusters iteratively.
  2. A method for partitioning data into a predefined number of clusters.
  3. A clustering algorithm that uses centroids to iteratively assign data points toclusters.
  4. A dimensionality reduction technique that projects data onto a lower-dimensional space.
MLP End Term · 01 Sep 2024 · open the full paper
Practice 30MCQ3 marks
question figure
  1. The distance between cluster centroids
  2. The number of clusters formed
  3. The within-cluster sum of squared distances
  4. The silhouette coefficient
MLP End Term · 01 Sep 2024 · open the full paper
Practice 31MSQ3 marksselect all that apply
Which of the following are correct for Kmeans clustering algorithm?
  1. It only finds spherical clusters.
  2. The output of the algorithms depends upon initial cluster centroids.
  3. It can automatically detect most appropriate value of k.
  4. None of these.
MLP End Term · 01 Sep 2024 · open the full paper
Practice 32MCQ2 marks
Which of the following is true for a hard margin SVM algorithm ?
  1. It does not create hyperplanes as a decision boundary
  2. It will correctly classify all the data point if the data is linearly separable
  3. It is robust to outliers
  4. It is mostly used for clustering the data
MLP End Term · 01 Sep 2024 · open the full paper
Practice 33MCQ4 marks
question figure
  1. Plotting the sum of the squared distances of samples to their closest clustercenter
  2. by Changing the distance metric for KMeans
  3. By initialising clustering centroids very far from each other
  4. All of these
MLP Quiz 2 · 04 Aug 2024 · open the full paper
Practice 34MCQ2 marks
What type of classification problem is the Perceptron algorithm best suited for?
  1. Linearly separable binary classification problems.
  2. Non-linear classification problems.
  3. Regression problems.
  4. Unsupervised Learning Problems
MLP End Term · 28 Apr 2024 · open the full paper
Practice 35MCQ3 marks
You’re working on a dataset containing customer purchase data, and you want to segment the customers into distinct groups based on their purchasing behavior. Each data point represents a customer and includes features like “Total Amount Spent” and “Number of Items Purchased.” Which algorithm is suitable for this scenario?
  1. Linear Regression
  2. Decision Tree
  3. K-means Clustering
  4. Support Vector Machine
  5. None of these
MLP End Term · 28 Apr 2024 · open the full paper
Practice 36MCQ3 marks
What initialization method is best in KMeans to select initial cluster centroids?
  1. Random initialization
  2. K-means++ initialization
  3. Hierarchical agglomerative initialization
  4. Weighted initialization
MLP End Term · 28 Apr 2024 · open the full paper
Practice 37MCQ3 marks
question figure
  1. The distance between cluster centroids
  2. The number of clusters formed
  3. Sum of squared distances of samples to their closest cluster center.
  4. The silhouette coefficient
MLP End Term · 28 Apr 2024 · open the full paper
Practice 38MSQ3 marksselect all that apply
Which of the following approaches is(are) helpful to find a good value for k in k−means clustering algorithm?
  1. Plotting an Elbow curve.
  2. Using classifiers before making clusters.
  3. Plotting Silhouette coefficient for various values of k.
  4. Using k-fold cross validation
MLP Quiz 2 · 24 Mar 2024 · open the full paper
Practice 39MSQ3 marksselect all that apply
Which of the following option(s) are correct for the precision-recall curve
  1. A high area under the curve represents both high recall and high precision.
  2. The precision-recall curve shows the trade-off between precision and recall fordifferent threshold values.
  3. The precision-recall curve used to evaluate unsupervised algorithm forimbalanced clustered data.
  4. None of these
MLP End Term · 24 Dec 2023 · open the full paper
Practice 40MCQ2 marks
Which of the following is/are Clustering Method.
  1. Connectivity-based Clustering
  2. Centroids-based Clustering
  3. Density-based Clustering
  4. All of them
MLP End Term · 24 Dec 2023 · open the full paper
Practice 41MCQ2 marks
You’re working with a large image and want to group similarly coloured segments in the image together. No other information is provided with the image. Which of the following techniques will you use to accomplish the task?
  1. Supervised learning
  2. Unsupervised learning
  3. Reinforcement learning
  4. None of these
MLP End Term · 24 Dec 2023 · open the full paper
Practice 42MSQ2 marksselect all that apply
Which of the following are true about multilayer perceptron model in sklearn?
  1. It is an iterative algorithm/model.
  2. It can be used to capture non-linear relationships between features and labels.
  3. It can be used for regression as well as classification.
  4. It can be used for clustering.
  5. None of these
MLP End Term · 24 Dec 2023 · open the full paper
Practice 43MSQ3 marksselect all that apply
Choose the correct statements.
  1. Hierarchical agglomerative clustering does not need the initial number ofclusters to group the data.
  2. K-means clustering does not need the number of clusters to group the data.
  3. K-means clustering can be agglomerative or divisive.
  4. Hierarchical clustering can be agglomerative or divisive.
  5. None of these
MLP Quiz 1 · 29 Oct 2023 · open the full paper
Practice 44MSQ3 marksselect all that apply
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.)
  1. Visualizing the data distribution of columns to understand their characteristics.
  2. Using dimensionality reduction techniques, like PCA, to handle columns withmany unique categories.
  3. Visualizing the distribution of missing values across the dataset to ascertainany patterns or systematic missingness.
  4. Removing columns that have more than 90% missing values without anycontext.
MLP End Term · 03 Sep 2023 · open the full paper
Practice 45MCQ2 marks
You’re analyzing a dataset of customer transaction histories. Each transaction includes the purchase amount and timestamp. You want to identify groups of customers based on their spending behavior. Which clustering approach would be most appropriate for this scenario?
  1. Distribution-based Clustering
  2. Density-based Clustering
MLP End Term · 03 Sep 2023 · open the full paper
Practice 46MCQ4 marks
You’re working with a dataset of customer purchase behavior, including attributes “Total Amount Spent” and “Number of Items Purchased.” You decide to use K-means clustering to segment customers into groups based on these features. The following code snippet demonstrates the K-means clustering process: question figure You’re working with a dataset of customer purchase behavior, including attributes “Total Amount Spent” and “Number of Items Purchased.” You decide to use K-means clustering to segment customers into groups based on these features. The following code snippet demonstrates the K-means clustering process:
  1. The total amount spent by each customer.
  2. The cluster assignments indicating which group each customer belongs to.
  3. The number of items purchased by each customer.
  4. The centroid coordinates of the clusters formed.
MLP End Term · 30 Apr 2023 · open the full paper
Practice 47MCQ2 marks
______________ generates a bunch of normally-distributed clusters of points with specific mean and standard deviations for each cluster.
  1. sklearn.datasets.make_clusters()
  2. sklearn.datasets.make_centers()
  3. sklearn.datasets.make_normal_clusters()
  4. sklearn.datasets.make_blobs()
MLP End Term · 30 Apr 2023 · open the full paper
Practice 48MCQ4 marks
Suppose that we have 10000 samples in a dataset. Suppose further we use the K − means algorithm to find clusters in the dataset. Then, the statement that K-Means algorithm always converges with zero inertia (or zero Sums Square Error) for some value of K is
  1. Always True
  2. Always False
  3. True, sometimes
MLP End Term · 30 Apr 2023 · open the full paper
Practice 49MCQ4 marks
Suppose that we use k-means clustering for a dataset having 100 samples. The initial centroids for k clusters can be initialized in multiple ways. One such as way is shown below question figure Suppose that we use k-means clustering for a dataset having 100 samples. The initial centroids for k clusters can be initialized in multiple ways. One such as way is shown below
  1. 20 centroids are randomly initialized 10 times
  2. 10 centroids are randomly initialized 20 times
  3. 20 samples in the dataset are selected as initialization point such that they areat least 10 units away from each other
  4. 10 samples in the dataset are selected as initialization point such that they areat least 20 units away from each other
MLP End Term · 30 Apr 2023 · open the full paper
Practice 50MSQ4 marksselect all that apply
The code given below attempts to find the clusters in the dataset, X using the K-means algorithm. question figure The code given below attempts to find the clusters in the dataset, X using the K-means algorithm.
  1. The code attempts to find 2 clusters in the given dataset
  2. The dataset X can be visualized in the Euclidean space
  3. The code raises an error upon execution
  4. The code gets executed without an error upon execution
MLP End Term · 11 Dec 2022 · open the full paper
Practice 51MCQ2 marks
Which of the following is/are Correct for K-means algorithm.
  1. The algorithm is sensitive to outliers.
  2. It terminates at a local optimum if SSE is used.
  3. k-means is considered to be a linear algorithm.
  4. All of these
MLP End Term · 11 Dec 2022 · open the full paper
Practice 52MCQ2 marks
Hierarchical Clustering can also be called:
  1. Centroid Based Clustering
  2. Distribution-based Clustering
  3. Density-based Clustering
  4. Connectivity-Based Clustering
MLP End Term · 11 Dec 2022 · open the full paper
Practice 53MCQ3 marks
Consider following statements regarding a decision tree model? 1. It is a parametric model. 2. It has a tendency to overfit if allowed to grow unconditionally. 3. It can be used for regression, classification and clustering problems. 4. It is one of the easiest machine learning models to interpret. 5. For classification problems, decision tree’s loss function is same as evaluation metric. Choose the option with all the correct statements:
  1. 2, 3
  2. 1, 3, 5
  3. 3, 5
  4. 2, 4
  5. 1, 3, 4
  6. 1, 2, 4
MLP End Term · 11 Dec 2022 · open the full paper
Practice 54MCQ2 marks
Consider following statements regarding a decision tree model: 1. It is a non-parametric model. 2. It has a tendency to underfit if allowed to grow unconditionally. 3. It can be used for regression and classification problems only, but not for clustering. 4. It is one of the most difficult machine learning models to interpret. 5. For regression problems, decision tree’s loss function and evaluation metric can be same. Choose the option with all the correct statements:
  1. 1, 3, 5
  2. 1, 3
  3. 3, 5
  4. 2, 4
  5. 1, 3, 4
  6. 1, 2, 4
MLP End Term · 11 Dec 2022 · open the full paper
Practice 55MCQ2 marks
Consider following statements: 1. The K-means algorithm aims to choose centroids that minimise the inertia. 2. The K-Means algorithm requires the number of clusters to be specified Choose the correct option of the following:
  1. Both statement 1 and 2 are correct.
  2. Statement 1 is correct but statement 2 is incorrect.
  3. Statement 1 is incorrect but statement 2 is correct.
  4. Both statement 1 and 2 are incorrect.
MLP End Term · 11 Dec 2022 · open the full paper
Practice 56MCQ2 marks
Hierarchical Clustering can also be called as
  1. Centroid Based Clustering
  2. Distribution-based Clustering
  3. Density-based Clustering
  4. Connectivity-Based Clustering
MLP Quiz 1 · 16 Oct 2022 · open the full paper
Practice 57MCQ1 mark
Which of the following options represent the possible type of machine learning algorithm does the cluster plot shown in Figure 2 demonstrate? question figure Which of the following options represent the possible type of machine learning algorithm does the cluster plot shown in Figure 2 demonstrate?
  1. K-means clustering
  2. Linear regression
  3. Logistic regression
  4. PCA
MLP End Term · 07 Aug 2022 · open the full paper
Practice 58MCQ2 marks
Which of the following options is correct explained variance score for the following code snippet applying PCA technique. question figure Which of the following options is correct explained variance score for the following code snippet applying PCA technique.
  1. [1. 1.]
  2. [1. 0.]
  3. [0. 1.]
  4. [0. 0.]