AI0-001 Machine Learning and Deep Learning Practice Question
A data analyst wants to predict housing prices based on square footage, number of bedrooms, and location. Which machine learning approach is most suitable?
⚠ Common exam trap
A common mix-up: candidates confuse regression (predicting a continuous value) with classification or unsupervised learning, and incorrectly select decision tree regression or clustering because they see 'prediction' and assume any tree-based or grouping method works.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Linear regression
Linear regression is the most suitable approach because the problem involves predicting a continuous numeric target (housing prices) from multiple independent variables (square footage, bedrooms, location). Linear regression models the linear relationship between the features and the target, providing interpretable coefficients and efficient training for this type of regression task.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
K-means clustering
Why it's wrong here
Clustering is unsupervised and used for grouping, not prediction of a continuous value.
- ✗
Decision tree regression
Why it's wrong here
Decision tree regression is unsuitable here because it produces piecewise constant predictions, assigning a single, discrete value to all data points within a leaf node, rather than a smoothly varying continuous output required for granular housing prices. While it is a valid regression technique for continuous targets, its output is a series of steps, not a truly continuous range. It is tempting as it handles continuous prediction, and would be appropriate for scenarios where the target variable can be effectively approximated by distinct, constant values across different feature segments, or as a base learner for ensemble methods.
- ✗
Association rule mining
Why it's wrong here
Association rules find relationships between items in transactions, not for regression.
- ✓
Linear regression
Why this is correct
Linear regression models the linear relationship between input features and a continuous output.
About these practice questions
This AI0-001 question is part of Courseiva's 754-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AI0-001 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AI0-001 exam.