Topic: Artificial Intelligence
A decision tree in AI can be used for
- A. Only classification tasks
- B. Only regression tasks
- C. Both classification and regression tasks
- D. Neither classification nor regression tasks
Answer: C. Both classification and regression tasks
Explanation: Decision trees are versatile supervised machine learning algorithms utilized for both classification (predicting discrete class labels) and regression (predicting continuous values) tasks. The CART (Classification and Regression Trees) algorithm is a primary example.