Unit 4: Unsupervised Learning - Practice Quiz

CSE252 — Introduction To Artificial Intelligence And Machine Learning 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is the main goal of clustering?

Clustering (K-Means Clustering, Hierarchical Clustering, Concept of DBSCAN) Easy
A. Predict labeled outcomes
B. Calculate exact probabilities
C. Group similar data points
D. Sort data alphabetically

2 In K-Means clustering, what does represent?

Clustering (K-Means Clustering, Hierarchical Clustering, Concept of DBSCAN) Easy
A. Number of features
B. Number of clusters
C. Number of iterations
D. Number of outliers

3 What is a centroid in K-Means clustering?

Clustering (K-Means Clustering, Hierarchical Clustering, Concept of DBSCAN) Easy
A. The size of a cluster
B. The label of a cluster
C. The boundary of a cluster
D. The center of a cluster

4 How does K-Means usually assign a data point to a cluster?

Clustering (K-Means Clustering, Hierarchical Clustering, Concept of DBSCAN) Easy
A. By choosing the nearest centroid
B. By choosing the first centroid
C. By choosing the largest cluster
D. By choosing a random label

5 Which diagram commonly displays the result of hierarchical clustering?

Clustering (K-Means Clustering, Hierarchical Clustering, Concept of DBSCAN) Easy
A. Dendrogram
B. Confusion matrix
C. Histogram
D. Scatter matrix

6 What does agglomerative hierarchical clustering do first?

Clustering (K-Means Clustering, Hierarchical Clustering, Concept of DBSCAN) Easy
A. Removes points near the center
B. Places all points in one cluster
C. Assigns labels to every point
D. Treats each point as a cluster

7 What type of clustering algorithm is DBSCAN?

Clustering (K-Means Clustering, Hierarchical Clustering, Concept of DBSCAN) Easy
A. Label-based classification
B. Density-based clustering
C. Centroid-based clustering
D. Rule-based classification

8 How does DBSCAN commonly treat points in sparse regions?

Clustering (K-Means Clustering, Hierarchical Clustering, Concept of DBSCAN) Easy
A. As principal components
B. As noise or outliers
C. As labeled examples
D. As cluster centroids

9 What is the main purpose of dimensionality reduction?

Dimensionality Reduction and Principal Component Analysis Easy
A. Duplicate the available records
B. Reduce the number of features
C. Increase the number of labels
D. Create additional training classes

10 What does PCA stand for?

Dimensionality Reduction and Principal Component Analysis Easy
A. Principal Component Analysis
B. Predictive Category Analysis
C. Principal Classification Algorithm
D. Primary Cluster Assignment

11 What does the first principal component capture?

Dimensionality Reduction and Principal Component Analysis Easy
A. The greatest data variance
B. The lowest feature count
C. The highest class label
D. The smallest cluster size

12 Principal components produced by PCA are typically:

Dimensionality Reduction and Principal Component Analysis Easy
A. Assigned predefined labels
B. Restricted to binary values
C. Identical to one another
D. Uncorrelated with one another

13 How can reducing data to two principal components help a student?

Dimensionality Reduction and Principal Component Analysis Easy
A. It can remove every outlier
B. It can support 2D visualization
C. It can generate class labels
D. It can guarantee perfect accuracy

14 What is the main purpose of association rule mining?

Pattern Discovery (Association Rule Mining, Apriori Algorithm) Easy
A. Assign labels to examples
B. Predict continuous target values
C. Discover relationships among items
D. Compress images into pixels

15 In the rule , what does the arrow indicate?

Pattern Discovery (Association Rule Mining, Apriori Algorithm) Easy
A. Value of equals
B. Feature replaces
C. Occurrence of suggests
D. Cluster contains

16 What does support measure in association rule mining?

Pattern Discovery (Association Rule Mining, Apriori Algorithm) Easy
A. How many labels are available
B. How quickly an algorithm runs
C. How far apart two clusters are
D. How frequently an itemset appears

17 What is the Apriori algorithm mainly used to find?

Pattern Discovery (Association Rule Mining, Apriori Algorithm) Easy
A. Cluster centroids
B. Frequent itemsets
C. Regression coefficients
D. Principal components

18 According to the Apriori principle, if an itemset is frequent, its subsets must be:

Pattern Discovery (Association Rule Mining, Apriori Algorithm) Easy
A. Labeled
B. Frequent
C. Random
D. Empty

19 How can clustering help a robot interpret sensor data?

Unsupervised Learning application in Robotics and Sensor data Easy
A. By replacing every physical sensor
B. By guaranteeing collision avoidance
C. By assigning human-written labels
D. By grouping similar sensor readings

20 Which task is a common unsupervised learning application for sensor data?

Unsupervised Learning application in Robotics and Sensor data Easy
A. Replacing missing hardware parts
B. Programming fixed motor commands
C. Entering labels for each reading
D. Detecting unusual sensor patterns

21 A data analyst applies K-Means clustering with to customer data. After assigning points to clusters, which step occurs next during a standard iteration?

Clustering (K-Means Clustering, Hierarchical Clustering, Concept of DBSCAN) Medium
A. Recalculate each centroid as the mean of its assigned points
B. Randomly remove one cluster
C. Convert every feature into a binary value
D. Add a new centroid for each outlier

22 Why is feature scaling usually important before applying K-Means to variables such as income and age?

Clustering (K-Means Clustering, Hierarchical Clustering, Concept of DBSCAN) Medium
A. It prevents distance from being dominated by large-scale features
B. It guarantees that all clusters contain equal points
C. It makes the number of clusters automatic
D. It removes the need to select initial centroids

23 A hierarchical clustering dendrogram shows that two groups merge only at a very large distance. What does this most likely indicate?

Clustering (K-Means Clustering, Hierarchical Clustering, Concept of DBSCAN) Medium
A. The algorithm used no distance measure
B. The groups are relatively dissimilar
C. The groups are highly similar
D. The groups contain identical observations

24 Which situation is most suitable for DBSCAN rather than K-Means?

Clustering (K-Means Clustering, Hierarchical Clustering, Concept of DBSCAN) Medium
A. All observations must belong to a cluster
B. Clusters are spherical and their number is known
C. Clusters have irregular shapes and contain noise
D. Every cluster must have exactly the same size

25 In DBSCAN, a point has at least the required number of neighbors within the radius . How is this point generally classified?

Clustering (K-Means Clustering, Hierarchical Clustering, Concept of DBSCAN) Medium
A. As a principal component
B. As a core point
C. As a terminal point
D. As a random centroid

26 A dataset contains 50 correlated sensor measurements. What is a primary reason to apply PCA before visualization?

Dimensionality Reduction and Principal Component Analysis Medium
A. To replace missing values with labels
B. To create fewer uncorrelated features
C. To force every feature to have equal variance
D. To guarantee perfect classification accuracy

27 What does the first principal component represent in PCA?

Dimensionality Reduction and Principal Component Analysis Medium
A. The direction with the greatest data variance
B. The average value of every original feature
C. The feature with the smallest numerical range
D. The direction containing only categorical variables

28 Why are features commonly standardized before PCA when they use different units?

Dimensionality Reduction and Principal Component Analysis Medium
A. To increase the original number of dimensions
B. To prevent high-scale features from dominating variance
C. To make every observation identical
D. To ensure the covariance matrix is diagonal initially

29 A PCA model retains three components explaining 72%, 18%, and 5% of the total variance. What percentage of variance is discarded if only these components are retained?

Dimensionality Reduction and Principal Component Analysis Medium
A. 8%
B. 15%
C. 5%
D. 95%

30 Which trade-off is most directly associated with reducing 100 features to 10 principal components?

Dimensionality Reduction and Principal Component Analysis Medium
A. Higher dimensionality with no computational benefit
B. Guaranteed preservation of every original relationship
C. Lower storage with possible information loss
D. More original variables with less interpretability

31 In association rule mining, a rule has support 0.30 and confidence 0.75. What does the confidence value indicate?

Pattern Discovery (Association Rule Mining, Apriori Algorithm) Medium
A. The rule contains seventy-five different items
B. Thirty percent of all transactions contain and
C. Seventy-five percent of transactions containing also contain
D. The rule occurs in seventy-five percent of all possible itemsets

32 A rule has support 0.20 and confidence 0.80. If the support of its antecedent is 0.25, which calculation gives the support of the rule's consequent relationship?

Pattern Discovery (Association Rule Mining, Apriori Algorithm) Medium
A.
B.
C.
D.

33 What is the main purpose of the Apriori property in frequent itemset mining?

Pattern Discovery (Association Rule Mining, Apriori Algorithm) Medium
A. Every subset of a frequent itemset must also be frequent
B. Every itemset must contain at least three products
C. Every rule must have confidence greater than support
D. Every transaction must contain the same number of items

34 If the itemset is below the minimum support threshold, what should Apriori do with any larger candidate containing both and ?

Pattern Discovery (Association Rule Mining, Apriori Algorithm) Medium
A. Prune it because its support cannot exceed that of
B. Evaluate it only after removing the support threshold
C. Replace it with a random two-itemset
D. Retain it because larger itemsets are always stronger

35 A store discovers the rule {bread, butter} {jam}. Which action best uses this pattern?

Pattern Discovery (Association Rule Mining, Apriori Algorithm) Medium
A. Remove jam from all store inventories
B. Treat the rule as proof that bread causes jam purchases
C. Place the three products near one another
D. Reduce the minimum support to zero for every product

36 A robot receives unlabeled readings from temperature, vibration, and motor-current sensors. How can clustering support predictive maintenance?

Unsupervised Learning application in Robotics and Sensor data Medium
A. Group operating states and flag unusual sensor patterns
B. Convert all sensor readings into supervised class labels automatically
C. Guarantee the exact date of every future failure
D. Eliminate the need to collect data during normal operation

37 A mobile robot uses unsupervised learning to group range-sensor readings. What is a reasonable use of the resulting groups?

Unsupervised Learning application in Robotics and Sensor data Medium
A. Guarantee obstacle motion is physically impossible
B. Replace all sensors with a single fixed measurement
C. Determine the correct action without considering robot position
D. Identify recurring environmental structures

38 A robot's accelerometer data is reduced from six dimensions to two using PCA. What is the most likely benefit?

Unsupervised Learning application in Robotics and Sensor data Medium
A. Automatic assignment of human-readable activity labels
B. Preservation of every detail from all six dimensions
C. Simpler visualization of movement patterns
D. Guaranteed removal of all sensor noise

39 A robot records sensor readings during normal operation but has no fault labels. Which unsupervised method is appropriate for detecting possible anomalies?

Unsupervised Learning application in Robotics and Sensor data Medium
A. Train a classifier using randomly invented fault labels
B. Cluster normal readings and identify distant observations
C. Discard all readings that differ from the first reading
D. Use association rules to prove the cause of every anomaly

40 Several robot sensors measure related aspects of the same movement, producing highly correlated features. Why might PCA be useful before clustering?

Unsupervised Learning application in Robotics and Sensor data Medium
A. It converts unsupervised learning into a labeled task
B. It can reduce redundancy and improve distance calculations
C. It ensures that every cluster has identical sensor readings
D. It guarantees that clusters represent physical objects

41 A dataset contains two features: annual income ranging from to and age ranging from to . A k-means model using Euclidean distance is trained without preprocessing. Which outcome is most likely?

Clustering (K-Means Clustering, Hierarchical Clustering, Concept of DBSCAN) Hard
A. Age will dominate because it has fewer unique values
B. Income will dominate because it has a larger numerical scale
C. The initialization will eliminate all scale-related effects
D. Both features will contribute equally after centroid updates

42 In k-means clustering, two clusters become empty after an assignment step. Which response preserves the basic optimization objective most appropriately?

Clustering (K-Means Clustering, Hierarchical Clustering, Concept of DBSCAN) Hard
A. Assign every point randomly to an empty cluster
B. Reinitialize empty centroids using poorly represented points
C. Replace k-means with hierarchical clustering automatically
D. Delete the empty clusters and continue with fewer centroids

43 A k-means algorithm repeatedly converges to different solutions when its initial centroids change. Which interpretation is most accurate?

Clustering (K-Means Clustering, Hierarchical Clustering, Concept of DBSCAN) Hard
A. The centroid update is no longer an arithmetic mean
B. The objective function has multiple local minima
C. The number of observations changes between iterations
D. The distance metric has become non-Euclidean

44 In agglomerative hierarchical clustering, four points form two compact groups that are far apart. Which linkage is most likely to merge the groups prematurely because of a single pair of close points?

Clustering (K-Means Clustering, Hierarchical Clustering, Concept of DBSCAN) Hard
A. Complete linkage
B. Ward linkage
C. Average linkage
D. Single linkage

45 For DBSCAN, a point is within the neighborhood radius of two core points belonging to different clusters, but it is not itself a core point. What can happen?

Clustering (K-Means Clustering, Hierarchical Clustering, Concept of DBSCAN) Hard
A. It must create a third cluster
B. It may be assigned to either neighboring cluster
C. It automatically becomes a core point
D. It must be classified as noise

46 The centered covariance matrix of a two-dimensional dataset is . If one principal component is retained, which proportion of total variance is preserved?

Dimensionality Reduction and Principal Component Analysis Hard
A.
B.
C.
D.

47 Two features have covariance matrix . Which direction is the first principal component most likely to follow?

Dimensionality Reduction and Principal Component Analysis Hard
A. The direction
B. The direction
C. The direction
D. The direction

48 A PCA model is fit using all available data before splitting observations into training and test sets. Why can this produce an overly optimistic downstream evaluation?

Dimensionality Reduction and Principal Component Analysis Hard
A. PCA converts unsupervised features into supervised labels
B. The test distribution is removed from the training labels
C. PCA always increases the number of features
D. Test-set variance influences the learned projection

49 A dataset contains one feature measured in millimeters and another measured in kilograms. Their raw variances differ by a factor of , but both physical quantities are considered equally important. Which preprocessing is most defensible before PCA?

Dimensionality Reduction and Principal Component Analysis Hard
A. Duplicate the feature with the larger variance
B. Use the raw covariance matrix without changes
C. Replace every feature by its rank only
D. Standardize features before computing PCA

50 A two-dimensional dataset lies close to a curved one-dimensional manifold. PCA retains one component, but the reconstruction error remains high. Which conclusion is most justified?

Dimensionality Reduction and Principal Component Analysis Hard
A. PCA cannot represent nonlinear curvature with one line
B. Adding more PCA iterations will recover the curvature
C. The covariance matrix must have been singular
D. The dataset necessarily contains no meaningful structure

51 In a transaction database, of transactions contain bread, contain butter, and contain both. What are the confidence and lift of the rule ?

Pattern Discovery (Association Rule Mining, Apriori Algorithm) Hard
A. Confidence , lift
B. Confidence , lift
C. Confidence , lift
D. Confidence , lift

52 Apriori uses the downward-closure property. If the itemset is below the minimum support threshold, which statement must be true?

Pattern Discovery (Association Rule Mining, Apriori Algorithm) Hard
A. The individual items , , and are mutually exclusive
B. Every subset of size two is infrequent
C. At least one subset of size two is infrequent
D. Every superset containing is frequent

53 Suppose the frequent 2-itemsets are , , , , and , but is infrequent. Which candidate 3-itemset is eliminated by Apriori before database scanning?

Pattern Discovery (Association Rule Mining, Apriori Algorithm) Hard
A.
B.
C.
D.

54 A rule has high confidence because its consequent occurs in of all transactions. Which metric is most useful for checking whether the rule provides meaningful association beyond the consequent's baseline frequency?

Pattern Discovery (Association Rule Mining, Apriori Algorithm) Hard
A. Transaction count
B. Number of generated candidates
C. Support of the antecedent alone
D. Lift

55 An itemset has support , and every proper subset with the same items removed has support greater than . Which description best fits this itemset under standard terminology?

Pattern Discovery (Association Rule Mining, Apriori Algorithm) Hard
A. It is necessarily an infrequent itemset
B. It is necessarily a maximal frequent itemset
C. It is necessarily a redundant association rule
D. It is necessarily a closed frequent itemset

56 A mobile robot clusters 2D lidar endpoints using DBSCAN. Increasing the radius substantially causes nearby walls and separate obstacles to merge. Which change most directly reduces this failure while preserving density-based clustering?

Unsupervised Learning application in Robotics and Sensor data Hard
A. Decrease the radius while validating noise levels
B. Increase the minimum-points threshold only
C. Replace all distances with feature ranks
D. Set every point as a core point

57 A robot uses PCA to compress a 100-dimensional sensor vector. A rare collision signal lies in a low-variance direction and disappears after retaining only the first five components. What is the main risk?

Unsupervised Learning application in Robotics and Sensor data Hard
A. PCA will create supervised collision labels
B. The sensor vector will become higher dimensional
C. The retained components may discard safety-critical information
D. The covariance matrix will contain no eigenvectors

58 A robot clusters temperature and vibration readings collected over several months. A new operating regime gradually changes both distributions, causing old clusters to absorb new observations poorly. Which issue is most directly involved?

Unsupervised Learning application in Robotics and Sensor data Hard
A. Incorrect use of class labels during training
B. Guaranteed failure of centroid averaging
C. Violation of the Euclidean triangle inequality
D. Concept drift in the sensor-generating process

59 A robot combines range, camera color, and inertial features in k-means. The inertial variables have much larger numerical variance than the others. Which remedy is most appropriate before clustering?

Unsupervised Learning application in Robotics and Sensor data Hard
A. Normalize or weight modalities using domain-informed scales
B. Increase k until inertial clusters disappear
C. Remove the centroid update from every iteration
D. Duplicate the camera measurements several times

60 A robot uses unsupervised clustering to group spatial lidar points before tracking objects. Two objects temporarily overlap from the sensor's viewpoint and form one dense cluster. What limitation does this illustrate?

Unsupervised Learning application in Robotics and Sensor data Hard
A. PCA guarantees separation of overlapping objects
B. Clustering always requires labeled object identities
C. DBSCAN cannot process spatial coordinates
D. A geometric cluster need not equal a physical object