wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Data Mining Quiz 2

Total questions: 50

Worksheet time: 25mins

Name
Class
Date
1.

Which of the following is not typically an unsupervised learning technique?

a)

K-Means

b)

PCA

c)

DBSCAN

d)

Linear Discriminant Analysis (LDA)

2.

PCA transforms the data to:

a)

A lower-dimensional space with dependent features

b)

A higher-dimensional space

c)

A lower-dimensional space with uncorrelated features

d)

The original feature space with normalized values

3.

A key disadvantage of K-Means is:

a)

It can find non-linear boundaries

b)

It is deterministic

c)

It requires labeled data

d)

It assumes clusters are spherical and equal in size

4.

Which evaluation metric is used for clustering when labels are unavailable?

a)

Accuracy

b)

Adjusted Rand Index

c)

Silhouette Score

d)

ROC-AUC

5.

Which algorithm is best suited for discovering clusters with varying density?

a)

K-Means

b)

PCA

c)

DBSCAN

d)

Hierarchical clustering

6.

Which of the following is true for hierarchical clustering?

a)

It cannot be visualized

b)

It doesn’t require a distance metric

c)

It always produces the same number of clusters

d)

It can be agglomerative or divisive

7.

The curse of dimensionality affects:

a)

Linear regression performance

b)

K-Means efficiency and distance accuracy

c)

Label encoding in supervised models

d)

Ensemble model performance

8.

What does t-SNE do?

a)

Clusters data points

b)

Classifies data

c)

Projects high-dimensional data into 2 or 3 dimensions for visualization

d)

Removes noise from data

9.

In PCA, what determines how many components should be selected?

a)

Number of classes

b)

Explained variance ratio

c)

Number of original features

d)

Training error

10.

Which technique can detect anomalies in data using unsupervised learning?

a)

K-Nearest Neighbors

b)

DBSCAN

c)

Logistic Regression

d)

Random Forest

11.

In association rule mining, what does the "support" of a rule indicate?

a)

The strength of the rule

b)

The proportion of transactions that contain the itemset

c)

The frequency of the consequent

d)

The confidence level of the rule

12.

Which of the following measures is used to evaluate the reliability of a rule?

a)

Support

b)

Confidence

c)

Lift

d)

All of the above

13.

If an itemset has high support but low confidence, it means:

a)

The rule is strong

b)

The rule is rare

c)

The rule occurs frequently but not reliably

d)

The rule is invalid

14.

What does "lift" measure in association rules?

a)

Probability of consequent given antecedent

b)

Ratio of observed support to expected support under independence

c)

Support of the antecedent

d)

Confidence of the rule

15.

In the Apriori algorithm, what property helps reduce the number of candidate itemsets?

a)

Downward closure property

b)

Monotonicity

c)

Lift maximization

d)

Confidence boosting

16.

Which algorithm improves upon Apriori by reducing the number of database scans?

a)

FP-Growth

b)

Eclat

c)

A-PrioriTid

d)

Naïve Bayes

17.

What is a key difference between Apriori and FP-Growth?

a)

Apriori uses a tree structure

b)

FP-Growth uses candidate generation

c)

Apriori is faster on sparse data

d)

FP-Growth avoids candidate generation

18.

Which of the following is not an association rule evaluation metric?

a)

Conviction

b)

Cosine

c)

Entropy

d)

Lift

19.

What is the "confidence" of the rule A → B if support(A ∪ B) = 0.2 and support(A) = 0.4?

a)

0.1

b)

0.5

c)

0.8

d)

0.6

20.

The FP-tree structure is used to:

a)

Compress the transaction database

b)

Replace itemsets with item graphs

c)

Increase the number of candidate itemsets

d)

Sort rules in descending lift

21.

In association rule mining, what is a “frequent itemset”?

a)

An itemset that occurs less than 50% of the time

b)

An itemset with a support above a user-defined threshold

c)

A set with high confidence

d)

A rule with low lift

22.

Which of the following best describes the “downward closure” property?

a)

All subsets of a frequent itemset must also be frequent

b)

All supersets of an infrequent itemset must be infrequent

c)

Both A and B

d)

None of the above

23.

In the rule A → B, which itemset is the antecedent?

a)

A

b)

B

c)

A ∪ B

d)

B ∪ C

24.

The rule A → B is more interesting if:

a)

Lift ≈ 1

b)

Confidence ≈ 0

c)

Support is very low

d)

Lift > 1

25.

Which approach does FP-Growth use to mine frequent patterns?

a)

Bottom-up search

b)

Top-down search

c)

Divide-and-conquer

d)

Breadth-first search

26.

What is the main disadvantage of the Apriori algorithm?

a)

Requires sorting

b)

Generates too many candidate itemsets

c)

Cannot find frequent patterns

d)

Works only for binary data

27.

Conviction is used in association rule mining to measure:

a)

Support strength

b)

Rule reliability if consequent is false

c)

Co-occurrence

d)

Lift ratio

28.

Which of the following is an example of an association rule?

a)

{milk, bread}

b)

milk → bread

c)

Support({milk, bread}) = 0.4

d)

{milk, butter, eggs}

29.

What type of data is typically used in market basket analysis?

a)

Sequential

b)

Time-series

c)

Transactional

d)

Graph-based

30.

Which of the following would indicate an interesting rule?

a)

Low support, low confidence, lift = 1

b)

High support, low lift

c)

High confidence, lift > 1

d)

Confidence = support

31.

Which metric is best used when the classes are imbalanced?

a)

Accuracy

b)

Precision

c)

Recall

d)

F1 Score

32.

What does a high precision score indicate?

a)

Few false positives

b)

Few false negatives

c)

High true positives

d)

Low accuracy

33.

Which metric is calculated as: TP / (TP + FN)?

a)

Precision

b)

Recall

c)

Specificity

d)

Accuracy

34.

What is the formula for accuracy?

a)

TP / (TP + FN)

b)

TP / (TP + FP)

c)

(TP + TN) / (TP + TN + FP + FN)

d)

TN / (TN + FP)

35.

Which of the following is not an evaluation metric?

a)

Confusion Matrix

b)

Precision

c)

Gradient

d)

ROC AUC

36.

What does ROC curve plot?

a)

Precision vs Recall

b)

True Positive Rate vs False Positive Rate

c)

Accuracy vs Loss

d)

Recall vs Specificity

37.

Which metric is used to evaluate the ranking ability of a classifier?

a)

F1 Score

b)

ROC AUC

c)

Accuracy

d)

Precision

38.

What does a confusion matrix help you visualize?

a)

Model complexity

b)

Prediction errors

c)

Training time

d)

Number of epochs

39.

If a model has high recall but low precision, what does it mean?

a)

Many relevant items are missed

b)

Many irrelevant items are classified as relevant

c)

High number of true negatives

d)

Perfect accuracy

40.

Which metric combines both precision and recall?

a)

Accuracy

b)

Specificity

c)

F1 Score

d)

ROC AUC

41.

Specificity is defined as:

a)

TN / (TN + FP)

b)

TP / (TP + FN)

c)

TP / (TP + FP)

d)

FP / (FP + TN)

42.

Which metric is best for minimizing false negatives?

a)

Precision

b)

Specificity

c)

Recall

d)

F1 Score

43.

In a confusion matrix, which value represents false positives?

a)

Top-left

b)

Top-right

c)

Bottom-left

d)

Bottom-right

44.

What does an AUC score of 0.5 indicate?

a)

Excellent model

b)

Random guessing

c)

Perfect recall

d)

High accuracy

45.

Which metric increases if you increase the threshold in a classifier?

a)

Recall

b)

False Positive Rate

c)

Precision

d)

F1 Score

46.

What happens to recall when the decision threshold is lowered?

a)

Increases

b)

Decreases

c)

Remains same

d)

Cannot be determined

47.

Which scenario best suits using the Precision metric?

a)

Detecting cancer cases

b)

Spam email detection

c)

Face recognition with many classes

d)

Weather forecasting

48.

What is the primary weakness of accuracy in imbalanced datasets?

a)

Too complex to calculate

b)

Ignores true positives

c)

Doesn’t distinguish between classes

d)

Misleading when one class dominates

49.

What is the ideal value of the F1 Score?

a)

0

b)

0.5

c)

1

d)

Depends on model

50.

Which metric would you use if false positives are costlier than false negatives?

a)

Recall

b)

Accuracy

c)

Precision

d)

F1 Score