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. Sort data alphabetically
B. Group similar data points
C. Calculate exact probabilities
D. Predict labeled outcomes

2 In K-Means clustering, what does represent?

Clustering (K-Means Clustering, Hierarchical Clustering, Concept of DBSCAN) Easy
A. Number of clusters
B. Number of iterations
C. Number of features
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 center of a cluster
B. The size of a cluster
C. The label of a cluster
D. The boundary 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 largest cluster
B. By choosing the nearest centroid
C. By choosing a random label
D. By choosing the first centroid

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. Treats each point as a cluster
B. Places all points in one cluster
C. Removes points near the center
D. Assigns labels to every point

7 What type of clustering algorithm is DBSCAN?

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

8 How does DBSCAN commonly treat points in sparse regions?

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

9 What is the main purpose of dimensionality reduction?

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

10 What does PCA stand for?

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

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. Uncorrelated with one another
C. Restricted to binary values
D. Identical to one another

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

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

14 What is the main purpose of association rule mining?

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

15 In the rule , what does the arrow indicate?

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

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 frequently an itemset appears
D. How far apart two clusters are

17 What is the Apriori algorithm mainly used to find?

Pattern Discovery (Association Rule Mining, Apriori Algorithm) Easy
A. Cluster centroids
B. Regression coefficients
C. Frequent itemsets
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. Frequent
B. Labeled
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 grouping similar sensor readings
D. By assigning human-written labels

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. Detecting unusual sensor patterns
C. Entering labels for each reading
D. Programming fixed motor commands

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. Add a new centroid for each outlier
B. Convert every feature into a binary value
C. Recalculate each centroid as the mean of its assigned points
D. Randomly remove one cluster

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 makes the number of clusters automatic
B. It removes the need to select initial centroids
C. It prevents distance from being dominated by large-scale features
D. It guarantees that all clusters contain equal points

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 groups are relatively dissimilar
B. The groups are highly similar
C. The algorithm used no distance measure
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. Clusters are spherical and their number is known
B. Every cluster must have exactly the same size
C. All observations must belong to a cluster
D. Clusters have irregular shapes and contain noise

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 core point
B. As a random centroid
C. As a terminal point
D. As a principal component

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 guarantee perfect classification accuracy
B. To force every feature to have equal variance
C. To create fewer uncorrelated features
D. To replace missing values with labels

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 direction containing only categorical variables
D. The feature with the smallest numerical range

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

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

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. 95%
B. 15%
C. 5%
D. 8%

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

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

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 occurs in seventy-five percent of all possible itemsets
B. Thirty percent of all transactions contain and
C. The rule contains seventy-five different items
D. Seventy-five percent of transactions containing also contain

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 itemset must contain at least three products
B. Every transaction must contain the same number of items
C. Every subset of a frequent itemset must also be frequent
D. Every rule must have confidence greater than support

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. Evaluate it only after removing the support threshold
B. Replace it with a random two-itemset
C. Prune it because its support cannot exceed that of
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. Place the three products near one another
B. Remove jam from all store inventories
C. Treat the rule as proof that bread causes jam purchases
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. Eliminate the need to collect data during normal operation
B. Convert all sensor readings into supervised class labels automatically
C. Guarantee the exact date of every future failure
D. Group operating states and flag unusual sensor patterns

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. Determine the correct action without considering robot position
B. Replace all sensors with a single fixed measurement
C. Guarantee obstacle motion is physically impossible
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. Simpler visualization of movement patterns
B. Automatic assignment of human-readable activity labels
C. Preservation of every detail from all six dimensions
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. Use association rules to prove the cause of every anomaly
C. Cluster normal readings and identify distant observations
D. Discard all readings that differ from the first reading

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 can reduce redundancy and improve distance calculations
B. It guarantees that clusters represent physical objects
C. It ensures that every cluster has identical sensor readings
D. It converts unsupervised learning into a labeled task

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. Income will dominate because it has a larger numerical scale
B. The initialization will eliminate all scale-related effects
C. Age will dominate because it has fewer unique values
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. Delete the empty clusters and continue with fewer centroids
B. Replace k-means with hierarchical clustering automatically
C. Assign every point randomly to an empty cluster
D. Reinitialize empty centroids using poorly represented points

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 distance metric has become non-Euclidean
B. The number of observations changes between iterations
C. The objective function has multiple local minima
D. The centroid update is no longer an arithmetic mean

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. Ward linkage
B. Average linkage
C. Complete 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 may be assigned to either neighboring cluster
B. It must be classified as noise
C. It must create a third cluster
D. It automatically becomes a core point

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 always increases the number of features
B. The test distribution is removed from the training labels
C. PCA converts unsupervised features into supervised labels
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. Standardize features before computing PCA
D. Replace every feature by its rank only

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. The covariance matrix must have been singular
B. PCA cannot represent nonlinear curvature with one line
C. Adding more PCA iterations will recover the curvature
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. At least one subset of size two is infrequent
B. The individual items , , and are mutually exclusive
C. Every superset containing is frequent
D. Every subset of size two is infrequent

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. Lift
B. Number of generated candidates
C. Transaction count
D. Support of the antecedent alone

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 a maximal frequent itemset
B. It is necessarily an infrequent itemset
C. It is necessarily a closed frequent itemset
D. It is necessarily a redundant association rule

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. Set every point as a core point
B. Replace all distances with feature ranks
C. Increase the minimum-points threshold only
D. Decrease the radius while validating noise levels

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 covariance matrix will contain no eigenvectors
D. The retained components may discard safety-critical information

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. Violation of the Euclidean triangle inequality
B. Guaranteed failure of centroid averaging
C. Concept drift in the sensor-generating process
D. Incorrect use of class labels during training

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. Remove the centroid update from every iteration
B. Normalize or weight modalities using domain-informed scales
C. Increase k until inertial clusters disappear
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. A geometric cluster need not equal a physical object
B. Clustering always requires labeled object identities
C. PCA guarantees separation of overlapping objects
D. DBSCAN cannot process spatial coordinates