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 6 MCQsMachine Learning
ECAP792 ·
60 questions. Pick an option to check it.
Answer: A method that enables computers to learn from data
Machine learning enables computers to identify patterns and improve their performance using data.
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 patterns that support predictions
Training allows a model to learn useful patterns from data and apply them to predictions.
Question 3 of 60 · Introduction · Easy
In machine learning, what is a model?
Not quite. Try another option.
Answer: A learned representation used to make predictions
A model represents patterns learned from training data and uses them to produce outputs.
Question 4 of 60 · Introduction · Easy
What is training data?
Not quite. Try another option.
Answer: Data used to teach a machine learning model
Training data provides the examples from which a machine learning model learns.
Question 5 of 60 · Types of machine learning techniques · Easy
Which machine learning technique learns from labeled examples?
Not quite. Try another option.
Answer: Supervised learning
Supervised learning uses examples that include both input data and known output labels.
Question 6 of 60 · Types of machine learning techniques · Easy
Which technique is commonly used to discover groups in unlabeled data?
Not quite. Try another option.
Answer: Unsupervised learning
Unsupervised learning identifies patterns or groups without relying on known labels.
Question 7 of 60 · Types of machine learning techniques · Easy
Which technique learns through rewards and penalties?
Not quite. Try another option.
Answer: Reinforcement learning
Reinforcement learning trains an agent by providing rewards or penalties for its actions.
Question 8 of 60 · Types of machine learning techniques · Easy
Which technique uses both labeled and unlabeled training examples?
Not quite. Try another option.
Answer: Semi-supervised learning
Semi-supervised learning combines a small amount of labeled data with unlabeled data.
Question 9 of 60 · Learning problems and system · Easy
Which learning problem 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 10 of 60 · Learning problems and system · Easy
Which learning problem predicts a continuous value such as house price?
Not quite. Try another option.
Answer: Regression
Regression predicts numerical values that can vary continuously, such as prices.
Question 11 of 60 · Learning problems and system · Easy
Which learning problem places similar data points into groups?
Not quite. Try another option.
Answer: Clustering
Clustering organizes similar data points into groups without requiring predefined labels.
Question 12 of 60 · Learning problems and system · Easy
What is overfitting in a machine learning system?
Not quite. Try another option.
Answer: The model learns training data but performs poorly on new data
Overfitting occurs when a model fits the training examples too closely and does not generalize well.
Question 13 of 60 · Designing a learning system · Easy
What should usually be identified first when designing a learning system?
Not quite. Try another option.
Answer: The learning task
A learning system should begin with a clear definition of the task it must perform.
Question 14 of 60 · Designing a learning system · Easy
Why is relevant training data collected when designing a learning system?
Not quite. Try another option.
Answer: To teach the model useful patterns
Relevant training data helps the model learn patterns connected to the intended task.
Question 15 of 60 · Designing a learning system · Easy
What is a feature in a machine learning system?
Not quite. Try another option.
Answer: An input attribute used by the model
A feature is a measurable input property that the model uses for learning or prediction.
Question 16 of 60 · Designing a learning system · Easy
Why is test data used after training a model?
Not quite. Try another option.
Answer: To evaluate performance on unseen examples
Test data checks how well the trained model performs on examples it did not learn from.
Question 17 of 60 · Concept of learning task · Easy
In the definition of a learning problem, what does the task describe?
Not quite. Try another option.
Answer: The job the system must perform
The task states what the learning system is expected to do, such as classify emails.
Question 18 of 60 · Concept of learning task · Easy
In a learning task, what does experience refer to?
Not quite. Try another option.
Answer: The data or interactions used for learning
Experience is the information from which the system learns, such as examples or interactions.
Question 19 of 60 · Concept of learning task · Easy
What is the purpose of a performance measure in a learning task?
Not quite. Try another option.
Answer: To evaluate how well the system performs
A performance measure provides a way to judge whether the system is improving at its task.
Question 20 of 60 · Concept of learning task · Easy
For an email spam detector, what is the learning task?
Not quite. Try another option.
Answer: Classifying emails as spam or not spam
The task of a spam detector is to assign each email to the spam or not-spam category.
Question 21 of 60 · Introduction · Medium
A model achieves 98% accuracy on its training data but only 72% accuracy on previously unseen data. Which conclusion is most appropriate?
Not quite. Try another option.
Answer: The model is overfitting the training data
The large gap between training and unseen-data performance indicates overfitting: the model learned training-specific patterns that do not generalize well.
Question 22 of 60 · Introduction · Medium
A dataset contains house area, number of rooms, neighborhood, and selling price. If the goal is to predict selling price, how should these variables be used?
Not quite. Try another option.
Answer: Selling price is the target; the others are features
The value being predicted is the target, while the variables used to make that prediction are input features.
Question 23 of 60 · Types of machine learning techniques · Medium
A bank trains a model using transactions labeled as either fraudulent or legitimate. Which learning technique is being used?
Not quite. Try another option.
Answer: Supervised learning
Supervised learning uses labeled examples that provide the correct output for each training instance.
Question 24 of 60 · Types of machine learning techniques · Medium
A retailer wants to divide customers into groups based on purchasing behavior, but no customer-group labels are available. Which technique is most suitable?
Not quite. Try another option.
Answer: Clustering
Clustering is an unsupervised technique that discovers groups of similar observations without requiring predefined labels.
Question 25 of 60 · Types of machine learning techniques · Medium
A warehouse robot improves its navigation by receiving positive rewards for fast deliveries and penalties for collisions. Which technique best describes this process?
Not quite. Try another option.
Answer: Reinforcement learning
Reinforcement learning trains an agent through rewards and penalties produced by its interactions with an environment.
Question 26 of 60 · Types of machine learning techniques · Medium
A company has 500 labeled medical images and 20,000 unlabeled images. It wants to use both sets to train a classifier. Which approach is most appropriate?
Not quite. Try another option.
Answer: Semi-supervised learning
Semi-supervised learning combines a small labeled dataset with a larger unlabeled dataset to improve predictive performance.
Question 27 of 60 · Types of machine learning techniques · Medium
Which pairing correctly matches a prediction problem with its supervised learning type?
Not quite. Try another option.
Answer: Predicting loan default: classification
Loan default has discrete outcomes, such as default or no default, so it is a classification problem.
Question 28 of 60 · Learning problems and system · Medium
A polynomial model performs poorly on both its training set and test set. What is the most likely learning problem?
Not quite. Try another option.
Answer: Underfitting
Poor performance on both training and test data usually means the model is too simple or insufficiently trained to capture the underlying pattern.
Question 29 of 60 · Learning problems and system · Medium
A model trained to predict employee resignations uses a feature indicating whether an exit interview was completed. Why is this feature problematic?
Not quite. Try another option.
Answer: It introduces target leakage
An exit interview is generally known only after resignation, so it exposes information unavailable when a real prediction must be made.
Question 30 of 60 · Learning problems and system · Medium
An email classifier worked well when deployed, but its accuracy gradually declined as users adopted new vocabulary and writing styles. What is the most likely cause?
Not quite. Try another option.
Answer: Concept drift
Concept drift occurs when the relationship between input data and expected outputs changes over time.
Question 31 of 60 · Learning problems and system · Medium
Two classes contain 9,900 legitimate transactions and 100 fraudulent transactions. Why can 99% accuracy be misleading?
Not quite. Try another option.
Answer: A majority-only model can achieve it
Predicting every transaction as legitimate would achieve 99% accuracy while detecting none of the fraudulent transactions.
Question 32 of 60 · Designing a learning system · Medium
A team must choose among several model configurations. Which dataset allocation best supports unbiased final evaluation?
Not quite. Try another option.
Answer: Train on training data, tune on validation data, and evaluate on test data
Separating training, validation, and test roles prevents the final test set from influencing model fitting or configuration choices.
Question 33 of 60 · Designing a learning system · Medium
For a disease-screening system, failing to identify an affected patient is much more costly than issuing an extra warning. Which metric should receive the greatest emphasis?
Not quite. Try another option.
Answer: Recall
Recall measures the proportion of actual positive cases detected, so emphasizing it helps reduce false negatives.
Question 34 of 60 · Designing a learning system · Medium
A speech-recognition model will serve users in many regions. Which training-data strategy is most appropriate?
Not quite. Try another option.
Answer: Sample speakers, accents, and environments expected after deployment
Training data should represent the deployment population and operating conditions so that the model can generalize to actual users.
Question 35 of 60 · Designing a learning system · Medium
A linear model cannot capture a curved relationship between two variables. Which design change most directly addresses this limitation?
Not quite. Try another option.
Answer: Introduce nonlinear features or use a nonlinear model
A curved relationship requires a representation or hypothesis class capable of expressing nonlinear patterns.
Question 36 of 60 · Designing a learning system · Medium
A recommendation system is retrained every week from user clicks. Which precaution best limits a feedback loop in which already-popular items dominate future recommendations?
Not quite. Try another option.
Answer: Collect some interaction data through controlled exploration
Controlled exploration gathers evidence about less-exposed items and reduces dependence on choices made by the existing model.
Question 37 of 60 · Concept of learning task · Medium
Using the task-experience-performance framework, a chess program learns from completed games and is evaluated by the percentage of games won. What represents the experience ?
Not quite. Try another option.
Answer: The completed games
In the framework, experience is the data or interaction history from which the system learns.
Question 38 of 60 · Concept of learning task · Medium
A spam filter learns from previously labeled emails and is judged by its score on new emails. What is the learning task ?
Not quite. Try another option.
Answer: Classifying new emails as spam or non-spam
The task is the activity the system must improve at, which here is assigning spam or non-spam labels.
Question 39 of 60 · Concept of learning task · Medium
A delivery-time model predicts the number of minutes required for each order. Which formulation correctly identifies its output and task type?
Not quite. Try another option.
Answer: A continuous output in a regression task
Delivery time is a numeric quantity that can take many values, making its prediction a regression task.
Question 40 of 60 · Concept of learning task · Medium
A model minimizes mean squared error, . Which change has the greatest direct effect on this measure?
Not quite. Try another option.
Answer: A prediction with a very large error
Because each error is squared, a large prediction error contributes disproportionately more to MSE than a small error.
Question 41 of 60 · Introduction · Hard
Two classifiers have identical zero-one loss on a finite training set but make different predictions on unseen inputs. Which principle best explains why empirical evidence alone cannot determine which classifier will generalize better?
Not quite. Try another option.
Answer: The no-free-lunch principle requires an inductive bias
Finite observations do not uniquely determine behavior on unseen inputs. Preferring one consistent classifier over another requires assumptions—an inductive bias—about the target problem.
Question 42 of 60 · Introduction · Hard
Suppose labels satisfy , where and . Under squared-error loss, what is the lowest achievable expected prediction error for any function of ?
Not quite. Try another option.
Answer: , because conditional noise remains unpredictable
The Bayes predictor is . Its residual is , so its expected squared error is the irreducible variance .
Question 43 of 60 · Introduction · Hard
A high-capacity model's training error decreases after more features are added, while its test error increases. Assuming the evaluation data are representative and uncontaminated, which diagnosis is most defensible?
Not quite. Try another option.
Answer: The added features increased estimation variance
Additional features can enlarge the effective hypothesis space. Lower training error with worse test error is consistent with increased estimation variance and overfitting.
Question 44 of 60 · Introduction · Hard
For binary classification under equal misclassification costs, a calibrated model estimates . Which prediction minimizes conditional zero-one risk at , and what is that risk?
Not quite. Try another option.
Answer: Predict ; the conditional risk is
The Bayes classifier selects the more probable class. Predicting is wrong only when , which has conditional probability .
Question 45 of 60 · Types of machine learning techniques · Hard
A model learns representations by predicting masked words in millions of unlabeled documents, then is fine-tuned using labeled sentiment examples. How should the two phases be classified?
Not quite. Try another option.
Answer: Self-supervised learning followed by supervised learning
Masked-word targets are generated from the input itself, making pretraining self-supervised. Sentiment fine-tuning uses externally supplied labels and is supervised.
Question 46 of 60 · Types of machine learning techniques · Hard
A recommendation system selects one item, observes a reward only for that item, and does not model long-term state transitions. Which learning formulation most precisely matches this setting?
Not quite. Try another option.
Answer: Contextual bandit learning with partial feedback
The system chooses an action from context and observes only that action's reward. With no sequential state dynamics, this is a contextual bandit rather than full reinforcement learning.
Question 47 of 60 · Types of machine learning techniques · Hard
A semi-supervised classifier assumes that nearby points usually share labels. Adding many unlabeled examples reduces its test accuracy. Which data geometry most directly explains this failure?
Not quite. Try another option.
Answer: Class boundaries pass through high-density regions
Many semi-supervised methods rely on smoothness or low-density separation. If true class boundaries cross dense regions, unlabeled structure can reinforce an incorrect decision boundary.
Question 48 of 60 · Types of machine learning techniques · Hard
In pool-based active learning, which condition most seriously undermines uncertainty sampling even when the classifier's probability estimates are calibrated on its current labeled set?
Not quite. Try another option.
Answer: The unlabeled pool contains out-of-distribution regions
A model may be uncertain on irrelevant or out-of-distribution points. Querying those points can consume the labeling budget without improving performance on the target distribution.
Question 49 of 60 · Learning problems and system · Hard
A hospital model predicts readmission using a feature named discharge_summary_length. At deployment, predictions must be produced upon admission, before any discharge summary exists. What is the primary defect?
Not quite. Try another option.
Answer: The model contains target leakage through unavailable future information
The feature is created after the prediction time and may encode events related to the outcome. It is unavailable in the operational system, causing temporal target leakage.
Question 50 of 60 · Learning problems and system · Hard
Training and deployment satisfy but . If support overlap holds, which correction directly targets deployment risk?
Not quite. Try another option.
Answer: Weight each training loss by
Under covariate shift, importance weighting by the test-to-training input density ratio converts an expectation under the training distribution into one under the deployment distribution.
Question 51 of 60 · Learning problems and system · Hard
A fraud model is retrained weekly from labels that arrive 60 days after each transaction. A sudden fraud-strategy change occurs today. Which system limitation most directly delays adaptation?
The system cannot learn the new relationship until outcomes become available. Frequent retraining does not solve concept drift when supervisory labels arrive much later.
Question 52 of 60 · Learning problems and system · Hard
A classifier retains the same ranking of all examples after deployment, but its predicted probabilities become systematically too large. Which property can remain unchanged while calibration degrades?
Not quite. Try another option.
Answer: Area under the ROC curve
ROC AUC depends only on ranking. Systematically distorted probabilities can preserve every ranking while worsening calibration error, Brier score, and log-loss.
Question 53 of 60 · Designing a learning system · Hard
A preprocessing pipeline imputes missing values and standardizes features using the complete dataset before cross-validation. Why is the resulting cross-validation estimate optimistically biased?
Not quite. Try another option.
Answer: Each fold's training process uses statistics from its validation fold
Imputation and scaling parameters must be fitted inside each training fold. Global preprocessing leaks validation-fold information into training and biases performance estimates.
Question 54 of 60 · Designing a learning system · Hard
A team compares 100 hyperparameter configurations by five-fold cross-validation and reports the best configuration's mean score as final performance. Which procedure best reduces selection bias while still tuning the model?
Not quite. Try another option.
Answer: Nested cross-validation with tuning restricted to inner folds
Nested cross-validation separates model selection from performance estimation. Inner folds tune hyperparameters, while untouched outer folds estimate the selected procedure's generalization.
Question 55 of 60 · Designing a learning system · Hard
A calibrated fraud model outputs . Investigating a transaction costs , while missing fraud costs ; a successful investigation prevents the entire fraud loss. When should the system investigate?
Not quite. Try another option.
Answer: Investigate when
Investigation has cost , while not investigating has expected cost . Investigation is preferred exactly when .
Question 56 of 60 · Designing a learning system · Hard
Users who receive a model-triggered intervention become less likely to exhibit the measured adverse outcome. Training future models directly on these observed outcomes can create which system-level problem?
Not quite. Try another option.
Answer: Intervention-induced feedback that changes observed labels
Model decisions alter outcomes, so observed labels no longer reveal what would have happened without intervention. This feedback can hide high-risk cases from later training data.
Question 57 of 60 · Concept of learning task · Hard
Using the formulation in which a program learns from experience with respect to tasks and performance measure , which specification is invalid because it confuses the task with the measure?
Not quite. Try another option.
Answer: : minimize RMSE; : predict prices; : sale records
Predicting prices is the task, whereas RMSE is a performance measure. The option reverses the roles of and .
Question 58 of 60 · Concept of learning task · Hard
In noise-free concept learning, the version space is the set of hypotheses consistent with every observed example. After adding one correctly labeled example, which statement must hold?
Not quite. Try another option.
Answer: The version space can only shrink or remain unchanged
A new consistency constraint can eliminate hypotheses but cannot make a previously inconsistent hypothesis consistent. A redundant example may leave the version space unchanged.
Question 59 of 60 · Concept of learning task · Hard
A concept learner searches only conjunctions of Boolean literals, but the true target is XOR of two attributes. With unlimited noise-free data, what prevents the learner from reaching zero population error?
Not quite. Try another option.
Answer: The target violates realizability in the hypothesis class
XOR cannot be represented by a single conjunction of literals. The learner therefore has approximation error even with unlimited clean data.
Question 60 of 60 · Concept of learning task · Hard
A finite hypothesis class is evaluated in a realizable PAC setting using a consistent learner. Which sample-size order is sufficient to achieve error at most with probability at least ?
Not quite. Try another option.
Answer:
For a consistent learner in the realizable finite-class case, a union bound gives sample complexity proportional to .
That's unit 6
Answer a few questions and your score shows up here.
Nearly through. Did unit 6 of ECAP792 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 6 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.