MCQs / Computer Science / NSCT: AI, Machine Learning & Data Analytics

NSCT: AI, Machine Learning & Data Analytics MCQs — Computer Science (page 3)

127 multiple-choice questions on NSCT: AI, Machine Learning & Data Analytics from Computer Science, each with the correct answer and, where available, a teacher's explanation. Read through them to revise the chapter, then practise the same questions one by one to test yourself.

51. A random forest is an ensemble of:

  1. Linear regressions only
  2. Neural networks
  3. k-means clusters
  4. Decision trees

Answer: D) Decision trees

Explanation: It uses bagging and random feature subsets. Lesson 8.3 · AI, Machine Learning & Data Analytics

Discuss this question

52. For a spam filter, marking an important email as spam is very costly. Which metric matters most?

  1. R²
  2. Precision
  3. Recall
  4. MAE

Answer: B) Precision

Explanation: Precision = TP ÷ (TP + FP). Lesson 8.3 · AI, Machine Learning & Data Analytics

Discuss this question

53. Which search strategy uses the least memory but may not find the shortest path?

  1. Uniform-cost search
  2. Depth-first search
  3. A with admissible heuristic
  4. Breadth-first search

Answer: B) Depth-first search

Explanation: DFS stores only the current path. Lesson 8.1 · AI, Machine Learning & Data Analytics

Discuss this question

54. A dataset of 500 samples is used in 10-fold cross-validation. How many samples are in each test fold?

  1. 45
  2. 50
  3. 450
  4. 10

Answer: B) 50

Explanation: 500 ÷ 10 = 50; the other 450 are used for training in that round. Lesson 8.3 · AI, Machine Learning & Data Analytics

Discuss this question

55. A classifier's confusion matrix is: TP = 60, FP = 15, FN = 20, TN = 105. What is its recall?

  1. 25%
  2. 80%
  3. 75%
  4. 82.5%

Answer: C) 75%

Explanation: Recall = TP ÷ (TP + FN) = 60 ÷ 80 = 75%. Lesson 8.3 · AI, Machine Learning & Data Analytics

Discuss this question

56. Determining whether a product review is positive or negative is:

  1. Clustering
  2. Sentiment analysis
  3. Regression
  4. Object detection

Answer: B) Sentiment analysis

Explanation: A classic NLP classification task. Lesson 8.5 · AI, Machine Learning & Data Analytics

Discuss this question

57. Creating a new feature "age" from a "date of birth" column is:

  1. Overfitting
  2. Data leakage
  3. Tokenization
  4. Feature engineering

Answer: D) Feature engineering

Explanation: Useful features improve models. Lesson 8.2 · AI, Machine Learning & Data Analytics

Discuss this question

58. A classifier's confusion matrix is: TP = 90, FP = 30, FN = 10, TN = 870. What is its recall?

  1. 90%
  2. 10%
  3. 75%
  4. 96%

Answer: A) 90%

Explanation: Recall = TP ÷ (TP + FN) = 90 ÷ 100 = 90%. Lesson 8.3 · AI, Machine Learning & Data Analytics

Discuss this question

59. A classifier's confusion matrix is: TP = 25, FP = 25, FN = 25, TN = 25. What is its precision?

  1. 52%
  2. 51%
  3. 50%
  4. 49%

Answer: C) 50%

Explanation: Precision = TP ÷ (TP + FP) = 25 ÷ 50 = 50%. Lesson 8.3 · AI, Machine Learning & Data Analytics

Discuss this question

60. Actual values [2, 4, 6, 8] and predictions [3, 3, 7, 7]. What is the Mean Squared Error (MSE)?

  1. 1
  2. 3
  3. 2
  4. 4

Answer: A) 1

Explanation: Mean of squared errors = 1. Lesson 8.3 · AI, Machine Learning & Data Analytics

Discuss this question

61. A feature ranges from 0 to 48. What is the min-max normalized value of 12?

  1. 0.5
  2. 0.75
  3. 0.25
  4. 1.25

Answer: C) 0.25

Explanation: (x − min) ÷ (max − min) = (12 − 0) ÷ (48 − 0) = 0.25. Lesson 8.2 · AI, Machine Learning & Data Analytics

Discuss this question

62. A classifier's confusion matrix is: TP = 30, FP = 5, FN = 15, TN = 50. What is its accuracy?

  1. 30%
  2. 85.7%
  3. 66.7%
  4. 80%

Answer: D) 80%

Explanation: Accuracy = (TP + TN) ÷ total = 80 ÷ 100 = 80%. Lesson 8.3 · AI, Machine Learning & Data Analytics

Discuss this question

63. YOLO is a popular algorithm for:

  1. Real-time object detection
  2. Text translation
  3. Encryption
  4. Database indexing

Answer: A) Real-time object detection

Explanation: You Only Look Once. Lesson 8.5 · AI, Machine Learning & Data Analytics

Discuss this question

64. A value of 85 comes from data with mean 70 and standard deviation 10. What is its z-score?

  1. 3
  2. 15
  3. -1.5
  4. 1.5

Answer: D) 1.5

Explanation: z = (x − mean) ÷ std = (85 − 70) ÷ 10 = 1.5. Lesson 8.2 · AI, Machine Learning & Data Analytics

Discuss this question

65. A classifier's confusion matrix is: TP = 40, FP = 10, FN = 5, TN = 45. What is its precision?

  1. 85%
  2. 20%
  3. 88.9%
  4. 80%

Answer: D) 80%

Explanation: Precision = TP ÷ (TP + FP) = 40 ÷ 50 = 80%. Lesson 8.3 · AI, Machine Learning & Data Analytics

Discuss this question

66. k-fold cross-validation:

  1. Clusters the data into k groups
  2. Trains and tests the model on k different splits and averages the results
  3. Uses k test sets only
  4. Removes k features

Answer: B) Trains and tests the model on k different splits and averages the results

Explanation: It gives a more reliable estimate. Lesson 8.3 · AI, Machine Learning & Data Analytics

Discuss this question

67. A value of 40 comes from data with mean 50 and standard deviation 5. What is its z-score?

  1. -2
  2. -10
  3. 2
  4. -4

Answer: A) -2

Explanation: z = (x − mean) ÷ std = (40 − 50) ÷ 5 = -2. Lesson 8.2 · AI, Machine Learning & Data Analytics

Discuss this question

68. A learning rate that is too high may cause:

  1. More layers
  2. Underfitting only
  3. Training to overshoot and fail to converge
  4. Very slow but stable training

Answer: C) Training to overshoot and fail to converge

Explanation: Steps jump over the minimum. Lesson 8.5 · AI, Machine Learning & Data Analytics

Discuss this question

69. Actual values [2, 4, 6, 8] and predictions [3, 3, 7, 7]. What is the Mean Absolute Error (MAE)?

  1. 0
  2. 3
  3. 2
  4. 1

Answer: D) 1

Explanation: Errors [-1, 1, -1, 1]; mean of absolute values = 1. Lesson 8.3 · AI, Machine Learning & Data Analytics

Discuss this question

70. Finding rules like "customers who buy bread also buy butter" is:

  1. Association rule mining
  2. Image classification
  3. Reinforcement learning
  4. Regression

Answer: A) Association rule mining

Explanation: Apriori uses support and confidence. Lesson 8.4 · AI, Machine Learning & Data Analytics

Discuss this question

71. A classifier's confusion matrix is: TP = 90, FP = 30, FN = 10, TN = 870. What is its accuracy?

  1. 96%
  2. 90%
  3. 9%
  4. 75%

Answer: A) 96%

Explanation: Accuracy = (TP + TN) ÷ total = 960 ÷ 1000 = 96%. Lesson 8.3 · AI, Machine Learning & Data Analytics

Discuss this question

72. Tools like SHAP and LIME help with:

  1. Training faster
  2. Explaining model predictions
  3. Encrypting data
  4. Storing big data

Answer: B) Explaining model predictions

Explanation: Explainable AI builds trust. Lesson 8.5 · AI, Machine Learning & Data Analytics

Discuss this question

73. Actual values [3, 5, 2, 7] and predictions [4, 5, 3, 5]. What is the Mean Squared Error (MSE)?

  1. 1.22
  2. 1
  3. 6
  4. 1.5

Answer: D) 1.5

Explanation: Mean of squared errors = 1.5. Lesson 8.3 · AI, Machine Learning & Data Analytics

Discuss this question

74. A feature ranges from 140 to 200. What is the min-max normalized value of 160?

  1. 0.67
  2. 0.58
  3. 0.33
  4. 0.8

Answer: C) 0.33

Explanation: (x − min) ÷ (max − min) = (160 − 140) ÷ (200 − 140) = 0.33. Lesson 8.2 · AI, Machine Learning & Data Analytics

Discuss this question

75. Actual values [100, 150, 200] and predictions [110, 140, 230]. What is the Mean Absolute Error (MAE)?

  1. 366.67
  2. -10
  3. 19.15
  4. 16.67

Answer: D) 16.67

Explanation: Errors [-10, 10, -30]; mean of absolute values = 16.67. Lesson 8.3 · AI, Machine Learning & Data Analytics

Discuss this question

Previous Page 3 of 6 Next

Practise NSCT: AI, Machine Learning & Data Analytics MCQs

More Computer Science chapters