Machine Learning Fundamentals and Model Techniques
Exam info
- Subject
- Machine Learning
- Exam type
- University
- Questions
- 20
- Duration
- 45 min
- Answers
- ✓ With explanations
Questions (20)
- Q 1.
Which statement best distinguishes machine learning from a traditional rule-based program?
- A.
Machine learning explicitly encodes every decision rule in the source code.
- B.
Machine learning learns a task-specific mapping or policy from data without requiring every rule to be coded manually.
- C.
Machine learning can only be applied to unstructured data such as images and text.
- D.
Machine learning requires a separate program to be written for every new input.
- A.
- Q 2.
A bank wants to estimate the future balance of a customer's account from historical balances, transaction amounts, and customer attributes. Which learning paradigm is most appropriate?
- A.
Supervised regression
- B.
Unsupervised clustering
- C.
Supervised binary classification
- D.
Reinforcement learning
- A.
- Q 3.
Which sequence most accurately represents a standard machine learning project workflow?
- A.
Deployment, data collection, model selection, training, preparation
- B.
Model selection, data collection, deployment, training, evaluation
- C.
Data collection, preparation, feature engineering, model selection, training, evaluation, deployment
- D.
Evaluation, training, data collection, deployment, feature engineering
- A.
- Q 4.
Why is feature engineering important before model training?
- A.
It removes the need for a labeled target variable.
- B.
It creates or selects informative representations that help the model identify useful patterns.
- C.
It guarantees that the selected algorithm will achieve perfect test performance.
- D.
It determines the production deployment channel for the model.
- A.
- Q 5.
A dataset for predicting employee resignation contains a department label but no target values. Which approach best fits this situation?
- A.
Supervised classification
- B.
Unsupervised clustering
- C.
Supervised regression
- D.
Reinforcement learning with a fixed reward
- A.
- Q 6.
In a binary fraud-detection system, a model produces 40 true positives, 10 false positives, 20 false negatives, and 30 true negatives. What is its recall?
- A.
0.40
- B.
0.67
- C.
0.60
- D.
0.80
- A.
- Q 7.
A medical screening model must minimize missed cancer cases, and false negatives are substantially more harmful than false positives. Which metric should receive the greatest emphasis?
- A.
Recall
- B.
Precision
- C.
Specificity alone
- D.
Mean squared error
- A.
- Q 8.
What does the ROC curve compare across different classification thresholds?
- A.
Training cost and inference time
- B.
True positive rate and false positive rate
- C.
Precision and training accuracy
- D.
Number of clusters and cluster density
- A.
- Q 9.
A classifier has a high true positive rate but also a high false positive rate. What does this imply about the ROC curve?
- A.
It lies relatively close to the upper-left region.
- B.
Its area under the curve may be reduced because many negative cases are incorrectly labeled positive.
- C.
Its area under the curve must be exactly 1.0.
- D.
It indicates that the classifier has zero false negatives.
- A.
- Q 10.
Why should a scaler be fitted only on the training data and then applied unchanged to the test data?
- A.
To prevent information from the test set from influencing the training process.
- B.
To make the test set necessarily larger than the training set.
- C.
To convert every categorical feature into a numerical one.
- D.
To guarantee that every algorithm will produce identical predictions.
- A.
- Q 11.
In GridSearchCV with five-fold cross-validation, what is the primary purpose of cross-validation?
- A.
To estimate performance more robustly and select hyperparameters without relying on one validation split.
- B.
To generate additional labeled observations for every feature.
- C.
To eliminate all bias in the original dataset.
- D.
To convert the target variable into a categorical label.
- A.
- Q 12.
The Iris example uses four flower measurements to predict one of three species. What type of learning problem is this?
- A.
Multi-class supervised classification
- B.
Binary unsupervised clustering
- C.
Supervised regression
- D.
Reinforcement learning
- A.
- Q 13.
Which characteristic most clearly separates DBSCAN from K-means?
- A.
DBSCAN requires every feature to have a categorical type.
- B.
DBSCAN determines clusters from local density and can identify clusters of irregular shapes.
- C.
DBSCAN always requires the number of clusters to be supplied in advance.
- D.
DBSCAN is a supervised method that requires class labels.
- A.
- Q 14.
A dataset contains groups with unequal densities and irregular shapes, and the number of groups is not known in advance. Which algorithm is generally the best starting choice?
- A.
K-means
- B.
DBSCAN
- C.
Linear regression
- D.
GridSearchCV
- A.
- Q 15.
When might K-medoids be preferred over K-means?
- A.
When outliers are influential or the data include categorical variables.
- B.
When the fastest possible clustering is required on a very large numerical dataset.
- C.
When cluster shapes must be inferred entirely from local density.
- D.
When no preprocessing or feature scaling is ever needed.
- A.
- Q 16.
What is the central purpose of the Expectation-Maximization algorithm in a Gaussian Mixture Model?
- A.
To repeatedly estimate component responsibilities and update parameters that increase model likelihood.
- B.
To assign a known target label to every observation before training.
- C.
To rank observations by their Euclidean distance from the origin.
- D.
To reduce the feature dimensions without changing their values.
- A.
- Q 17.
A labeled dataset is limited, but a large collection of similar unlabeled examples is available. Which approach can exploit both sources?
- A.
Semi-supervised self-training
- B.
Pure reinforcement learning
- C.
K-means with a fixed cluster count
- D.
Mean squared error calculation
- A.
- Q 18.
In co-training for semi-supervised learning, what is the defining mechanism?
- A.
Several models use different views of the data and teach one another by assigning labels to unlabeled examples.
- B.
One model repeatedly increases its own learning rate until it reaches zero error.
- C.
All available observations are assigned the majority class before any model is trained.
- D.
A supervised model is evaluated only once on the full dataset.
- A.
- Q 19.
During backpropagation, what happens after the network's prediction is compared with the target?
- A.
The input layer is permanently removed and the network is retrained from scratch.
- B.
The error is propagated backward to compute gradients used to update weights and biases.
- C.
The labels are replaced by the model's predictions for every test sample.
- D.
The activation function is removed to make the network linear.
- A.
- Q 20.
A multilayer perceptron must learn a complex nonlinear relationship, but its training performance is excellent while test performance is poor. Which action is most appropriate?
- A.
Increase the number of training iterations without changing anything else.
- B.
Remove all nonlinear activation functions.
- C.
Apply regularization such as L1, L2, or dropout and re-evaluate on unseen data.
- D.
Train the final evaluation on the test set to improve its reported accuracy.
- A.
Answers and explanations are in mode.