Sample questions
Question 1Easy
Training a model using a small amount of labelled data together with a large amount of unlabelled data is called:
- Semi-supervised learning
- Unsupervised learning
- Online learning
- Reinforcement learning
Answer: A. Semi-supervised learning
Explanation
Semi-supervised methods exploit structure in unlabelled data, useful when labelling is expensive.
Step-by-step solution
- Labelled data is often expensive; unlabelled data is cheap.
- Semi-supervised learning combines a small labelled set with a large unlabelled set.
- The unlabelled data helps the model learn the structure of the input space.
Why the other options are wrong
- B. Unsupervised learning uses no labels at all.
- C. Online learning is about updating on a stream of data, not label mix.
- D. Reinforcement learning uses rewards, not labels.
Tip: Semi = a little labelled + a lot unlabelled.
Question 2Easy
Principal Component Analysis (PCA) is mainly used for:
- Classification
- Reinforcement learning
- Clustering
- Dimensionality reduction
Answer: D. Dimensionality reduction
Explanation
PCA projects data onto orthogonal directions of maximum variance, keeping the top components to reduce the number of features.
Step-by-step solution
- PCA finds new axes (principal components) that capture the most variance.
- Keeping only the top few components reduces the number of dimensions.
- It uses no labels and does not assign classes or clusters.
Why the other options are wrong
- A. PCA does not predict classes.
- B. PCA has no agent, actions or rewards.
- C. PCA transforms features; it does not group points.
Tip: PCA = compress features while keeping variance.
Question 3Easy
An agent learns to play a game by receiving rewards and penalties for its actions. This is:
- Transfer learning
- Supervised learning
- Reinforcement learning
- Unsupervised learning
Answer: C. Reinforcement learning
Explanation
In reinforcement learning, the agent learns a policy that maximises cumulative reward through trial and error, without labelled correct actions.
Step-by-step solution
- The agent takes actions in an environment.
- It receives rewards or penalties as feedback.
- Learning to maximise total reward is reinforcement learning.
Why the other options are wrong
- A. Transfer learning reuses a model trained on another task.
- B. Supervised learning needs a correct label for each example, not rewards.
- D. Unsupervised learning finds patterns without any feedback signal.
Question 4Easy
Which of these algorithms is a supervised learning algorithm?
- Principal Component Analysis
- Hierarchical clustering
- Logistic regression
- K-means clustering
Answer: C. Logistic regression
Explanation
Logistic regression learns from labelled examples. K-means, PCA and hierarchical clustering work without labels.
Step-by-step solution
- Supervised algorithms need labelled training data.
- Logistic regression learns from features and known class labels.
- PCA, hierarchical clustering and k-means all work without labels.
Why the other options are wrong
- A. PCA reduces dimensions without using labels.
- B. Hierarchical clustering groups unlabelled points.
- D. K-means clusters unlabelled data.
Question 5Easy
Which task is an example of unsupervised learning?
- Classifying emails as spam using labelled examples
- Predicting house prices from past sales
- Recognising handwritten digits from thousands of labelled example images
- Grouping customers into segments without predefined labels
Answer: D. Grouping customers into segments without predefined labels
Explanation
Unsupervised learning finds structure in unlabelled data. The other tasks learn from labelled examples, which is supervised learning.
Step-by-step solution
- Unsupervised learning works without target labels.
- Grouping customers with no predefined segments is clustering.
- The other three all use known labels.
Why the other options are wrong
- A. Spam filtering learns from labelled emails, so it is supervised.
- B. House prices are known targets, so this is supervised regression.
- C. Labelled digit images make this supervised classification.
Tip: Labels present = supervised; no labels = unsupervised.
Question 6Hard
Which task is best described as anomaly detection?
- Predicting tomorrow's temperature from past weather records
- Flagging unusual credit-card transactions
- Ranking search results by relevance
- Translating text between languages
Answer: B. Flagging unusual credit-card transactions
Explanation
Anomaly detection identifies rare points that deviate from the bulk of the data and is often done without labels (e.g. isolation forests).
Step-by-step solution
- Anomaly detection looks for rare points that differ from normal behaviour.
- Unusual credit-card transactions are a classic example (fraud).
- The other options are forecasting, ranking and translation.
Why the other options are wrong
- A. Forecasting temperature is regression.
- C. Ranking search results is a ranking task.
- D. Translation is a sequence-to-sequence task.
Practise all 6 questions free
The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.
Open this topic in the app →