Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
You're offline
Unit 10 MCQsWeka
ECAP792 ·
60 questions. Pick an option to check it.
Question 1 of 60 · Introduction to Weka tool · Easy
What is Weka mainly used for?
Not quite. Try another option.
Answer: Performing data mining
Weka provides tools for data mining and machine learning tasks such as classification and clustering.
Question 2 of 60 · Introduction to Weka tool · Easy
Weka was developed at which university?
Not quite. Try another option.
Answer: University of Waikato
Weka was developed at the University of Waikato in New Zealand.
Question 3 of 60 · Introduction to Weka tool · Easy
Which programming language is primarily used to develop Weka?
Not quite. Try another option.
Answer: Java
Weka is primarily written in Java, which allows it to run on multiple operating systems.
Question 4 of 60 · Introduction to Weka tool · Easy
Which Weka interface provides tabs such as Preprocess, Classify, and Cluster?
Not quite. Try another option.
Answer: Explorer
Weka Explorer provides an easy graphical interface with tabs for preprocessing, classification, clustering, and other tasks.
Question 5 of 60 · Introduction to Weka tool · Easy
Which tab in Weka Explorer is used to inspect and prepare a dataset?
Not quite. Try another option.
Answer: Preprocess
The Preprocess tab is used to load, inspect, filter, and prepare data.
Question 6 of 60 · Data import · Easy
Which file format is native to Weka?
Not quite. Try another option.
Answer: ARFF
ARFF, or Attribute-Relation File Format, is Weka's native dataset format.
Question 7 of 60 · Data import · Easy
Which common table-based file type can Weka import?
Not quite. Try another option.
Answer: CSV
Weka can import CSV files containing data arranged in rows and columns.
Question 8 of 60 · Data import · Easy
Which button in the Preprocess tab is commonly used to load a dataset from the computer?
Not quite. Try another option.
Answer: Open file
The Open file button loads a supported dataset, such as an ARFF or CSV file.
Question 9 of 60 · Data import · Easy
What does an attribute represent in a Weka dataset?
Not quite. Try another option.
Answer: A data feature
An attribute is a feature or variable represented by a column in the dataset.
Question 10 of 60 · Data import · Easy
What does an instance usually represent in a Weka dataset?
Not quite. Try another option.
Answer: One data record
An instance is one observation or record, usually represented by a row.
Question 11 of 60 · Choose model (algorithm) · Easy
Which Weka Explorer tab is used to choose a classification algorithm?
Not quite. Try another option.
Answer: Classify
The Classify tab allows users to select, train, and evaluate classification algorithms.
Question 12 of 60 · Choose model (algorithm) · Easy
Which Weka algorithm builds a decision tree?
Not quite. Try another option.
Answer: J48
J48 is Weka's implementation of a decision-tree learning algorithm.
Question 13 of 60 · Choose model (algorithm) · Easy
Which algorithm in Weka is commonly used for clustering?
Not quite. Try another option.
Answer: SimpleKMeans
SimpleKMeans groups similar instances into a chosen number of clusters.
Question 14 of 60 · Choose model (algorithm) · Easy
Which factor should be considered when choosing between classification and clustering?
Not quite. Try another option.
Answer: The learning task
The algorithm type should match the task, such as predicting labels or discovering groups.
Question 15 of 60 · Choose model (algorithm) · Easy
Which algorithm is a probabilistic classifier available in Weka?
Not quite. Try another option.
Answer: NaiveBayes
NaiveBayes is a probabilistic algorithm used for classification.
Question 16 of 60 · Hands-on analysis of clustering and classification algorithms · Easy
What type of learning is classification?
Not quite. Try another option.
Answer: Supervised learning
Classification is supervised learning because it learns from examples with known class labels.
Question 17 of 60 · Hands-on analysis of clustering and classification algorithms · Easy
What type of learning is clustering?
Not quite. Try another option.
Answer: Unsupervised learning
Clustering is unsupervised learning because it discovers groups without requiring known class labels.
Question 18 of 60 · Hands-on analysis of clustering and classification algorithms · Easy
What does a classification algorithm predict?
Not quite. Try another option.
Answer: A class label
A classification algorithm predicts the class label of an instance.
Question 19 of 60 · Hands-on analysis of clustering and classification algorithms · Easy
What is the main purpose of cross-validation in Weka?
Not quite. Try another option.
Answer: To estimate model performance
Cross-validation evaluates how well a model is likely to perform on unseen data.
Question 20 of 60 · Hands-on analysis of clustering and classification algorithms · Easy
What does a confusion matrix summarize?
Not quite. Try another option.
Answer: Classification predictions
A confusion matrix compares predicted classes with actual classes to summarize classification results.
Question 21 of 60 · Introduction to Weka tool · Medium
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?
Not quite. Try another option.
Answer: Weka Explorer
Weka Explorer provides interactive tabs for preprocessing, classification, clustering, association analysis, and visualization.
Question 22 of 60 · Introduction to Weka tool · Medium
A researcher must compare several algorithms across multiple datasets using repeated runs and statistical significance tests. Which Weka interface best supports this task?
Not quite. Try another option.
Answer: Weka Experimenter
Weka Experimenter automates repeated evaluations across algorithms and datasets and supports statistical comparison of results.
Question 23 of 60 · Introduction to Weka tool · Medium
In Weka Explorer, which tab should be used to inspect a confusion matrix and evaluate a trained decision tree?
Not quite. Try another option.
Answer: Classify
The Classify tab trains and evaluates supervised models and displays metrics such as accuracy and the confusion matrix.
Question 24 of 60 · Introduction to Weka tool · Medium
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?
Not quite. Try another option.
Answer: Weka KnowledgeFlow
KnowledgeFlow allows processing components to be connected visually and the resulting workflow to be saved and reused.
Question 25 of 60 · Introduction to Weka tool · Medium
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?
Not quite. Try another option.
Answer: Restart the Weka application
Weka commonly needs to be restarted before newly installed package components become available in its interfaces.
Question 26 of 60 · Data import · Medium
An ARFF file defines outlook as @attribute outlook {sunny,overcast,rainy}. How will Weka interpret this attribute?
Not quite. Try another option.
Answer: As a nominal attribute
A finite set of values inside braces defines a nominal attribute in ARFF.
Question 27 of 60 · Data import · Medium
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?
Not quite. Try another option.
Answer: Replace unknown with ?
Weka uses ? to represent missing values, allowing the remaining values in the column to be treated as numeric.
Question 28 of 60 · Data import · Medium
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?
Not quite. Try another option.
Answer: Set the first attribute as the class
The intended target must be explicitly selected as the class attribute when it is not the default final column.
Question 29 of 60 · Data import · Medium
A numeric attribute contains missing values represented by ?. Which Weka preprocessing filter can fill them using statistics estimated from the available data?
Not quite. Try another option.
Answer: ReplaceMissingValues
ReplaceMissingValues substitutes missing numeric values using the mean and nominal values using the mode.
Question 30 of 60 · Data import · Medium
A dataset includes a unique customer ID that has no predictive meaning. What is the most appropriate preprocessing action before classification?
Not quite. Try another option.
Answer: Remove the ID attribute
A unique identifier usually adds no generalizable pattern and may encourage the model to learn instance-specific noise.
Question 31 of 60 · Choose model (algorithm) · Medium
A medical dataset contains numeric predictors with very different scales. The user selects IBk with Euclidean distance. Which preprocessing step is most important?
Not quite. Try another option.
Answer: Normalize the predictors
IBk is distance-based, so normalization prevents large-scale attributes from dominating Euclidean distance.
Question 32 of 60 · Choose model (algorithm) · Medium
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?
Not quite. Try another option.
Answer: J48
J48 builds a decision tree that can be inspected directly or expressed as understandable decision rules.
Question 33 of 60 · Choose model (algorithm) · Medium
A text-classification dataset has thousands of word-frequency attributes and comparatively few training instances. Which algorithm is a reasonable baseline in Weka?
Not quite. Try another option.
Answer: NaiveBayes
Naive Bayes is an efficient and commonly effective baseline for high-dimensional text-classification data.
Question 34 of 60 · Choose model (algorithm) · Medium
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?
Not quite. Try another option.
Answer: Classification algorithm
Predicting a known categorical target from labeled examples is a multiclass classification task.
Question 35 of 60 · Choose model (algorithm) · Medium
An analyst wants a linear maximum-margin classifier and chooses Weka's SMO. The predictors have different numeric ranges. Which setup is most appropriate?
Not quite. Try another option.
Answer: Standardize predictors before fitting
SMO is sensitive to feature scales, so standardization generally makes optimization and regularization more meaningful.
Question 36 of 60 · Hands-on analysis of clustering and classification algorithms · Medium
A J48 model scores 99% on its training data but only 72% under 10-fold cross-validation. What is the most likely interpretation?
Not quite. Try another option.
Answer: The model is overfitting
The large gap indicates that the tree fits the training instances well but generalizes poorly to unseen data.
Question 37 of 60 · Hands-on analysis of clustering and classification algorithms · Medium
For a binary classifier, Weka reports , , and for the positive class. What is the precision for that class?
Not quite. Try another option.
Answer:
Precision is .
Question 38 of 60 · Hands-on analysis of clustering and classification algorithms · Medium
A SimpleKMeans run produces very different clusters when the experiment is repeated with a different random seed. What is the best interpretation?
Not quite. Try another option.
Answer: The clustering is sensitive to initialization
SimpleKMeans can converge to different local solutions because its initial centroids depend on the random seed.
Question 39 of 60 · Hands-on analysis of clustering and classification algorithms · Medium
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?
Not quite. Try another option.
Answer: Recall for the fraud class
Fraud-class recall measures the proportion of actual fraud cases detected and reveals failures hidden by overall accuracy.
Question 40 of 60 · Hands-on analysis of clustering and classification algorithms · Medium
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?
Not quite. Try another option.
Answer: Classes to clusters evaluation
Classes to clusters evaluation excludes the class from clustering and then compares the resulting cluster assignments with the known labels.
Question 41 of 60 · Introduction to Weka tool · Hard
In Weka Explorer, 10-fold cross-validation produces a J48 tree followed by cross-validation metrics. Which interpretation of this output is correct?
Not quite. Try another option.
Answer: The displayed tree is trained on all available data, while the metrics come from models trained separately within the folds.
Explorer builds a final model on the complete training relation for display, but cross-validation predictions and metrics come from separate fold-specific models.
Question 42 of 60 · Introduction to Weka tool · Hard
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?
Not quite. Try another option.
Answer: Experimenter, because it manages repeated runs, multiple datasets, result storage, and statistical comparisons.
Weka Experimenter is designed for controlled comparisons across datasets and repetitions and can analyze stored results statistically.
Question 43 of 60 · Introduction to Weka tool · Hard
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?
Not quite. Try another option.
Answer: It separates meta-classifier options from options passed to the configured base classifier.
In Weka's nested option syntax, arguments after -- are passed to the base learner selected by the meta-classifier.
Question 44 of 60 · Data import · Hard
An ARFF relation declares @attribute status {inactive,active}. A sparse instance omits status entirely. How does Weka interpret that attribute?
Not quite. Try another option.
Answer: It interprets the value as inactive because an omitted sparse value has index or value zero.
Omitted sparse ARFF values are zero, not missing. For a nominal attribute, index zero denotes the first declared value, here inactive.
Question 45 of 60 · Data import · Hard
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?
Not quite. Try another option.
Answer: Align the nominal declaration order because Weka internally represents nominal values using declaration indices.
Nominal labels are stored as indices tied to header order. Training and test headers must use compatible declarations, including value order.
Question 46 of 60 · Data import · Hard
An ARFF attribute is declared as @attribute code {'?','A'}. How should a row distinguish a missing value from the literal nominal value ??
Not quite. Try another option.
Answer: Use unquoted ? for missing and quoted '?' for the literal nominal value.
An unquoted question mark is Weka's missing-value marker. Quoting it allows the question mark to be parsed as an actual declared value.
Question 47 of 60 · Data import · Hard
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?
Not quite. Try another option.
Answer: Force the column to string or nominal during import before its leading zeros are discarded.
Leading zeros are representational information and disappear during numeric parsing. The loader must treat the field as nonnumeric from the outset.
Question 48 of 60 · Data import · Hard
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?
Not quite. Try another option.
Answer: Convert the text with StringToWordVector inside a FilteredClassifier before applying J48.
StringToWordVector creates usable word-based attributes. Placing it inside FilteredClassifier also fits the transformation only from each training set.
Question 49 of 60 · Choose model (algorithm) · Hard
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?
Not quite. Try another option.
Answer: Weka treats the target as a regression target; it must be converted to nominal if the integers represent categories.
Weka follows the declared attribute type rather than inferring semantics from integer values. J48 requires a nominal class.
Question 50 of 60 · Choose model (algorithm) · Hard
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?
Not quite. Try another option.
Answer: Use nested cross-validation, selecting configurations in inner folds and estimating performance in outer folds.
Selecting and evaluating on the same cross-validation results creates optimistic bias. Nested cross-validation separates configuration selection from performance estimation.
Question 51 of 60 · Choose model (algorithm) · Hard
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?
Not quite. Try another option.
Answer: Choose Model B because its total cost is units.
Model A costs units, whereas Model B costs . Accuracy alone ignores the asymmetric error costs.
Question 52 of 60 · Choose model (algorithm) · Hard
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?
Not quite. Try another option.
Answer: It can train on later months while testing earlier months, yielding an unrealistically optimistic temporal evaluation.
Randomized folds can leak future temporal patterns into training. A chronological holdout or rolling-origin evaluation better represents forecasting.
Question 53 of 60 · Hands-on analysis of clustering and classification algorithms · Hard
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?
Not quite. Try another option.
Answer: Held-out folds influenced vocabulary and IDF construction; the filter should be fitted within each fold using FilteredClassifier.
Preprocessing learned from the complete dataset leaks information from validation folds. FilteredClassifier learns the filter separately on each training fold.
Question 54 of 60 · Hands-on analysis of clustering and classification algorithms · Hard
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?
Not quite. Try another option.
Answer: It distributes the instance fractionally across branches using branch proportions and combines the resulting predictions.
J48 handles a missing split value by weighting the instance across branches according to observed branch frequencies rather than choosing an arbitrary branch.
Question 55 of 60 · Hands-on analysis of clustering and classification algorithms · Hard
A pruned J48 tree appears to overfit. Holding other options fixed, which change generally increases pruning?
Not quite. Try another option.
Answer: Decrease the confidence factor from 0.25 to 0.05.
A smaller J48 confidence factor produces more aggressive error-based pruning. The other changes tend to permit a larger tree or disable pruning.
Question 56 of 60 · Hands-on analysis of clustering and classification algorithms · Hard
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?
Not quite. Try another option.
Answer: Precision is and recall is .
For class b, , , and . Thus precision is and recall is .
Question 57 of 60 · Hands-on analysis of clustering and classification algorithms · Hard
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?
Not quite. Try another option.
Answer: Assignments should remain unchanged because range normalization cancels the positive linear rescaling.
Default normalized Euclidean distance scales numeric differences by each attribute's observed range, making it invariant to a positive unit conversion.
Question 58 of 60 · Hands-on analysis of clustering and classification algorithms · Hard
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?
Not quite. Try another option.
Answer: Different initial centroids led the iterative algorithm to different local optima.
K-means is sensitive to initialization and can converge to distinct local minima. Multiple seeds or initialization runs can therefore produce different solutions.
Question 59 of 60 · Hands-on analysis of clustering and classification algorithms · Hard
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?
Not quite. Try another option.
Answer: Clusters are mapped to classes after training under an assignment constraint, so redundant clusters may remain unmatched or count as errors.
This external evaluation maps clusters to known classes after clustering. It is not a pure cluster-purity score, so splitting one class across extra clusters can be penalized.
Question 60 of 60 · Hands-on analysis of clustering and classification algorithms · Hard
In Weka's EM clusterer, the number of clusters is set to -1. What behavior should be expected?
Not quite. Try another option.
Answer: EM selects the number of clusters using cross-validation on the training data.
For EM, a cluster count of -1 requests automatic selection by cross-validation rather than fixing the number beforehand.
That's unit 10
Answer a few questions and your score shows up here.
Nearly through. Did unit 10 of ECAP792 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 10 of ECAP792 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.