This Machine Learning Quiz contains 30 multiple-choice questions covering core concepts, learning types, common algorithms, model evaluation, data preparation, and introductory deep learning. Each question has one correct answer, followed by an answer key with brief explanations.
How to Use This Machine Learning Quiz
- Answer all 30 machine learning MCQs before checking the answer key.
- Choose the single best answer for each question.
- Use the explanations to review concepts you missed.
- Give yourself one point for every correct answer.
Machine Learning Fundamentals MCQs
1. What is the main goal of machine learning?
- To write a separate rule for every possible input
- To enable systems to learn patterns from data and make predictions or decisions
- To replace all database systems
- To increase computer storage capacity
2. Which statement best describes a feature in machine learning?
- A measurable input variable used by a model
- The final prediction produced by a model
- A hardware component used for training
- A programming error in the dataset
3. In supervised learning, what is included with each training example?
- Only an input value
- An input and its corresponding target or label
- Only a cluster identifier generated by the model
- A random reward signal
4. Which problem is a classification task?
- Predicting tomorrow’s temperature in degrees
- Estimating the price of a house
- Determining whether an email is spam or not spam
- Forecasting monthly electricity consumption
5. Which problem is a regression task?
- Predicting a continuous house price
- Assigning a document to one of four topics
- Identifying whether a transaction is fraudulent
- Grouping customers without predefined labels
6. What is a training dataset primarily used for?
- To estimate model parameters from examples
- To store only the final predictions
- To replace the test dataset
- To remove every unusual observation automatically
7. What does a machine learning model learn during training?
- Relationships in the training data that help map inputs to outputs
- The physical location of each data file
- Only the names of the input columns
- A fixed answer that is used for every input
8. Which term refers to the correct output associated with a supervised training example?
- Label
- Cluster
- Epoch
- Hyperplane
9. What is inference in machine learning?
- Using a trained model to produce predictions for input data
- Deleting the training dataset after every epoch
- Manually assigning labels to all future examples
- Converting a regression problem into a database query
10. Which of the following is a hyperparameter?
- A learning rate selected before or during model tuning
- A weight learned directly from training data
- A predicted class label
- An observed target value
Supervised, Unsupervised, and Reinforcement Learning Questions
11. Which algorithm is commonly used for both binary classification and probability estimation?
- Logistic regression
- K-means clustering
- Principal component analysis
- Apriori association rule mining
12. What does a decision tree use to divide the data?
- Feature-based split conditions
- Only random labels
- A single fixed threshold for every feature
- Database joins
13. What is the main idea behind a random forest?
- Combine predictions from multiple decision trees
- Use a single tree with no branching
- Group data into clusters using only Euclidean distance
- Reduce every dataset to one feature
14. Which algorithm assigns observations to one of K groups without using class labels?
- K-means clustering
- Linear regression
- Logistic regression
- Naive Bayes classification
15. What is the objective of principal component analysis?
- Represent data with fewer uncorrelated components while retaining as much variance as possible
- Assign a class label to every observation
- Increase the number of duplicate features
- Generate labels for reinforcement learning
16. In reinforcement learning, what guides an agent’s behavior?
- Rewards and penalties received from interactions with an environment
- A complete set of correct labels for every state
- Only a test dataset
- A fixed cluster assignment
17. Which learning approach is most suitable for discovering customer segments when no segment labels exist?
- Unsupervised learning
- Supervised regression
- Supervised classification
- Rule-based sorting only
18. Which method predicts a target by examining nearby training examples?
- K-nearest neighbors
- Principal component analysis
- K-means clustering
- Gradient calculation only
19. What is an ensemble method?
- A method that combines multiple models to produce a final prediction
- A method that always uses one feature
- A process for removing labels from data
- A database normalization technique
20. Which algorithm tries to find a separating boundary with the largest margin between classes?
- Support vector machine
- K-means clustering
- Linear regression
- Principal component analysis
Model Evaluation and Data Preparation MCQs
21. Why is a test dataset kept separate from the training dataset?
- To estimate how the trained model performs on unseen data
- To make the training dataset larger
- To guarantee perfect accuracy
- To select labels after deployment
22. What is overfitting?
- Performing very well on training data but poorly on unseen data
- Performing equally on every possible dataset
- Using too few input columns in all cases
- Training without any model parameters
23. What is underfitting?
- Failing to capture important patterns even in the training data
- Memorizing every training example exactly
- Using a separate validation set
- Reducing the learning rate during tuning
24. Which metric is calculated as correct predictions divided by all predictions?
- Accuracy
- Precision
- Recall
- Mean squared error
25. Which metric answers: “Of all examples predicted as positive, how many were actually positive?”
- Precision
- Recall
- Specificity
- Mean absolute error
26. Which metric answers: “Of all actual positive examples, how many did the model identify?”
- Recall
- Precision
- R-squared
- Silhouette score
27. What is the purpose of cross-validation?
- To evaluate a model across multiple train-validation splits
- To ensure the model sees the test labels during training
- To remove every missing value automatically
- To convert all features into text
28. Why are numerical features often standardized?
- To place features on comparable scales for algorithms sensitive to magnitude
- To convert every numerical feature into a label
- To guarantee that all algorithms become linear
- To eliminate the need for evaluation
29. What does one-hot encoding commonly do?
- Represent categories with separate binary indicator columns
- Replace all numerical values with their mean
- Remove every categorical feature
- Sort records by their target value
30. In a neural network, what is an epoch?
- One complete pass through the training dataset
- One input feature
- One predicted class
- One hidden neuron only
Machine Learning Quiz Answer Key with Explanations
| Question | Correct answer | Explanation |
|---|---|---|
| 1 | 2 | Machine learning uses data to learn patterns that support predictions or decisions instead of requiring a manually written rule for every case. |
| 2 | 1 | A feature is an input variable supplied to a model, such as age, distance, or transaction amount. |
| 3 | 2 | Supervised learning uses labeled examples containing both input data and a known target. |
| 4 | 3 | Spam detection predicts one of two categories, so it is a classification problem. |
| 5 | 1 | House price is a continuous numerical value, which makes this a regression task. |
| 6 | 1 | The training set is used to fit the model’s learnable parameters. |
| 7 | 1 | Training adjusts model parameters so the model can capture useful relationships between inputs and outputs. |
| 8 | 1 | A label or target is the known output associated with a supervised example. |
| 9 | 1 | Inference is the use of a trained model to generate a prediction for new or existing input data. |
| 10 | 1 | The learning rate is configured rather than directly learned as a model weight. |
| 11 | 1 | Logistic regression estimates class probabilities and is widely used for binary classification. |
| 12 | 1 | A decision tree repeatedly applies feature-based conditions to divide observations into branches. |
| 13 | 1 | A random forest aggregates predictions from many decision trees, usually reducing the instability of a single tree. |
| 14 | 1 | K-means is an unsupervised algorithm that partitions observations into K clusters. |
| 15 | 1 | PCA projects data onto orthogonal components ordered by the variance they explain. |
| 16 | 1 | A reinforcement learning agent learns from reward signals received after actions in an environment. |
| 17 | 1 | When no segment labels exist, clustering and other unsupervised methods can be used to discover structure. |
| 18 | 1 | K-nearest neighbors predicts using the labels or values of nearby training examples. |
| 19 | 1 | Ensemble methods combine several models, such as trees in a random forest or sequential learners in boosting. |
| 20 | 1 | A support vector machine seeks a separating hyperplane with a large margin between classes. |
| 21 | 1 | A separate test set provides a less biased estimate of performance on data not used to fit the model. |
| 22 | 1 | Overfitting occurs when a model learns training-specific detail that does not generalize well. |
| 23 | 1 | An underfit model is too limited, insufficiently trained, or otherwise unable to represent important patterns. |
| 24 | 1 | Accuracy is the fraction of all predictions that are correct. |
| 25 | 1 | Precision measures the proportion of predicted positives that are true positives. |
| 26 | 1 | Recall measures the proportion of actual positives identified by the model. |
| 27 | 1 | Cross-validation repeats training and validation across different partitions to estimate model performance more reliably. |
| 28 | 1 | Standardization can prevent large-scale features from dominating distance-based or gradient-based algorithms. |
| 29 | 1 | One-hot encoding creates a binary column for each represented category. |
| 30 | 1 | An epoch is one full pass through the training data during model training. |
Machine Learning Quiz Scoring Guide
| Score | Interpretation | Recommended review |
|---|---|---|
| 26–30 | Strong understanding of introductory machine learning concepts | Move to algorithm tuning, feature engineering, and applied projects. |
| 20–25 | Good foundation with a few gaps | Review the explanations for missed questions and compare related algorithms. |
| 13–19 | Developing understanding | Revisit supervised learning, unsupervised learning, and evaluation metrics. |
| 0–12 | More foundation work is needed | Study basic terminology, task types, datasets, and model validation before retaking the quiz. |
Machine Learning Quiz Concepts to Review
- Classification: predicts a category, such as spam or not spam.
- Regression: predicts a continuous numerical value, such as price or demand.
- Clustering: groups similar observations without predefined class labels.
- Overfitting: occurs when training performance is strong but generalization is weak.
- Precision and recall: describe different aspects of classification performance and should be selected according to the cost of false positives and false negatives.
- Feature preprocessing: may include scaling, categorical encoding, missing-value treatment, and leakage prevention.
Machine Learning Quiz FAQs
What topics are covered in this machine learning quiz?
The quiz covers machine learning terminology, supervised and unsupervised learning, reinforcement learning, classification, regression, clustering, common algorithms, model evaluation, preprocessing, overfitting, and basic neural-network training.
Are these machine learning MCQs suitable for beginners?
Yes. The questions focus on introductory concepts and include brief explanations. Learners should still review practical examples because a multiple-choice quiz cannot test every implementation detail.
What is the difference between classification and regression in machine learning?
Classification predicts a discrete category, while regression predicts a continuous numerical value. Spam detection is a classification example, and house-price prediction is a regression example.
Why can accuracy be misleading for an imbalanced dataset?
A model can achieve high accuracy by repeatedly predicting the majority class while failing to identify the minority class. Precision, recall, F1 score, a confusion matrix, and class-specific results can provide a more useful evaluation.
How should I prepare for a machine learning assessment?
Review core definitions, understand when common algorithms are used, practise interpreting evaluation metrics, and work through small datasets. Focus on reasoning about model behavior rather than memorizing isolated answers.
Machine Learning Quiz Editorial QA Checklist
- Verify that each machine learning MCQ has exactly one clearly correct answer.
- Check that classification, regression, clustering, and reinforcement learning are described without mixing their objectives.
- Confirm that precision and recall definitions use the correct positive-prediction and actual-positive denominators.
- Ensure that test data is not described as data used to fit or tune the final model.
- Review algorithm descriptions for scope: logistic regression for classification, K-means for clustering, and PCA for dimensionality reduction.
- Retest the answer-key numbering after adding, removing, or reordering any question.
TutorialKart.com