QMB3302 EXAM QUESTIONS AND
ANSWERS GRADED A+ 2026
Which of the following is a common use case for the random forest algorithm in machine
learning? - ANS The random forest algorithm is a powerful and widely used machine learning
algorithm that can be used for various tasks.
- One common use case for the random forest algorithm is for classification tasks, where it can
be used to predict the class of a new input based on a set of features.
For example, it can be used to classify whether an email is spam or not based on features like
the sender's address, the subject line, and the content of the email.
- It can also be used for regression tasks, where it can predict a continuous output variable
based on a set of input features.
- Another common use case is for feature selection, where the algorithm can be used to identify
the most important features for a particular task.
- Random forests are also robust to overfitting, which makes them suitable for high-dimensional
data with many features.
*Overall, the random forest algorithm is a versatile and powerful tool for various machine
learning tasks, including classification, regression, and feature selection.*
Which of the following is a potential benefit of using decision trees in machine learning? -
ANS There are several potential benefits of using decision trees in machine learning. Some of
the most significant ones are:
@COPYRIGHT 2026/2027 ALL RIGHTS RESERVED
1
,- Easy to interpret: Decision trees are easy to interpret and understand, even for people who are
not familiar with machine learning. The structure of a decision tree is intuitive, and the
decisions made at each node can be easily explained.
- Able to handle both categorical and numerical data: Decision trees can handle both categorical
and numerical data, making them useful for a wide range of applications.
Can handle non-linear relationships: Decision trees can capture non-linear relationships
between features and the target variable, which is useful when the relationship between the
features and the target variable is complex.
- Can be used for feature selection: Decision trees can be used for feature selection by
identifying the most important features for the task at hand. This can lead to simpler and more
efficient models.
- Computationally efficient: Decision trees can be trained relatively quickly, making them
suitable for large datasets.
*Overall, decision trees are a powerful and flexible tool in machine learning that can offer
several benefits, including easy interpretability, handling both categorical and numerical data,
capturing non-linear relationships, and being computationally efficient.*
Which of the following statements best describes an ensemble method in machine learning?
Group of answer choices
An algorithm that learns to find patterns and relationships in data without being explicitly
programmed
A model that predicts the value of a dependent variable based on the values of one or more
independent variables
A technique that combines the results of multiple models to improve overall predictive accuracy
@COPYRIGHT 2026/2027 ALL RIGHTS RESERVED
2
, A method that automatically groups similar data points into clusters based on their
characteristics - ANS An ensemble method in machine learning is a technique that combines
the results of multiple models to improve overall predictive accuracy.
The idea behind ensemble methods is to create a diverse set of models that are trained on
different subsets of the data or using different algorithms. Then, the predictions of these
models are combined in a way that reduces errors and increases accuracy. Ensemble methods
can be used for both classification and regression tasks and have been shown to improve the
performance of models significantly in many real-world applications.
Which of the following best describes supervised learning?
Group of answer choices
A machine learning approach where the algorithm learns to optimize a performance metric by
adjusting its internal parameters
A machine learning approach where the algorithm automatically groups similar data points into
clusters
A machine learning approach where the algorithm receives labeled data and learns to map
inputs to outputs based on those labels
A machine learning approach where the algorithm learns to find patterns and relationships in
data without being explicitly programmed - ANS Supervised learning is a machine learning
approach where the algorithm receives labeled data and learns to map inputs to outputs based
on those labels.
In supervised learning, the algorithm is trained on a labeled dataset, where each input data
point is associated with a known output value. The goal of the algorithm is to learn a mapping
@COPYRIGHT 2026/2027 ALL RIGHTS RESERVED
3
ANSWERS GRADED A+ 2026
Which of the following is a common use case for the random forest algorithm in machine
learning? - ANS The random forest algorithm is a powerful and widely used machine learning
algorithm that can be used for various tasks.
- One common use case for the random forest algorithm is for classification tasks, where it can
be used to predict the class of a new input based on a set of features.
For example, it can be used to classify whether an email is spam or not based on features like
the sender's address, the subject line, and the content of the email.
- It can also be used for regression tasks, where it can predict a continuous output variable
based on a set of input features.
- Another common use case is for feature selection, where the algorithm can be used to identify
the most important features for a particular task.
- Random forests are also robust to overfitting, which makes them suitable for high-dimensional
data with many features.
*Overall, the random forest algorithm is a versatile and powerful tool for various machine
learning tasks, including classification, regression, and feature selection.*
Which of the following is a potential benefit of using decision trees in machine learning? -
ANS There are several potential benefits of using decision trees in machine learning. Some of
the most significant ones are:
@COPYRIGHT 2026/2027 ALL RIGHTS RESERVED
1
,- Easy to interpret: Decision trees are easy to interpret and understand, even for people who are
not familiar with machine learning. The structure of a decision tree is intuitive, and the
decisions made at each node can be easily explained.
- Able to handle both categorical and numerical data: Decision trees can handle both categorical
and numerical data, making them useful for a wide range of applications.
Can handle non-linear relationships: Decision trees can capture non-linear relationships
between features and the target variable, which is useful when the relationship between the
features and the target variable is complex.
- Can be used for feature selection: Decision trees can be used for feature selection by
identifying the most important features for the task at hand. This can lead to simpler and more
efficient models.
- Computationally efficient: Decision trees can be trained relatively quickly, making them
suitable for large datasets.
*Overall, decision trees are a powerful and flexible tool in machine learning that can offer
several benefits, including easy interpretability, handling both categorical and numerical data,
capturing non-linear relationships, and being computationally efficient.*
Which of the following statements best describes an ensemble method in machine learning?
Group of answer choices
An algorithm that learns to find patterns and relationships in data without being explicitly
programmed
A model that predicts the value of a dependent variable based on the values of one or more
independent variables
A technique that combines the results of multiple models to improve overall predictive accuracy
@COPYRIGHT 2026/2027 ALL RIGHTS RESERVED
2
, A method that automatically groups similar data points into clusters based on their
characteristics - ANS An ensemble method in machine learning is a technique that combines
the results of multiple models to improve overall predictive accuracy.
The idea behind ensemble methods is to create a diverse set of models that are trained on
different subsets of the data or using different algorithms. Then, the predictions of these
models are combined in a way that reduces errors and increases accuracy. Ensemble methods
can be used for both classification and regression tasks and have been shown to improve the
performance of models significantly in many real-world applications.
Which of the following best describes supervised learning?
Group of answer choices
A machine learning approach where the algorithm learns to optimize a performance metric by
adjusting its internal parameters
A machine learning approach where the algorithm automatically groups similar data points into
clusters
A machine learning approach where the algorithm receives labeled data and learns to map
inputs to outputs based on those labels
A machine learning approach where the algorithm learns to find patterns and relationships in
data without being explicitly programmed - ANS Supervised learning is a machine learning
approach where the algorithm receives labeled data and learns to map inputs to outputs based
on those labels.
In supervised learning, the algorithm is trained on a labeled dataset, where each input data
point is associated with a known output value. The goal of the algorithm is to learn a mapping
@COPYRIGHT 2026/2027 ALL RIGHTS RESERVED
3