Unit 10: Weka - Practice Quiz

ECAP792 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is Weka mainly used for?

Introduction to Weka tool Easy
A. Editing digital images
B. Designing web pages
C. Managing computer networks
D. Performing data mining

2 Weka was developed at which university?

Introduction to Weka tool Easy
A. University of Oxford
B. University of Toronto
C. University of Waikato
D. Stanford University

3 Which programming language is primarily used to develop Weka?

Introduction to Weka tool Easy
A. Java
B. Ruby
C. Python
D. C++

4 Which Weka interface provides tabs such as Preprocess, Classify, and Cluster?

Introduction to Weka tool Easy
A. Workbench
B. Explorer
C. KnowledgeFlow
D. Experimenter

5 Which tab in Weka Explorer is used to inspect and prepare a dataset?

Introduction to Weka tool Easy
A. Preprocess
B. Classify
C. Associate
D. Cluster

6 Which file format is native to Weka?

Data import Easy
A. HTML
B. ARFF
C. JSON
D. DOCX

7 Which common table-based file type can Weka import?

Data import Easy
A. EXE
B. PNG
C. CSV
D. MP3

8 Which button in the Preprocess tab is commonly used to load a dataset from the computer?

Data import Easy
A. Open file
B. Choose
C. Apply
D. Start

9 What does an attribute represent in a Weka dataset?

Data import Easy
A. A cluster center
B. A trained model
C. A data feature
D. A test result

10 What does an instance usually represent in a Weka dataset?

Data import Easy
A. One data record
B. One attribute type
C. One algorithm name
D. One evaluation method

11 Which Weka Explorer tab is used to choose a classification algorithm?

Choose model (algorithm) Easy
A. Associate
B. Select attributes
C. Visualize
D. Classify

12 Which Weka algorithm builds a decision tree?

Choose model (algorithm) Easy
A. J48
B. EM
C. SimpleKMeans
D. Apriori

13 Which algorithm in Weka is commonly used for clustering?

Choose model (algorithm) Easy
A. ZeroR
B. J48
C. SimpleKMeans
D. NaiveBayes

14 Which factor should be considered when choosing between classification and clustering?

Choose model (algorithm) Easy
A. The learning task
B. The file location
C. The window color
D. The screen resolution

15 Which algorithm is a probabilistic classifier available in Weka?

Choose model (algorithm) Easy
A. EM
B. NaiveBayes
C. Apriori
D. SimpleKMeans

16 What type of learning is classification?

Hands-on analysis of clustering and classification algorithms Easy
A. Transfer learning
B. Unsupervised learning
C. Reinforcement learning
D. Supervised learning

17 What type of learning is clustering?

Hands-on analysis of clustering and classification algorithms Easy
A. Unsupervised learning
B. Incremental learning
C. Reinforcement learning
D. Supervised learning

18 What does a classification algorithm predict?

Hands-on analysis of clustering and classification algorithms Easy
A. An attribute name
B. A class label
C. A cluster count
D. A file format

19 What is the main purpose of cross-validation in Weka?

Hands-on analysis of clustering and classification algorithms Easy
A. To rename attributes
B. To remove all classes
C. To estimate model performance
D. To convert file formats

20 What does a confusion matrix summarize?

Hands-on analysis of clustering and classification algorithms Easy
A. Attribute data types
B. Dataset file sizes
C. Cluster center values
D. Classification predictions

21 A student wants to load a dataset, apply preprocessing filters, train a classifier, and inspect predictions through a graphical interface. Which Weka application is most appropriate?

Introduction to Weka tool Medium
A. Weka Explorer
B. Weka Package Manager
C. Weka KnowledgeFlow
D. Weka Experimenter

22 A researcher must compare several algorithms across multiple datasets using repeated runs and statistical significance tests. Which Weka interface best supports this task?

Introduction to Weka tool Medium
A. Weka Simple CLI
B. Weka Experimenter
C. Weka ARFF Viewer
D. Weka Explorer

23 In Weka Explorer, which tab should be used to inspect a confusion matrix and evaluate a trained decision tree?

Introduction to Weka tool Medium
A. Cluster
B. Visualize
C. Preprocess
D. Classify

24 A workflow needs to connect data loading, filtering, model training, and evaluation components visually, then save the complete workflow for reuse. Which Weka application should be selected?

Introduction to Weka tool Medium
A. Weka Workbench, because it automatically selects and tunes every available learning algorithm without requiring a workflow
B. Weka KnowledgeFlow
C. Weka Explorer
D. Weka Experimenter

25 After installing an additional algorithm through Weka's Package Manager, it does not appear in an already open Explorer window. What is the most appropriate first action?

Introduction to Weka tool Medium
A. Rename the class attribute
B. Increase the Java heap size
C. Convert the data to CSV
D. Restart the Weka application

26 An ARFF file defines outlook as @attribute outlook {sunny,overcast,rainy}. How will Weka interpret this attribute?

Data import Medium
A. As a numeric attribute
B. As a nominal attribute
C. As the instance identifier
D. As a free-text string

27 A CSV column contains the values 1, 2, and unknown. Weka infers the entire column as nominal, but it should be numeric with missing values. What is the best correction before import?

Data import Medium
A. Declare every CSV column as nominal and convert the target after training
B. Replace unknown with ?
C. Replace unknown with 0
D. Delete every row containing unknown

28 A dataset has a categorical target in its first column, but Weka selects the final column as the class by default. What should the user do before training a classifier?

Data import Medium
A. Move the target values into the relation name
B. Set the first attribute as the class
C. Convert the final attribute into a string
D. Leave the class unchanged and select supervised learning

29 A numeric attribute contains missing values represented by ?. Which Weka preprocessing filter can fill them using statistics estimated from the available data?

Data import Medium
A. NumericToNominal
B. Discretize
C. ReplaceMissingValues
D. RemoveMissingValues

30 A dataset includes a unique customer ID that has no predictive meaning. What is the most appropriate preprocessing action before classification?

Data import Medium
A. Remove the ID attribute
B. Set the ID as the class
C. Duplicate the ID to increase its influence
D. Discretize the ID attribute

31 A medical dataset contains numeric predictors with very different scales. The user selects IBk with Euclidean distance. Which preprocessing step is most important?

Choose model (algorithm) Medium
A. Convert numbers to strings
B. Normalize the predictors
C. Remove all nominal predictors
D. Randomize the class labels

32 A team needs a classification model that can be presented as readable if-then decisions to nontechnical stakeholders. Which Weka algorithm is the best initial choice?

Choose model (algorithm) Medium
A. J48
B. MultilayerPerceptron
C. SMO
D. IBk

33 A text-classification dataset has thousands of word-frequency attributes and comparatively few training instances. Which algorithm is a reasonable baseline in Weka?

Choose model (algorithm) Medium
A. Apriori, because it always converts frequent word combinations directly into optimal class predictions
B. NaiveBayes
C. SimpleKMeans
D. LinearRegression

34 A dataset contains labeled examples, and the goal is to predict one of three known species for each new instance. Which type of Weka algorithm is required?

Choose model (algorithm) Medium
A. Classification algorithm
B. Association algorithm
C. Attribute-selection search only
D. Clustering algorithm

35 An analyst wants a linear maximum-margin classifier and chooses Weka's SMO. The predictors have different numeric ranges. Which setup is most appropriate?

Choose model (algorithm) Medium
A. Replace all numbers with nominal labels
B. Set the largest predictor as the class
C. Standardize predictors before fitting
D. Use the test set for parameter tuning

36 A J48 model scores 99% on its training data but only 72% under 10-fold cross-validation. What is the most likely interpretation?

Hands-on analysis of clustering and classification algorithms Medium
A. The cross-validation result must be invalid
B. The model is underfitting
C. The model is overfitting
D. The class is necessarily balanced

37 For a binary classifier, Weka reports , , and for the positive class. What is the precision for that class?

Hands-on analysis of clustering and classification algorithms Medium
A.
B.
C.
D.

38 A SimpleKMeans run produces very different clusters when the experiment is repeated with a different random seed. What is the best interpretation?

Hands-on analysis of clustering and classification algorithms Medium
A. The attributes must all be nominal
B. The clustering is sensitive to initialization
C. The class labels were predicted perfectly
D. The algorithm has proven that the selected value of is globally optimal for every possible initialization

39 A classifier is evaluated on a highly imbalanced fraud dataset and achieves 98% accuracy by predicting nearly every transaction as legitimate. Which metric should receive greater attention for detecting fraud cases?

Hands-on analysis of clustering and classification algorithms Medium
A. Recall for the fraud class
B. Total number of attributes
C. Mean of the transaction IDs
D. Training time per instance

40 In Weka Explorer, an analyst has true class labels but wants SimpleKMeans to form clusters without using those labels, while still comparing clusters with the known classes afterward. Which Cluster mode should be used?

Hands-on analysis of clustering and classification algorithms Medium
A. Percentage split
B. Use training set
C. Classes to clusters evaluation
D. Supplied test set

41 In Weka Explorer, 10-fold cross-validation produces a J48 tree followed by cross-validation metrics. Which interpretation of this output is correct?

Introduction to Weka tool Hard
A. The displayed tree is trained on nine folds, while the metrics are calculated only from the remaining fold.
B. The displayed tree is the model from the final fold, while the metrics summarize all ten fold-specific models.
C. The displayed tree is averaged across the ten models, while the metrics are calculated from the averaged tree.
D. The displayed tree is trained on all available data, while the metrics come from models trained separately within the folds.

42 A researcher must compare four classifiers over 25 datasets with 10 repeated runs per dataset and perform paired significance tests. Which Weka interface is most appropriate?

Introduction to Weka tool Hard
A. Simple CLI, because a single classifier invocation automatically constructs all dataset-level comparisons.
B. Experimenter, because it manages repeated runs, multiple datasets, result storage, and statistical comparisons.
C. KnowledgeFlow, because every connected classifier automatically receives paired statistical significance tests.
D. Explorer, because its Classify tab automatically aggregates repeated experiments across multiple datasets.

43 Consider a command using FilteredClassifier with J48 as its base classifier. What is the purpose of -- before options such as -C 0.1 -M 5?

Introduction to Weka tool Hard
A. It causes all following options to be interpreted by the JVM rather than by Weka.
B. It separates meta-classifier options from options passed to the configured base classifier.
C. It separates filter options from attributes that should be retained in the output relation.
D. It disables validation of all following options until classifier training has completed.

44 An ARFF relation declares @attribute status {inactive,active}. A sparse instance omits status entirely. How does Weka interpret that attribute?

Data import Hard
A. It interprets the value as missing because every omitted sparse value is equivalent to ?.
B. It interprets the value as active because sparse instances store only nondefault nominal values.
C. It rejects the instance because nominal attributes cannot be omitted from sparse ARFF records.
D. It interprets the value as inactive because an omitted sparse value has index or value zero.

45 Training data declares @attribute color {red,green,blue}, while a supplied test file declares @attribute color {blue,green,red}. Both files use only these three labels. What should be done?

Data import Hard
A. Sort each data row alphabetically because Weka resolves nominal values from their positions within instances.
B. Align the nominal declaration order because Weka internally represents nominal values using declaration indices.
C. Convert only the class attribute to numeric because predictor header differences are ignored during evaluation.
D. Leave the files unchanged because matching label sets guarantee identical Weka headers regardless of order.

46 An ARFF attribute is declared as @attribute code {'?','A'}. How should a row distinguish a missing value from the literal nominal value ??

Data import Hard
A. Use quoted '?' for missing and unquoted ? for the literal nominal value.
B. Use an empty field for missing and unquoted ? for the literal nominal value.
C. Use unquoted ? for missing and quoted '?' for the literal nominal value.
D. Use unquoted NULL for missing and quoted '?' for the literal nominal value.

47 A CSV file contains postal codes such as 00123, but automatic loading converts the column to numeric values such as 123. Which intervention best preserves the original information?

Data import Hard
A. Force the column to string or nominal during import before its leading zeros are discarded.
B. Discretize the numeric column after import so that every postal code recovers its original spelling.
C. Replace missing values after import so that Weka restores the original fixed-width representation.
D. Normalize the numeric column after import so that its leading zeros can be reconstructed.

48 A text column is imported as Weka's string type, and J48 reports that it cannot handle string attributes. Which pipeline is most appropriate when the text is predictive?

Data import Hard
A. Set the text column as the class inside a FilteredClassifier before applying J48.
B. Convert the text with StringToWordVector inside a FilteredClassifier before applying J48.
C. Replace every string with a missing value inside a FilteredClassifier before applying J48.
D. Convert the text with NumericToNominal inside a FilteredClassifier before applying J48.

49 A target containing integer values from 0 to 100 is declared numeric in ARFF. A user selects J48 expecting 101 classes. Why is this inappropriate?

Choose model (algorithm) Hard
A. Weka treats the target as a date attribute; it must be converted to string before classification.
B. Weka treats the target as a regression target; it must be converted to nominal if the integers represent categories.
C. Weka treats only values above 50 as numeric; the remaining values become nominal class labels.
D. Weka treats every integer-valued target as nominal; J48 therefore creates an unnecessarily large classification tree.

50 Twenty classifier and hyperparameter combinations are compared using 10-fold cross-validation, and the best cross-validation score is reported as the final performance estimate. What is the strongest correction?

Choose model (algorithm) Hard
A. Use leave-one-out evaluation, selecting configurations and reporting the smallest observed training error.
B. Use one larger cross-validation, selecting configurations and reporting their shared maximum fold score.
C. Use nested cross-validation, selecting configurations in inner folds and estimating performance in outer folds.
D. Use training-set accuracy, selecting configurations on all records and reporting the largest observed value.

51 A test set has 100 positive and 9,900 negative cases. Model A predicts every case as negative. Model B produces 20 false negatives and 300 false positives. A false negative costs 100 units and a false positive costs 1 unit. Which choice minimizes stated cost?

Choose model (algorithm) Hard
A. Choose Model A because its total cost is units.
B. Choose Model A because its 99% accuracy guarantees the smallest total cost.
C. Choose Model B because its total cost is units.
D. Choose Model B because its total cost is units.

52 Records are ordered monthly, and the goal is to predict future months under gradual concept drift. Why can ordinary randomized cross-validation in Weka be misleading?

Choose model (algorithm) Hard
A. It prevents stratification of nominal classes, yielding an unrealistically pessimistic temporal evaluation.
B. It trains each model on only earlier months, causing the evaluation to duplicate a rolling forecast.
C. It can train on later months while testing earlier months, yielding an unrealistically optimistic temporal evaluation.
D. It preserves chronological order exactly, causing every fold to contain records from only one calendar year.

53 A TF-IDF StringToWordVector filter is fitted once on the complete dataset and then 10-fold cross-validation is run on the resulting attributes. What is the main methodological problem?

Hands-on analysis of clustering and classification algorithms Hard
A. Cross-validation removes all sparse attributes; the filter should instead produce dense vectors before evaluation.
B. Training folds influenced vocabulary and IDF construction; the filter should instead be fitted only on the held-out folds.
C. TF-IDF forces the class to become numeric; the class should instead be discretized before cross-validation.
D. Held-out folds influenced vocabulary and IDF construction; the filter should be fitted within each fold using FilteredClassifier.

54 For a J48 split, an instance has a missing value for the splitting attribute. How does the C4.5-style procedure generally handle that instance?

Hands-on analysis of clustering and classification algorithms Hard
A. It sends the instance exclusively to the branch with the alphabetically first nominal label.
B. It sends the instance exclusively to the smallest branch to balance the tree's leaf counts.
C. It distributes the instance fractionally across branches using branch proportions and combines the resulting predictions.
D. It removes the instance from both training and prediction whenever the split value is missing.

55 A pruned J48 tree appears to overfit. Holding other options fixed, which change generally increases pruning?

Hands-on analysis of clustering and classification algorithms Hard
A. Decrease the minimum leaf size from 2 to 1.
B. Increase the confidence factor from 0.25 to 0.50.
C. Decrease the confidence factor from 0.25 to 0.05.
D. Enable the unpruned-tree option -U.

56 Weka displays the following confusion matrix, where rows are actual classes and columns are predicted classes:

40 10 | a

5 45 | b

What are precision and recall for class b?

Hands-on analysis of clustering and classification algorithms Hard
A. Precision is and recall is .
B. Precision is and recall is .
C. Precision is and recall is .
D. Precision is and recall is .

57 SimpleKMeans uses Weka's default normalized Euclidean distance. If one numeric attribute is converted from dollars to cents by multiplying every nonmissing value by 100, what should occur, ignoring floating-point effects?

Hands-on analysis of clustering and classification algorithms Hard
A. Assignments should remain unchanged because range normalization cancels the positive linear rescaling.
B. Assignments should become invalid because SimpleKMeans accepts only attributes measured in base units.
C. Assignments should favor that attribute because its squared distances become exactly 10,000 times larger.
D. Assignments should reverse because normalization maps the largest value to the smallest normalized value.

58 Two SimpleKMeans runs on the same relation use identical settings except for the random seed and produce different within-cluster sums of squared errors. What is the best explanation?

Hands-on analysis of clustering and classification algorithms Hard
A. Different seeds changed the number of records considered missing by the distance function.
B. Different seeds changed the declared types of the relation's numeric attributes.
C. Different initial centroids led the iterative algorithm to different local optima.
D. Different initial centroids guarantee different global optima for the same objective function.

59 In Weka's Classes to clusters evaluation, a clusterer splits one true class into several pure clusters. Why can the reported error still be substantial?

Hands-on analysis of clustering and classification algorithms Hard
A. The evaluation converts all nominal classes to numeric targets, so purity cannot affect the reported error.
B. Every cluster is required to contain identical counts from all classes, so pure clusters violate the evaluation rule.
C. The true class is included as a clustering input, so pure clusters are always treated as evidence of target leakage.
D. Clusters are mapped to classes after training under an assignment constraint, so redundant clusters may remain unmatched or count as errors.

60 In Weka's EM clusterer, the number of clusters is set to -1. What behavior should be expected?

Hands-on analysis of clustering and classification algorithms Hard
A. EM selects the number of clusters using cross-validation on the training data.
B. EM creates one cluster for each nominal value found in the class attribute.
C. EM delegates the cluster count to SimpleKMeans using the same random seed.
D. EM continues adding clusters until every training instance forms its own cluster.