Free Online Directory k-Nearest Neighbors (k-NN) MCQs - MCQs Answers

k-Nearest Neighbors (k-NN) MCQs

10 min Score: 0 Attempted: 0/10 Subscribe
1. Which of the following is true about the k-Nearest Neighbors (k-NN) algorithm?
Explanation: k-NN is a supervised learning algorithm used for both classification and regression tasks.






2. What does the β€œk” in k-Nearest Neighbors represent?
Explanation: β€œk” represents the number of neighbors the algorithm uses to make a decision for classifying or predicting a data point.






3. Which of the following distance metrics is most commonly used in k-NN?
Explanation: Euclidean distance is the most commonly used metric to measure the distance between points in the feature space in k-NN.






4. How does k-NN handle classification tasks?
Explanation: In classification, k-NN assigns the class label based on the majority vote of the k-nearest neighbors.






5. What happens when the value of β€œk” is too small in k-NN?
Explanation: A small β€œk” can cause the model to be sensitive to noise, resulting in overfitting and poor generalization.






6. What happens when the value of β€œk” is too large in k-NN?
Explanation: A large β€œk” means the model considers more neighbors, which can reduce sensitivity to underlying patterns and lead to underfitting.






7. Which of the following is a disadvantage of the k-NN algorithm?
Explanation: k-NN requires storing all training data and calculating distances for every new point, which can be computationally intensive for large datasets.






8. Which technique can help improve the performance of k-NN on high-dimensional data?
Explanation: Feature scaling ensures all features contribute equally to distance calculations, improving k-NN performance in high-dimensional spaces.






9. In k-NN, what does the β€œvoting” process refer to in classification?
Explanation: In classification, the class label is assigned based on a majority vote from the k-nearest neighbors.






10. What is a common method to handle ties in k-NN classification (when multiple classes have the same number of neighbors)?
Explanation: In case of a tie, k-NN typically resolves it by choosing the class of the closest neighbor among the tied classes.






Leave a Comment

All copyrights Reserved by MCQsAnswers.com - Powered By T4Tutorials