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 13 MCQsMachine learning
ECAP776 ·
60 questions. Pick an option to check it.
Answer: A method that enables computers to learn patterns from data
Machine learning enables computers to identify patterns in data and use them to make predictions or decisions.
Question 2 of 60 · Introduction · Easy
What is the main purpose of training a machine learning model?
Not quite. Try another option.
Answer: To learn useful patterns from available data
During training, a model learns patterns and relationships from the provided data.
Question 3 of 60 · Introduction · Easy
What is a machine learning model?
Not quite. Try another option.
Answer: A learned representation used to make predictions
A model represents patterns learned from training data and can make predictions on new data.
Question 4 of 60 · Introduction · Easy
Which data is used to teach a machine learning model?
Not quite. Try another option.
Answer: Training data
Training data provides the examples from which a machine learning model learns.
Question 5 of 60 · Introduction · Easy
In machine learning, what is a feature?
Not quite. Try another option.
Answer: An input characteristic used by a model
A feature is an input property or characteristic that helps a model make a prediction.
Question 6 of 60 · Introduction · Easy
What is a label in a labeled dataset?
Not quite. Try another option.
Answer: The known answer linked to an example
A label is the known output or answer associated with a training example.
Question 7 of 60 · Introduction · Easy
Why is test data used in machine learning?
Not quite. Try another option.
Answer: To evaluate the model on unseen examples
Test data checks how well a trained model performs on examples it did not learn from.
Question 8 of 60 · Introduction · Easy
Which Python library is commonly used for basic machine learning tasks?
Not quite. Try another option.
Answer: scikit-learn
scikit-learn provides Python tools for common machine learning tasks such as classification and clustering.
Question 9 of 60 · Introduction · Easy
What does a prediction represent in machine learning?
Not quite. Try another option.
Answer: The output produced by a trained model
A prediction is the model's estimated output for given input data.
Question 10 of 60 · Introduction · Easy
Which example is a common application of machine learning?
Not quite. Try another option.
Answer: Detecting spam in incoming email messages
Spam detection uses learned patterns to classify incoming messages as spam or not spam.
Question 11 of 60 · Types of machine learning · Easy
Which type of machine learning uses labeled training data?
Not quite. Try another option.
Answer: Supervised learning
Supervised learning trains a model using examples paired with known labels or outputs.
Question 12 of 60 · Types of machine learning · Easy
Which type of machine learning discovers patterns in unlabeled data?
Not quite. Try another option.
Answer: Unsupervised learning
Unsupervised learning finds structures or patterns in data that has no known labels.
Question 13 of 60 · Types of machine learning · Easy
In which type of machine learning does an agent learn through rewards and penalties?
Not quite. Try another option.
Answer: Reinforcement learning
Reinforcement learning teaches an agent through feedback provided as rewards or penalties.
Question 14 of 60 · Types of machine learning · Easy
Which task predicts a category such as "spam" or "not spam"?
Not quite. Try another option.
Answer: Classification
Classification assigns an input to one of several predefined categories.
Question 15 of 60 · Types of machine learning · Easy
Which task predicts a continuous numerical value such as a house price?
Not quite. Try another option.
Answer: Regression
Regression predicts numerical values, such as prices, temperatures, or distances.
Question 16 of 60 · Types of machine learning · Easy
Which task groups similar data items without using known labels?
Not quite. Try another option.
Answer: Clustering
Clustering is an unsupervised task that organizes similar data items into groups.
Question 17 of 60 · Types of machine learning · Easy
Predicting whether a student will pass or fail is an example of which task?
Not quite. Try another option.
Answer: Classification
Pass and fail are distinct categories, so predicting between them is a classification task.
Question 18 of 60 · Types of machine learning · Easy
Grouping customers by similar purchasing behavior is an example of which task?
Not quite. Try another option.
Answer: Clustering
Clustering can group customers according to similarities in their purchasing behavior.
Question 19 of 60 · Types of machine learning · Easy
A robot learning to move by receiving points for successful actions uses which type of learning?
Not quite. Try another option.
Answer: Reinforcement learning
The robot learns through rewards for successful actions, which is reinforcement learning.
Question 20 of 60 · Types of machine learning · Easy
Predicting tomorrow's temperature as a number is an example of which task?
Not quite. Try another option.
Answer: Regression
Temperature is a continuous numerical value, so predicting it is a regression task.
Question 21 of 60 · Introduction · Medium
A house-price model performs very well on its training data but poorly on newly collected houses. Which problem does this most strongly indicate?
Not quite. Try another option.
Answer: Overfitting
Overfitting occurs when a model learns training-specific patterns and fails to generalize to unseen data.
Question 22 of 60 · Introduction · Medium
A dataset contains customer age, annual income, and whether each customer repaid a loan. When predicting repayment, what is the role of annual income?
Not quite. Try another option.
Answer: A feature
Annual income is an input variable used by the model to predict the repayment label.
Question 23 of 60 · Introduction · Medium
Why should a test dataset normally remain separate from the data used to train a model?
Not quite. Try another option.
Answer: To estimate performance on unseen examples
A separate test set provides a less biased estimate of how well the trained model generalizes.
Question 24 of 60 · Types of machine learning · Medium
A company trains a model using emails already labeled as "spam" or "not spam." Which type of machine learning is being used?
Not quite. Try another option.
Answer: Supervised learning
Supervised learning uses examples paired with known target labels.
Question 25 of 60 · Types of machine learning · Medium
A retailer groups customers according to purchasing behavior without providing predefined customer categories. Which approach is most appropriate?
Not quite. Try another option.
Answer: Clustering
Clustering is an unsupervised method that discovers groups based on similarities in unlabeled data.
Question 26 of 60 · Types of machine learning · Medium
An agent learns to navigate a maze by receiving a positive score at the exit and penalties for collisions. Which learning type does this illustrate?
Not quite. Try another option.
Answer: Reinforcement learning
Reinforcement learning trains an agent through rewards and penalties resulting from its actions.
Question 27 of 60 · Introduction · Medium
A medical dataset records patient temperature in Celsius and body weight in kilograms. Why might feature scaling be useful before training some models?
Not quite. Try another option.
Answer: It gives features comparable numerical ranges
Scaling prevents features with larger numerical magnitudes from disproportionately influencing certain algorithms.
Question 28 of 60 · Types of machine learning · Medium
Which task is an example of supervised regression?
Not quite. Try another option.
Answer: Predicting tomorrow's temperature
Regression predicts a continuous numerical target, such as temperature.
Question 29 of 60 · Types of machine learning · Medium
Which task is best formulated as supervised classification?
Not quite. Try another option.
Answer: Determining whether a transaction is fraudulent
Classification predicts a discrete category, such as fraudulent or legitimate.
Question 30 of 60 · Introduction · Medium
A model achieves an accuracy of on 500 test examples. Approximately how many examples did it classify correctly?
Not quite. Try another option.
Answer: 420
The number classified correctly is .
Question 31 of 60 · Introduction · Medium
Which change is most likely to improve a model that underfits both its training data and validation data?
Not quite. Try another option.
Answer: Use a more expressive model
Underfitting often means the model is too simple to capture important patterns, so greater model capacity may help.
Question 32 of 60 · Introduction · Medium
A column containing unique student identification numbers is included when predicting exam performance. Why might this column be removed?
Not quite. Try another option.
Answer: It is usually not a meaningful predictive feature
An arbitrary identifier generally carries no transferable relationship to exam performance and may encourage spurious patterns.
Question 33 of 60 · Types of machine learning · Medium
A school has 10,000 student records, but only 800 have been labeled as "at risk" or "not at risk." Which learning approach is designed to use both sets?
Not quite. Try another option.
Answer: Semi-supervised learning
Semi-supervised learning combines a small labeled dataset with a larger unlabeled dataset.
Question 34 of 60 · Types of machine learning · Medium
A model learns useful image representations by predicting hidden portions of unlabeled images before being adapted to classify objects. What approach is this?
Not quite. Try another option.
Answer: Self-supervised learning
Self-supervised learning creates training targets from the data itself and can produce representations for later tasks.
Question 35 of 60 · Introduction · Medium
During model development, what is the primary purpose of a validation set?
Not quite. Try another option.
Answer: To select model settings
A validation set helps compare models and tune hyperparameters without using the final test set.
Question 36 of 60 · Introduction · Medium
Two input features contain the same information: age in years and age in months. What concern does this create?
Not quite. Try another option.
Answer: The features are strongly redundant
Age in years and age in months encode nearly identical information, creating unnecessary feature redundancy.
Question 37 of 60 · Types of machine learning · Medium
A streaming service must recommend an item, observe whether the user engages with it, and adapt future recommendations. Which framework best captures this repeated interaction?
Not quite. Try another option.
Answer: Reinforcement learning
Reinforcement learning is suitable when actions influence feedback and future decisions.
Question 38 of 60 · Types of machine learning · Medium
Which statement correctly distinguishes classification from clustering?
Not quite. Try another option.
Answer: Classification uses known categories; clustering discovers groups
Classification learns from labeled categories, while clustering identifies structure in unlabeled data.
Question 39 of 60 · Introduction · Medium
A fraud dataset contains 9,900 legitimate transactions and 100 fraudulent transactions. A model predicts every transaction as legitimate. Why is its accuracy misleading?
Not quite. Try another option.
Answer: It fails to identify any fraudulent transactions
With highly imbalanced classes, high accuracy can hide complete failure on the important minority class.
Question 40 of 60 · Introduction · Medium
A trained model receives a new customer's attributes and outputs a churn probability. What is this use of the trained model called?
Not quite. Try another option.
Answer: Inference
Inference is the process of applying a trained model to new input data to produce a prediction.
Question 41 of 60 · Introduction · Hard
A team evaluates 100 model configurations on the same validation set and reports the configuration with the highest validation accuracy as its final performance. Even though no model was trained on that validation set, why is the reported accuracy likely optimistic?
Not quite. Try another option.
Answer: Repeated selection has indirectly overfit the validation set
Choosing the best of many configurations uses validation outcomes as a selection signal. This can overfit the validation set, so a separate test set is needed for an unbiased final estimate.
Question 42 of 60 · Types of machine learning · Hard
A dataset contains 500 labeled radiographs and 50,000 unlabeled radiographs. A model first learns representations by predicting masked regions in all images and is then fine-tuned using the 500 labels. Which description is most precise?
Not quite. Try another option.
Answer: Self-supervised pretraining followed by supervised fine-tuning
Masked-region targets are derived automatically from the inputs, making pretraining self-supervised. Fine-tuning then uses explicit labels and is supervised.
Question 43 of 60 · Introduction · Hard
A binary classifier is evaluated on a population where the positive class prevalence changes from during testing to after deployment, while both and the decision threshold remain unchanged. Which metric is guaranteed to remain unchanged in expectation?
Not quite. Try another option.
Answer: Recall
Recall is , so it depends on behavior within the positive class rather than class prevalence. Accuracy and predictive values generally change with prevalence.
Question 44 of 60 · Types of machine learning · Hard
An agent observes a context, chooses one advertisement, and immediately receives a click or no-click reward. Its action does not affect the next context. What is the most specific learning formulation?
Not quite. Try another option.
Answer: Contextual bandit learning
A contextual bandit selects an action from a current context and observes only that action's immediate reward. There are no action-dependent state transitions.
Question 45 of 60 · Introduction · Hard
A regression problem follows , where and . With squared-error loss and unlimited representative data, what prevents the expected prediction error for from reaching zero?
Not quite. Try another option.
Answer: The irreducible conditional noise
The optimal predictor is , but unpredictable noise remains. Its expected squared contribution is .
Question 46 of 60 · Types of machine learning · Hard
A learner receives the complete unlabeled test feature set together with labeled training data. It may tailor predictions jointly to those particular test points but is not required to produce a rule for future points. Which setting is this?
Not quite. Try another option.
Answer: Transductive learning
Transductive learning predicts labels for a specified set of unlabeled instances rather than learning a general rule intended for unseen future instances.
Question 47 of 60 · Introduction · Hard
A fraud detector has excellent cross-validation results, but transaction records from the same customer appear in both training and validation folds. The deployment goal is prediction for entirely new customers. Which correction best aligns validation with deployment?
Not quite. Try another option.
Answer: Split records by customer identity
Grouping by customer prevents information from the same customer appearing in both training and validation data, making evaluation representative of prediction for new customers.
Question 48 of 60 · Types of machine learning · Hard
A clustering algorithm groups customer records without labels. Analysts later assign business names to the clusters after inspecting them. How should the algorithm's original training be classified?
Not quite. Try another option.
Answer: Unsupervised, because no target labels guided fitting
Learning type is determined by the signal used during fitting. Post hoc interpretation does not turn label-free clustering into supervised learning.
Question 49 of 60 · Introduction · Hard
Suppose training and deployment satisfy but . What kind of distribution change is this?
Not quite. Try another option.
Answer: Covariate shift
Covariate shift changes the input distribution while preserving the conditional relationship between target and input.
Question 50 of 60 · Types of machine learning · Hard
A spam filter asks a human to label only the emails for which its current prediction is most uncertain, then retrains on the expanded labeled set. Which paradigm primarily describes this label-acquisition strategy?
Not quite. Try another option.
Answer: Active learning
Active learning chooses which unlabeled instances should be sent to an oracle for labeling, often using uncertainty as the query criterion.
Question 51 of 60 · Introduction · Hard
A model attains zero training error after unique identification numbers are included as numeric features. Why does this result alone provide almost no evidence of useful learning?
Not quite. Try another option.
Answer: Identification numbers may enable memorization without transferable structure
Unique identifiers can let a flexible model memorize training cases while providing no meaningful pattern for previously unseen identifiers.
Question 52 of 60 · Types of machine learning · Hard
A model predicts whether each image contains any of the labels {car, pedestrian, bicycle}, allowing several labels to be true simultaneously. Which task type is most precise?
Not quite. Try another option.
Answer: Multi-label classification
Multi-label classification allows each example to have multiple simultaneous class labels. Multiclass classification ordinarily selects exactly one class.
Question 53 of 60 · Introduction · Hard
A feature-standardization transform is fitted once using the entire dataset and then cross-validation is performed on the transformed data. What is the central methodological error?
Not quite. Try another option.
Answer: The transform exposes validation-fold statistics during training
Fitting preprocessing globally leaks information from each validation fold into its corresponding training process. The transform should be fitted separately within every training fold.
Question 54 of 60 · Types of machine learning · Hard
Which statement correctly relates online learning and supervised learning?
Not quite. Try another option.
Answer: Online learning can be supervised when labeled examples arrive sequentially
Online versus batch describes how data arrive and updates occur; supervised versus unsupervised describes the feedback signal. The categories are not mutually exclusive.
Question 55 of 60 · Introduction · Hard
Two models have identical average test accuracy. Model A is correct on nearly all examples from one subgroup and poor on another, while Model B performs moderately on both. What follows logically from the identical average?
Not quite. Try another option.
Answer: Their deployment consequences may still differ substantially
An aggregate metric can hide subgroup disparities and differing error costs. Equal average accuracy does not imply equivalent behavior or impact.
Question 56 of 60 · Types of machine learning · Hard
A neural network is trained to distinguish real samples from generated samples while another network learns to generate samples that fool it. No human class labels are used. Which description best fits the overall task?
Not quite. Try another option.
Answer: Unsupervised generative learning
The real-versus-generated signal is created by the training procedure rather than supplied as semantic human labels. The overall objective is to model the data distribution.
Question 57 of 60 · Introduction · Hard
Under the no-free-lunch principle, why can no learning algorithm be universally superior over all possible prediction problems?
Not quite. Try another option.
Answer: Any advantage relies on assumptions about the problem distribution
A method performs well by exploiting inductive biases. Averaged over all possible problems without favoring any structure, gains on some problems are offset by losses on others.
Question 58 of 60 · Types of machine learning · Hard
A robot receives a reward only after completing a 30-action assembly sequence. Which issue is characteristic of reinforcement learning and is not captured by ordinary independently labeled supervised examples?
Not quite. Try another option.
Answer: Credit assignment across earlier actions
With delayed rewards, the learner must determine which earlier actions contributed to the eventual outcome. This temporal credit-assignment problem is central to reinforcement learning.
Question 59 of 60 · Types of machine learning · Hard
A classifier is trained from labels produced by several imperfect heuristics rather than directly verified human annotations. The heuristics sometimes conflict. Which paradigm most specifically describes the supervision source?
Not quite. Try another option.
Answer: Weak supervision
Weak supervision uses noisy, approximate, or conflicting label sources such as rules and heuristics instead of relying solely on gold-standard labels.
Question 60 of 60 · Introduction · Hard
Before cross-validation, an analyst applies PCA to all available feature vectors without using target labels. Why can this still invalidate the estimated generalization performance?
Not quite. Try another option.
Answer: Validation features influenced the learned projection
Although PCA is unsupervised, fitting it on all data lets validation-fold information shape the representation. PCA should be fitted inside each training fold.
That's unit 13
Answer a few questions and your score shows up here.
Nearly through. Did unit 13 of ECAP776 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 13 of ECAP776 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.