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. Designing web pages
B. Editing digital images
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 Waikato
C. University of Toronto
D. Stanford University

3 Which programming language is primarily used to develop Weka?

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

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

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

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

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

6 Which file format is native to Weka?

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

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

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

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

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

9 What does an attribute represent in a Weka dataset?

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

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

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

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

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

12 Which Weka algorithm builds a decision tree?

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

13 Which algorithm in Weka is commonly used for clustering?

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

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

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

15 Which algorithm is a probabilistic classifier available in Weka?

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

16 What type of learning is classification?

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

17 What type of learning is clustering?

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

18 What does a classification algorithm predict?

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

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. Cluster center values
B. Attribute data types
C. Classification predictions
D. Dataset file sizes

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 Experimenter
B. Weka Package Manager
C. Weka KnowledgeFlow
D. Weka Explorer

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 Experimenter
B. Weka Explorer
C. Weka Simple CLI
D. Weka ARFF Viewer

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. Classify
B. Visualize
C. Preprocess
D. Cluster

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 Explorer
C. Weka KnowledgeFlow
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. Convert the data to CSV
B. Restart the Weka application
C. Rename the class attribute
D. Increase the Java heap size

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

Data import Medium
A. As a nominal attribute
B. As a numeric 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. Set the first attribute as the class
B. Convert the final attribute into a string
C. Leave the class unchanged and select supervised learning
D. Move the target values into the relation name

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. RemoveMissingValues
C. ReplaceMissingValues
D. Discretize

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. Discretize the ID attribute
B. Set the ID as the class
C. Duplicate the ID to increase its influence
D. Remove 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. Remove all nominal predictors
B. Convert numbers to strings
C. Normalize the 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. SMO
B. MultilayerPerceptron
C. J48
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. NaiveBayes
B. SimpleKMeans
C. LinearRegression
D. Apriori, because it always converts frequent word combinations directly into optimal class predictions

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. Clustering algorithm
B. Classification algorithm
C. Attribute-selection search only
D. Association 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. Standardize predictors before fitting
B. Replace all numbers with nominal labels
C. Set the largest predictor as the class
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 model is underfitting
B. The model is overfitting
C. The class is necessarily balanced
D. The cross-validation result must be invalid

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 clustering is sensitive to initialization
B. The class labels were predicted perfectly
C. The algorithm has proven that the selected value of is globally optimal for every possible initialization
D. The attributes must all be nominal

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. Total number of attributes
B. Training time per instance
C. Mean of the transaction IDs
D. Recall for the fraud class

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. Classes to clusters evaluation
B. Supplied test set
C. Use training set
D. Percentage split

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 all available data, while the metrics come from models trained separately within the folds.
B. The displayed tree is trained on nine folds, while the metrics are calculated only from the remaining fold.
C. The displayed tree is averaged across the ten models, while the metrics are calculated from the averaged tree.
D. The displayed tree is the model from the final fold, while the metrics summarize all ten fold-specific models.

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. Explorer, because its Classify tab automatically aggregates repeated experiments across multiple datasets.
D. KnowledgeFlow, because every connected classifier automatically receives paired statistical significance tests.

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 disables validation of all following options until classifier training has completed.
C. It separates meta-classifier options from options passed to the configured base classifier.
D. It separates filter options from attributes that should be retained in the output relation.

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 rejects the instance because nominal attributes cannot be omitted from sparse ARFF records.
B. It interprets the value as active because sparse instances store only nondefault nominal values.
C. It interprets the value as missing because every omitted sparse value is equivalent to ?.
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. Align the nominal declaration order because Weka internally represents nominal values using declaration indices.
B. Sort each data row alphabetically because Weka resolves nominal values from their positions within instances.
C. Leave the files unchanged because matching label sets guarantee identical Weka headers regardless of order.
D. Convert only the class attribute to numeric because predictor header differences are ignored during evaluation.

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 unquoted ? for missing and quoted '?' for the literal nominal value.
B. Use an empty field for missing and unquoted ? for the literal nominal value.
C. Use quoted '?' for missing and unquoted ? 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. Normalize the numeric column after import so that its leading zeros can be reconstructed.
C. Replace missing values after import so that Weka restores the original fixed-width representation.
D. Discretize the numeric column after import so that every postal code recovers its original spelling.

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. Replace every string with a missing value inside a FilteredClassifier before applying J48.
C. Convert the text with StringToWordVector 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 every integer-valued target as nominal; J48 therefore creates an unnecessarily large classification tree.
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 the target as a date attribute; it must be converted to string before classification.

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 training-set accuracy, selecting configurations on all records and reporting the largest observed value.
D. Use nested cross-validation, selecting configurations in inner folds and estimating performance in outer folds.

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 99% accuracy guarantees the smallest total cost.
B. Choose Model B because its total cost is units.
C. Choose Model A 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 can train on later months while testing earlier months, yielding an unrealistically optimistic temporal evaluation.
C. It trains each model on only earlier months, causing the evaluation to duplicate a rolling forecast.
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. Held-out folds influenced vocabulary and IDF construction; the filter should be fitted within each fold using FilteredClassifier.
B. TF-IDF forces the class to become numeric; the class should instead be discretized before cross-validation.
C. Training folds influenced vocabulary and IDF construction; the filter should instead be fitted only on the held-out folds.
D. Cross-validation removes all sparse attributes; the filter should instead produce dense vectors before evaluation.

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 removes the instance from both training and prediction whenever the split value is missing.
B. It distributes the instance fractionally across branches using branch proportions and combines the resulting predictions.
C. It sends the instance exclusively to the branch with the alphabetically first nominal label.
D. It sends the instance exclusively to the smallest branch to balance the tree's leaf counts.

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 confidence factor from 0.25 to 0.05.
B. Enable the unpruned-tree option -U.
C. Increase the confidence factor from 0.25 to 0.50.
D. Decrease the minimum leaf size from 2 to 1.

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 reverse because normalization maps the largest value to the smallest normalized value.
B. Assignments should remain unchanged because range normalization cancels the positive linear rescaling.
C. Assignments should favor that attribute because its squared distances become exactly 10,000 times larger.
D. Assignments should become invalid because SimpleKMeans accepts only attributes measured in base units.

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 initial centroids guarantee different global optima for the same objective function.
B. Different initial centroids led the iterative algorithm to different local optima.
C. Different seeds changed the number of records considered missing by the distance function.
D. Different seeds changed the declared types of the relation's numeric attributes.

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

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 continues adding clusters until every training instance forms its own cluster.
D. EM delegates the cluster count to SimpleKMeans using the same random seed.