
































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































Description This 300-question practice examination assesses foundational and applied concepts in machine learning. It covers learning paradigms, historical development, the ML ecosystem, data preparation, model evaluation, core algorithms, deep learning basics, deployment and MLOps, fairness, privacy, explainability, adversarial risks, and effective study strategies. Each item includes a rationale and key concept to support learning and exam preparation. BATCH 1 — QUESTIONS 1– 100 Question 1 Which statement best describes machine learning? A. A set of fixed rules written entirely by humans B. A field where systems learn patterns from data to make predictions or decisions C. A database management technique only D. A method for manually labeling every possible input Correct Answer: B Rationale: Machine learning builds models that learn patterns from data rather than relying solely on hand-coded rules. It is not limited to databases or manual labeling of every input. Key Concept: ML learns patterns from data to make predictions. Question 2 Which type of learning uses labeled examples to train a model?
A. Unsupervised learning B. Reinforcement learning C. Supervised learning D. Clustering Correct Answer: C Rationale: Supervised learning uses labeled input-output pairs. Unsupervised learning uses unlabeled data; reinforcement learning uses rewards. Key Concept: Supervised learning requires labeled data. Question 3 Which task is a classic example of supervised learning? A. Customer segmentation B. Spam email classification C. Dimensionality reduction D. Anomaly detection without labels Correct Answer: B Rationale: Spam classification uses labeled emails (spam/not spam), making it supervised. Clustering, dimensionality reduction, and unlabeled anomaly detection are unsupervised. Key Concept: Classification with labeled examples is supervised learning. Question 4 Which task is most associated with unsupervised learning? A. Predicting house prices B. Classifying images with labels C. Clustering customers by behavior D. Detecting spam with labeled data Correct Answer: C
Which is an example of a classification task? A. Predicting tomorrow’s temperature in degrees B. Predicting annual income in dollars C. Predicting whether a transaction is fraudulent D. Estimating a person’s height Correct Answer: C Rationale: Fraud detection predicts a discrete class (fraud/not fraud). Temperature, income, and height are continuous regression targets. Key Concept: Classification predicts discrete categories. Question 8 What is a feature in machine learning? A. The output label B. An input variable used to make predictions C. The model’s error rate D. The training time Correct Answer: B Rationale: Features are input variables. Labels are outputs; error rate and training time are not features. Key Concept: Features are input variables used by models. Question 9 What is a label in supervised learning? A. An input variable B. The target output the model learns to predict C. A type of optimizer D. A data storage format
Correct Answer: B Rationale: Labels are target outputs in supervised learning. Features are inputs; optimizers and formats are unrelated. Key Concept: Labels are target outputs. Question 10 What does the term “training” mean in machine learning? A. Deploying a model to production B. Adjusting model parameters to minimize error on data C. Collecting user feedback only D. Deleting irrelevant records Correct Answer: B Rationale: Training adjusts model parameters to reduce error. Deployment, feedback collection, and deletion are separate activities. Key Concept: Training optimizes model parameters using data. Question 11 What is the purpose of a train/test split? A. To train on all data and test on none B. To evaluate generalization to unseen data C. To increase model complexity D. To remove labels Correct Answer: B Rationale: A train/test split estimates how well a model generalizes to unseen data. Training and testing on the same data can overstate performance. Key Concept: Train/test splits estimate generalization.
test data D. The model has too many features Correct Answer: C Rationale: Underfitting means the model is too simple or poorly trained to capture the data’s structure, leading to poor performance overall. Key Concept: Underfitting indicates insufficient model capacity or training. Question 15 Which technique helps reduce overfitting? A. Increasing model complexity indefinitely B. Regularization C. Removing the test set D. Training on test data Correct Answer: B Rationale: Regularization penalizes complexity to reduce overfitting. Training on test data or removing the test set invalidates evaluation. Key Concept: Regularization reduces overfitting. Question 16 What is the bias-variance tradeoff? A. The balance between underfitting and overfitting B. The tradeoff between data size and storage C. The choice between Python and R D. The tradeoff between training time and electricity Correct Answer: A Rationale: High bias tends to underfit; high variance tends to overfit. Models aim for a balance that generalizes well.
Key Concept: Bias-variance tradeoff balances underfitting and overfitting. Question 17 A model with high bias is most likely to: A. Overfit the training data B. Underfit the data C. Generalize perfectly D. Require no data Correct Answer: B Rationale: High bias means the model is too simple and tends to underfit. High variance is associated with overfitting. Key Concept: High bias tends to underfit. Question 18 A model with high variance is most likely to: A. Underfit B. Overfit C. Have no parameters D. Ignore features Correct Answer: B Rationale: High variance means the model is sensitive to training data and may overfit. High bias is associated with underfitting. Key Concept: High variance tends to overfit. Question 19 What is cross-validation used for?
Rationale: A validation set guides hyperparameter tuning and model selection. The test set is reserved for final evaluation. Key Concept: Validation sets guide tuning; test sets estimate final performance. Question 22 What is data leakage? A. When training data contains information about the test target that would not be available at prediction time B. When data is stored in the cloud C. When labels are missing D. When the model is too simple Correct Answer: A Rationale: Data leakage occurs when information from outside the training data improperly influences training, inflating performance estimates. Key Concept: Data leakage inflates performance estimates. Question 23 Which is an example of data leakage? A. Scaling features using statistics from the full dataset before splitting B. Splitting data before scaling C. Using only training data to fit a scaler D. Evaluating on a held-out test set Correct Answer: A Rationale: Fitting preprocessing on the full dataset before splitting leaks test information into training. Scalers should be fit on training data only. Key Concept: Fit preprocessing only on training data.
Question 24 What is the purpose of feature scaling? A. To make features comparable in magnitude B. To remove labels C. To increase the number of features D. To delete the test set Correct Answer: A Rationale: Scaling puts features on comparable ranges, which can help many algorithms converge and perform better. Key Concept: Feature scaling improves comparability and optimization. Question 25 Which method standardizes features to mean 0 and standard deviation 1? A. Min-max scaling B. Standardization (z-score) C. One-hot encoding D. PCA Correct Answer: B Rationale: Standardization centers to mean 0 and scales to unit variance. Min-max scales to a fixed range. Key Concept: Standardization uses z-scores. Question 26 Which method scales features to a fixed range, often 0 to 1? A. Standardization B. Min-max scaling
Key Concept: Label encoding can imply false ordering. Question 29 What is imputation? A. Filling in missing values using estimated or chosen values B. Deleting all rows with missing values C. Adding labels D. Scaling features Correct Answer: A Rationale: Imputation replaces missing values with estimates (e.g., mean, median, model- based). Deletion is a different strategy. Key Concept: Imputation handles missing data. Question 30 What is an outlier? A. A value that differs markedly from other observations B. The average value C. A missing value D. A label Correct Answer: A Rationale: Outliers are observations far from the bulk of the data and may affect model performance. Key Concept: Outliers are extreme values relative to other observations. Question 31 What is the main goal of exploratory data analysis (EDA)?
A. To deploy models B. To understand data distributions, relationships, and quality issues C. To replace model evaluation D. To encrypt data Correct Answer: B Rationale: EDA summarizes and visualizes data to reveal patterns, anomalies, and quality issues before modeling. Key Concept: EDA informs data understanding and preprocessing. Question 32 Which metric is commonly used for regression? A. Accuracy B. Mean squared error (MSE) C. F1 score D. ROC AUC Correct Answer: B Rationale: MSE measures average squared difference for regression. Accuracy, F1, and ROC AUC are classification metrics. Key Concept: MSE is a regression metric. Question 33 Which metric is commonly used for classification? A. Mean absolute error B. R-squared C. Accuracy D. Root mean squared error Correct Answer: C
What does precision measure? A. Of predicted positives, the proportion that are truly positive B. Of actual positives, the proportion correctly identified C. The average squared error D. The model’s size Correct Answer: A Rationale: Precision = TP / (TP + FP). Recall measures the proportion of actual positives identified. Key Concept: Precision focuses on the correctness of positive predictions. Question 37 What does recall measure? A. Of predicted positives, the proportion correct B. Of actual positives, the proportion correctly identified C. The average error D. The number of features Correct Answer: B Rationale: Recall = TP / (TP + FN). It measures how many actual positives were found. Key Concept: Recall focuses on finding actual positives. Question 38 What is the F1 score? A. The harmonic mean of precision and recall B. The arithmetic mean of accuracy and error C. The sum of false positives D. The model’s training time Correct Answer: A
Rationale: F1 balances precision and recall using their harmonic mean, useful for imbalanced classes. Key Concept: F1 combines precision and recall. Question 39 What does a confusion matrix show? A. Counts of true/false positives and negatives B. Feature importance only C. Training time D. Data storage layout Correct Answer: A Rationale: A confusion matrix summarizes prediction outcomes by class, enabling precision, recall, and related metrics. Key Concept: Confusion matrices summarize classification outcomes. Question 40 What is a true positive? A. A positive instance correctly predicted as positive B. A negative instance predicted as positive C. A positive instance predicted as negative D. A negative instance correctly predicted as negative Correct Answer: A Rationale: True positives are correctly predicted positives. False positives are negatives predicted positive. Key Concept: True positives are correctly identified positives. Question 41
Correct Answer: B Rationale: Missing a true disease case (false negative) can be dangerous, so recall/sensitivity is often prioritized. Tradeoffs depend on context. Key Concept: False negatives can be costly in screening. Question 44 What is sensitivity? A. The same as recall B. The same as precision C. The same as accuracy D. The same as specificity Correct Answer: A Rationale: Sensitivity is the proportion of actual positives correctly identified, equivalent to recall. Key Concept: Sensitivity equals recall. Question 45 What is specificity? A. The proportion of actual negatives correctly identified B. The proportion of predicted positives correct C. The average error D. The model size Correct Answer: A Rationale: Specificity = TN / (TN + FP), measuring correct identification of negatives. Key Concept: Specificity measures correct negative identification. Question 46
What is the purpose of a baseline model? A. To provide a simple reference performance for comparison B. To replace all complex models C. To guarantee high accuracy D. To eliminate the need for data Correct Answer: A Rationale: Baselines (e.g., majority class, simple regression) provide a reference to judge whether a model adds value. Key Concept: Baselines contextualize model performance. Question 47 What is a hyperparameter? A. A parameter learned during training B. A setting chosen before training that controls model behavior C. A label D. A data type Correct Answer: B Rationale: Hyperparameters (e.g., learning rate, tree depth) are set before or during tuning and are not learned as model weights. Key Concept: Hyperparameters control training and model behavior. Question 48 What is grid search? A. Exhaustively evaluating specified hyperparameter combinations B. Training on the test set C. Deleting features randomly D. Removing labels