Machine Learning
Machine Learning
COMPUTER SCIENCE
MACHINE LEARNING
AUGUST EXAMINATIONS
_______________________________________________________________________
TIME: 1HOURS 30 MINUTES MARKS: 100
INSTRUCTIONS TO CANDIDATES
1. Write your name and your Student’s ID number in the space at the top of this page.
2. This paper consists of three (3) sections, A, B and C.
3. Answer all questions in section A and B.
4. Circle the letters representing your choices for section A questions.
5. Write the correct answers for Section B questions in the spaces provided.
6. Section C has two (2) questions. Answer any one question of your choice.
7. Cell phones and programmable devices should not be brought into the examination room.
TOTAL
Page 1 of 5
DO NOT TURN THIS PAGE UNTIL YOU ARE TOLD TO DO SO.
SECTION A (10 MARKS)
Page 2 of 5
16. Which evaluation metric is suitable for imbalanced classification problems? A) Accuracy
B) Precision C) F1 score D) Mean Absolute Error (MAE)
17. In reinforcement learning, what does an agent learn from interactions with an
environment? A) Supervised patterns B) Unsupervised patterns C) Rewards and penalties
D) Feature representations
18. Which technique is used to improve model performance by penalizing large coefficients?
A) Feature scaling B) Regularization C) Principal Component Analysis (PCA) D)
Imputation
19. Which algorithm is suitable for predicting categories or classes based on historical data?
A) Linear regression B) K-means clustering C) Decision trees D) None of the above
20. Which method is used to evaluate the importance of different features in a machine
learning model? A) Gradient descent B) Regularization C) PCA (Principal Component
Analysis) D) Feature importance analysis
Answers:
1. D) Structured learning
2. C) Both input-output pairs
3. C) Decision trees
4. C) Discover patterns or structure in data
5. C) Mean Squared Error (MSE)
6. C) Model training
7. C) PCA (Principal Component Analysis)
8. A) Support Vector Machines (SVM)
9. D) To evaluate model performance
10. A) Model performs well on training data but poorly on test data
11. C) One-class SVM (Support Vector Machine)
12. C) Imputation
13. D) Gradient descent
14. A) Sigmoid
15. A) Regularization
16. C) F1 score
17. C) Rewards and penalties
18. B) Regularization
19. C) Decision trees
20. D) Feature importance analysis
Page 3 of 5
8. What function converts input signals into output predictions?
9. What type of algorithm learns from rewards and penalties?
10. What method groups data points into clusters?
11. What term describes the ability of a model to learn without human intervention?
12. What technique transforms input data to have zero mean and unit variance?
13. What type of algorithm aims to predict continuous values?
14. What metric evaluates the correctness of positive predictions?
15. What method evaluates model performance using held-out data?
16. What approach combines predictions from multiple models?
17. What concept measures the uncertainty or confidence in a model's predictions?
18. What method learns by adjusting model parameters in response to errors?
19. What type of model does not involve explicit rules or logic?
20. What technique prevents the model from memorizing training examples?
Answers:
1. Optimization
2. Supervised
3. Generalization
4. Regularization
5. Unsupervised
6. Clustering
7. Dimensionality reduction
8. Activation
9. Reinforcement
10. Clustering
11. Autonomy
12. Standardization
13. Regression
14. Precision
15. Validation
16. Ensemble
17. Uncertainty
18. Learning
19. Neural network
Page 4 of 5
2. Explain the difference between bias and variance in machine learning models.
3. What role does the learning rate play in gradient descent optimization?
4. Describe the process of cross-validation and its importance in model evaluation.
5. How does regularization prevent overfitting in machine learning?
6. What are the advantages and disadvantages of deep learning compared to traditional machine
learning algorithms?
7. How can imbalanced datasets affect the performance of a classification model?
8. Explain the concept of hyperparameter tuning in machine learning.
9. What are the ethical considerations involved in deploying machine learning models in real-
world applications?
10. Describe the steps involved in preprocessing textual data for natural language processing
tasks.
11. How does ensemble learning improve the predictive performance of machine learning
models?
12. What are the different types of kernel functions used in Support Vector Machines (SVM)?
13. How does the choice of evaluation metric impact model selection in machine learning?
14. Explain the trade-off between bias and variance when choosing model complexity.
15. What are the key challenges in deploying machine learning models in production
environments?
16. Describe the process of feature engineering and its significance in machine learning.
17. How does the curse of dimensionality affect the performance of machine learning
algorithms?
18. What are the main differences between batch learning and online learning approaches in
machine learning?
19. Discuss the concept of transfer learning and its applications in machine learning.
20. How can interpretability and transparency be ensured in complex machine learning models?
Page 5 of 5