ML Foundations: 20 MCQs with answers

All 20 multiple-choice questions from this kit, free and with no sign-up.

Warm-up · 12 questions

Q1. What is machine learning?

Beginner
A A way for computers to learn from data without being explicitly programmed B A type of computer that can think like a human C A way for computers to follow pre-written instructions exactly D A programming language used to build websites
Show answer & explanation

A way for computers to learn from data without being explicitly programmed

Machine learning is about teaching computers to learn patterns from data, not just following fixed rules.

Q2. Which of the following is an example of supervised learning?

Beginner
A Grouping customers by purchasing habits without labels B Teaching a computer to recognize cats using labeled photos C A computer exploring a game to maximize rewards D Finding hidden patterns in a dataset without labels
Show answer & explanation

Teaching a computer to recognize cats using labeled photos

Supervised learning uses labeled data, like photos with 'cat' or 'not cat' labels, to train a model.

Q3. In machine learning, what is a 'label'?

Beginner
A A type of computer memory B A feature of the data C The answer we want the computer to predict D A mistake the computer makes
Show answer & explanation

The answer we want the computer to predict

A label is the correct output for a given input, used in supervised learning to teach the model.

Q4. What is a 'feature' in machine learning?

Beginner
A The final prediction made by the model B An individual measurable property of the data C The error rate of the model D A type of machine learning algorithm
Show answer & explanation

An individual measurable property of the data

Features are the inputs used by the model, like height and weight for predicting health.

Q5. What does 'training a model' mean?

Beginner
A Feeding data to the algorithm so it can learn patterns B Deploying the model to production C Testing the model on new data D Writing code for the model
Show answer & explanation

Feeding data to the algorithm so it can learn patterns

Training is the process where the algorithm learns from data by adjusting its parameters to reduce errors.

Q6. Which of the following is a common type of machine learning?

Beginner
A Supervised learning B Deductive learning C Transductive learning D Inductive learning
Show answer & explanation

Supervised learning

Supervised, unsupervised, and reinforcement learning are the three main categories; the others are not standard types.

Q7. What is the main goal of machine learning?

Beginner
A To create conscious machines B To store large amounts of data C To replace all human jobs D To make accurate predictions or decisions from data
Show answer & explanation

To make accurate predictions or decisions from data

The goal is to learn patterns from data to make predictions or decisions without explicit programming for each case.

Q8. Which of the following is an example of a machine learning application?

Beginner
A Spam detection in emails B A word processor spell checker C A calculator performing arithmetic D A web browser rendering HTML
Show answer & explanation

Spam detection in emails

Spam detection uses ML to classify emails based on learned patterns, unlike rule-based software.

Q9. What is a 'model' in machine learning?

Beginner
A The learned pattern or function that maps inputs to outputs B The programming language C The computer hardware D The raw data used for training
Show answer & explanation

The learned pattern or function that maps inputs to outputs

A model is the result of training—a mathematical representation that makes predictions from inputs.

Q10. What is 'accuracy' in classification?

Beginner
A The proportion of correct predictions out of total predictions B The error rate C The number of true positives D The speed of the algorithm
Show answer & explanation

The proportion of correct predictions out of total predictions

Accuracy is a simple metric: correct predictions divided by total predictions, often used for balanced datasets.

Q11. Machine learning is the same as traditional programming where rules are explicitly coded.

Beginner
A True B False
Show answer & explanation

False

Traditional programming uses explicit rules; ML learns from data to create its own rules.

Q12. In supervised learning, the model is trained on labeled data.

Beginner
A True B False
Show answer & explanation

True

Supervised learning uses labeled examples to teach the model the correct output for each input.

Building up · 7 questions

Q13. What is the main difference between supervised and unsupervised learning?

Intermediate
A Supervised is faster than unsupervised B Supervised uses labeled data, unsupervised uses unlabeled data C Unsupervised requires more data D Supervised is for games, unsupervised is for images
Show answer & explanation

Supervised uses labeled data, unsupervised uses unlabeled data

The key difference is the presence of labels: supervised learning has labeled examples, unsupervised finds patterns without labels.

Q14. Which of the following is an example of unsupervised learning?

Intermediate
A Clustering customers into segments based on behavior B Predicting house prices from historical data C Recognizing handwritten digits D Classifying emails as spam or not spam
Show answer & explanation

Clustering customers into segments based on behavior

Clustering is a classic unsupervised task because it groups data without predefined labels.

Q15. What is the role of a 'test set'?

Intermediate
A To choose the features B To evaluate how well the model performs on unseen data C To label the data D To train the model further
Show answer & explanation

To evaluate how well the model performs on unseen data

A test set is held out from training to check generalization—how the model does on data it hasn't seen.

Q16. What is 'overfitting'?

Intermediate
A When the model has too few features B When the model is trained for too long C When the model is too simple to capture patterns D When the model learns the training data too well, including noise, and fails on new data
Show answer & explanation

When the model learns the training data too well, including noise, and fails on new data

Overfitting means the model memorizes the training data rather than learning general patterns, hurting performance on new data.

Q17. In reinforcement learning, what does the agent receive after taking an action?

Intermediate
A A test set B A reward or penalty C A feature D A label
Show answer & explanation

A reward or penalty

Reinforcement learning uses rewards (positive) and penalties (negative) to guide the agent's behavior.

Q18. Which of the following best describes 'deep learning'?

Intermediate
A A subfield of machine learning using neural networks with many layers B A way to increase training data C A method for data cleaning D A type of unsupervised learning
Show answer & explanation

A subfield of machine learning using neural networks with many layers

Deep learning uses deep neural networks with multiple layers to learn complex patterns, a subset of ML.

Q19. What is the purpose of splitting data into training and test sets?

Intermediate
A To reduce the size of the dataset B To make the model train faster C To label the data D To evaluate the model's performance on unseen data
Show answer & explanation

To evaluate the model's performance on unseen data

Holding out a test set lets us see how well the model generalizes to new, unseen examples.

Topper level · 1 questions

Q20. What is the difference between a training set and a validation set?

Advanced
A They are the same B Validation set is used for final testing C Training set is used to learn parameters; validation set is used to tune hyperparameters D Training set is smaller than validation set
Show answer & explanation

Training set is used to learn parameters; validation set is used to tune hyperparameters

The training set updates the model's weights, while the validation set helps choose hyperparameters and avoid overfitting.

Make your own

Your notes can be a kit like these

Every kit here was made from real study material. Point Veda at a chapter, a PDF, a photo or a link and get notes, flashcards, practice MCQs, games and a scored test — free, in 42 languages.

  • Chapter notes
  • Flashcards
  • Practice MCQs
  • Scored tests
  • Exam prep

Get Veda free See what students get

Free to start · No ads · Works in 42 languages