AI and Machine Learning Fundamentals Practice Test
Check the core ideas behind AI and machine learning: learning types, training and testing, overfitting, and the metrics interviewers ask about.
AI Skills
Before you start
- Questions
- 15
- Time
- 15 minutes
- Format
- Single section
- The timer starts when you press Start. When it reaches zero, your answers are submitted automatically.
- Use the numbered navigator to move between questions, and flag any you want to come back to.
- For typed answers, keep within the word limit. Answers over the limit are marked wrong, as in the real test.
- You can submit early. Your score, the correct answers and explanations appear straight away.
AI and Machine Learning Fundamentals Practice Test: all 15 questions with answers
Prefer to work through the test on paper? Answer the questions, then open “Show answer” to check.
Choose the correct answer, A, B, C or D.
Q1.Which statement best describes machine learning?
- A.Software that only follows rules written by hand
- B.A database that stores answers to every question
- C.Systems that learn patterns from data to make predictions or decisions
- D.A faster type of computer processor
Show answer
Answer: C. Systems that learn patterns from data to make predictions or decisions
Machine learning systems learn patterns from example data instead of relying only on hand-written rules.
Q2.What does supervised learning need?
- A.No data at all
- B.Only rewards from an environment
- C.Data without any labels
- D.Labelled examples with inputs and the correct outputs
Show answer
Answer: D. Labelled examples with inputs and the correct outputs
Supervised learning trains on labelled examples, such as emails marked spam or not spam.
Q3.A shop groups customers into segments without any labels. Which technique is this?
- A.Clustering
- B.Regression
- C.Classification
- D.Reinforcement learning
Show answer
Answer: A. Clustering
Clustering is unsupervised learning: it finds groups in unlabelled data.
Q4.Predicting the selling price of a house is which kind of task?
- A.Classification
- B.Regression
- C.Clustering
- D.Dimensionality reduction
Show answer
Answer: B. Regression
Regression predicts a continuous number, such as a price.
Q5.Deciding whether an email is spam or not spam is which kind of task?
- A.Regression
- B.Clustering
- C.Classification
- D.Translation
Show answer
Answer: C. Classification
Classification assigns each input to one of a fixed set of categories.
Q6.A model scores 99% on training data but 60% on new data. What is the most likely problem?
- A.Underfitting
- B.Data leakage into the test set
- C.The learning rate is zero
- D.Overfitting
Show answer
Answer: D. Overfitting
Overfitting means the model memorised the training data and does not generalise to unseen data.
Q7.Which change usually helps reduce overfitting?
- A.Adding regularisation such as dropout, or collecting more training data
- B.Training for many more epochs on the same data
- C.Removing the validation set
- D.Using a much larger model with the same small dataset
Show answer
Answer: A. Adding regularisation such as dropout, or collecting more training data
Regularisation and more data both make it harder for the model to memorise noise.
Q8.Why do we keep a separate test set?
- A.To make training faster
- B.To estimate how the model performs on data it has never seen
- C.To store extra training examples
- D.To increase the training accuracy
Show answer
Answer: B. To estimate how the model performs on data it has never seen
The test set is held back so it gives an honest estimate of real-world performance.
Q9.In reinforcement learning, how does an agent learn?
- A.From labelled input-output pairs
- B.By clustering unlabelled data
- C.By taking actions in an environment and receiving rewards or penalties
- D.By copying a fixed rule book
Show answer
Answer: C. By taking actions in an environment and receiving rewards or penalties
Reinforcement learning optimises behaviour through trial and error guided by rewards.
Q10.How are the weights of a neural network usually updated during training?
- A.They are chosen at random every step
- B.They never change after initialisation
- C.By gradient descent, using gradients computed with backpropagation
- D.By a human editing them manually
Show answer
Answer: C. By gradient descent, using gradients computed with backpropagation
Backpropagation computes how each weight affects the loss, and gradient descent moves the weights to reduce it.
Q11.What does 'deep' mean in deep learning?
- A.The model is trained underground
- B.The data is very old
- C.The model only works on images
- D.The neural network has many layers
Show answer
Answer: D. The neural network has many layers
Deep learning uses neural networks with many stacked layers that learn increasingly abstract features.
Q12.Precision answers which question?
- A.Of everything we predicted as positive, how many were actually positive?
- B.Of all actual positives, how many did we find?
- C.How fast is the model?
- D.How many features does the model use?
Show answer
Answer: A. Of everything we predicted as positive, how many were actually positive?
Precision = true positives / all predicted positives. It matters when false alarms are costly.
Q13.A cancer-screening model must miss as few real cases as possible. Which metric matters most?
- A.Precision
- B.Recall
- C.Training speed
- D.Model size
Show answer
Answer: B. Recall
Recall = true positives / all actual positives. High recall means few real cases are missed.
Q14.In machine learning, what is a 'feature'?
- A.A bug in the model
- B.The final prediction
- C.An input variable the model uses to make a prediction
- D.The name of the dataset
Show answer
Answer: C. An input variable the model uses to make a prediction
Features are the measurable inputs, such as square footage or number of rooms for a house-price model.
Q15.What makes generative AI different from a classic classifier?
- A.It can only answer yes or no
- B.It never uses neural networks
- C.It does not need any training data
- D.It creates new content such as text, images or code
Show answer
Answer: D. It creates new content such as text, images or code
Generative models produce new content that follows the patterns they learned, rather than only assigning a label.