Machine Learning Concepts Quiz

This quiz focuses on core machine learning concepts rather than definitions: overfitting and underfitting, features and labels, training and test sets, evaluation and regularisation. It complements the Machine Learning Basics quiz.

What this quiz covers

Study tip: Explain overfitting in your own words with an example; if you can, you understand most of this quiz.

Questions, answers and explanations

1. What is Machine Learning?

  1. A subset of Artificial Intelligence
  2. A web development framework
  3. A database management system
  4. A programming language

Answer: A subset of Artificial Intelligence

Machine Learning is a branch of AI that enables computers to learn from data.

2. Which programming language is most commonly used for Machine Learning?

  1. Python
  2. HTML
  3. CSS
  4. PHP

Answer: Python

Python is the most popular language for Machine Learning because of its rich libraries.

3. Which library is widely used for Machine Learning in Python?

  1. Scikit-learn
  2. Bootstrap
  3. React
  4. Flutter

Answer: Scikit-learn

Scikit-learn provides many machine learning algorithms and tools.

4. Which type of learning uses labeled data?

  1. Supervised Learning
  2. Unsupervised Learning
  3. Reinforcement Learning
  4. Deep Learning

Answer: Supervised Learning

Supervised learning trains models using labeled datasets.

5. Which type of learning works with unlabeled data?

  1. Unsupervised Learning
  2. Supervised Learning
  3. Reinforcement Learning
  4. Semi-Supervised Learning

Answer: Unsupervised Learning

Unsupervised learning finds patterns in unlabeled data.

6. Which algorithm is commonly used for classification?

  1. Decision Tree
  2. Bubble Sort
  3. Binary Search
  4. Dijkstra Algorithm

Answer: Decision Tree

Decision Trees are commonly used for classification tasks.

7. Which algorithm is mainly used for clustering?

  1. K-Means
  2. Linear Regression
  3. Logistic Regression
  4. Random Forest

Answer: K-Means

K-Means groups similar data points into clusters.

8. Which evaluation metric is commonly used for classification?

  1. Accuracy
  2. Mean
  3. Median
  4. Variance

Answer: Accuracy

Accuracy measures the percentage of correct predictions.

9. What is a dataset?

  1. A collection of data
  2. A programming language
  3. A web server
  4. A browser

Answer: A collection of data

A dataset is a structured collection of data used for analysis or training.

10. What is the goal of Machine Learning?

  1. Enable computers to learn from data
  2. Build websites
  3. Create databases
  4. Develop operating systems

Answer: Enable computers to learn from data

Machine Learning enables systems to improve performance using experience and data.

11. What is overfitting in Machine Learning?

  1. A model performs very well on training data but poorly on new data
  2. A model cannot learn from data
  3. A dataset contains no features
  4. A model has no parameters

Answer: A model performs very well on training data but poorly on new data

Overfitting happens when a model learns the training data too closely and fails to generalize to unseen data.

12. What is underfitting?

  1. A model is too simple to capture patterns in the data
  2. A model memorizes all training data
  3. A model has too many features
  4. A model always achieves 100% accuracy

Answer: A model is too simple to capture patterns in the data

Underfitting occurs when a model is too simple to learn the important patterns in the dataset.

13. What is a feature in Machine Learning?

  1. An input variable used by a model
  2. The final prediction
  3. A programming language
  4. A database

Answer: An input variable used by a model

Features are input variables that provide information to a machine learning model.

14. What is a label in supervised learning?

  1. The target value the model tries to predict
  2. A programming language
  3. A database table
  4. A training algorithm

Answer: The target value the model tries to predict

A label is the known target or output used when training a supervised learning model.

15. Why is a dataset divided into training and testing sets?

  1. To evaluate how well the model performs on unseen data
  2. To make the dataset larger
  3. To remove all features
  4. To increase the file size

Answer: To evaluate how well the model performs on unseen data

The training set is used to learn patterns, while the testing set evaluates generalization.

16. What is regression used for?

  1. Predicting continuous numerical values
  2. Grouping unlabeled data only
  3. Deleting data
  4. Creating web pages

Answer: Predicting continuous numerical values

Regression algorithms predict continuous values such as prices, temperatures, or sales.

17. What is classification used for?

  1. Predicting categories or classes
  2. Predicting only continuous numbers
  3. Cleaning databases
  4. Creating HTML pages

Answer: Predicting categories or classes

Classification assigns data to categories such as spam or not spam.

18. What is a neural network inspired by?

  1. The human brain
  2. A computer keyboard
  3. A database
  4. A web browser

Answer: The human brain

Artificial neural networks are inspired by the structure and functioning of biological neural networks.

19. What is Deep Learning?

  1. Machine Learning using multi-layer neural networks
  2. A database technology
  3. A web development language
  4. A type of operating system

Answer: Machine Learning using multi-layer neural networks

Deep Learning uses neural networks with multiple layers to learn complex patterns.

20. Which technique can help reduce overfitting?

  1. Regularization
  2. Removing the test set
  3. Using random labels
  4. Ignoring validation

Answer: Regularization

Regularization adds constraints to a model to reduce excessive complexity and help prevent overfitting.

Take the timed quiz