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

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

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.

1. When the statistical properties of live input data change after deployment, it is called:

  1. Overfitting during training
  2. Data drift
  3. Tokenization
  4. Dropout

Answer: B) Data drift

Explanation: Models need monitoring and retraining. Lesson 8.5 · AI, Machine Learning & Data Analytics

Discuss this question

2. Standardization (z-score) transforms a feature to have:

  1. Integer values
  2. Mean 0 and standard deviation 1
  3. Range 0 to 100
  4. Only positive values

Answer: B) Mean 0 and standard deviation 1

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

Discuss this question

3. Information about the test set accidentally used during training causes:

  1. Underfitting
  2. Data leakage and over-optimistic results
  3. Lower training accuracy
  4. Missing values

Answer: B) Data leakage and over-optimistic results

Explanation: The model looks better than it really is. Lesson 8.3 · AI, Machine Learning & Data Analytics

Discuss this question

4. A search is guaranteed to find an optimal path when its heuristic is:

  1. Always zero only
  2. Random
  3. Larger than the true cost
  4. Admissible (never overestimates the true cost)

Answer: D) Admissible (never overestimates the true cost)

Explanation: f(n) = g(n) + h(n). Lesson 8.1 · AI, Machine Learning & Data Analytics

Discuss this question

5. A feature ranges from 50 to 100. What is the min-max normalized value of 75?

  1. 1.5
  2. 0.6
  3. 0.5
  4. 0.75

Answer: C) 0.5

Explanation: (x − min) ÷ (max − min) = (75 − 50) ÷ (100 − 50) = 0.5. Lesson 8.2 · AI, Machine Learning & Data Analytics

Discuss this question

6. A slightly altered image that fools a classifier into a wrong prediction is an:

  1. Outlier in EDA
  2. Augmented sample for training only
  3. Adversarial example
  4. Embedding

Answer: C) Adversarial example

Explanation: It is an AI security risk. Lesson 8.5 · AI, Machine Learning & Data Analytics

Discuss this question

7. Reducing "running", "ran" and "runs" to the base form "run" using vocabulary and grammar is:

  1. Lemmatization
  2. Tokenization
  3. Padding
  4. One-hot encoding

Answer: A) Lemmatization

Explanation: Stemming just chops endings. Lesson 8.5 · AI, Machine Learning & Data Analytics

Discuss this question

8. PCA reduces 100 features to 10 principal components. How many features does each sample have after PCA?

  1. 11
  2. 90
  3. 100
  4. 10

Answer: D) 10

Explanation: Each sample is projected onto the chosen components. Lesson 8.2 · AI, Machine Learning & Data Analytics

Discuss this question

9. Which statistic is least affected by outliers?

  1. Median
  2. Maximum
  3. Range
  4. Mean

Answer: A) Median

Explanation: The median depends only on the middle value. Lesson 8.2 · AI, Machine Learning & Data Analytics

Discuss this question

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

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

Answer: D) 50%

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

Discuss this question

11. To see the relationship between two numeric variables, the best chart is a:

  1. Scatter plot
  2. Histogram of one variable
  3. Pie chart
  4. Bar chart of categories

Answer: A) Scatter plot

Explanation: Each point is one observation. Lesson 8.2 · AI, Machine Learning & Data Analytics

Discuss this question

12. For cancer screening, missing a sick patient is very costly. Which metric matters most?

  1. Specificity only
  2. Recall
  3. Precision
  4. Accuracy

Answer: B) Recall

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

Discuss this question

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

  1. 1.22
  2. 1.5
  3. 0
  4. 1

Answer: D) 1

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

Discuss this question

14. Which technique helps reduce overfitting?

  1. Testing on training data
  2. Training longer forever
  3. Adding more irrelevant features
  4. Regularization (L1/L2)

Answer: D) Regularization (L1/L2)

Explanation: It penalises large weights. Lesson 8.3 · AI, Machine Learning & Data Analytics

Discuss this question

15. An expert system consists mainly of a knowledge base and an:

  1. Inference engine
  2. Operating system
  3. Compiler
  4. Activation function

Answer: A) Inference engine

Explanation: The inference engine applies rules to facts. Lesson 8.1 · AI, Machine Learning & Data Analytics

Discuss this question

16. Apache Spark is faster than classic Hadoop MapReduce mainly because it:

  1. Uses no cluster
  2. Is single-threaded
  3. Stores data only on tape
  4. Processes data in memory

Answer: D) Processes data in memory

Explanation: It reduces disk I/O. Lesson 8.5 · AI, Machine Learning & Data Analytics

Discuss this question

17. In k-NN with k = 3, the classes of the 3 nearest neighbours are: A, B, A. What class is predicted?

  1. A tie – no prediction
  2. B
  3. A
  4. The class of the farthest neighbour

Answer: C) A

Explanation: Majority vote: A (2 of 3). Lesson 8.3 · AI, Machine Learning & Data Analytics

Discuss this question

18. Using a small labelled set and a large unlabelled set together is:

  1. Reinforcement learning
  2. Pure supervised learning
  3. Semi-supervised learning
  4. Rule-based AI

Answer: C) Semi-supervised learning

Explanation: Useful when labelling is expensive. Lesson 8.4 · AI, Machine Learning & Data Analytics

Discuss this question

19. In k-NN with k = 5, the classes of the 5 nearest neighbours are: Spam, Ham, Ham, Spam, Ham. What class is predicted?

  1. Ham
  2. Spam
  3. A tie – no prediction
  4. The class of the farthest neighbour

Answer: A) Ham

Explanation: Majority vote: Ham (3 of 5). Lesson 8.3 · AI, Machine Learning & Data Analytics

Discuss this question

20. One complete pass of the whole training dataset through the network is an:

  1. Layer
  2. Epoch
  3. Batch
  4. Iteration of one sample only

Answer: B) Epoch

Explanation: Training usually needs many epochs. Lesson 8.5 · AI, Machine Learning & Data Analytics

Discuss this question

21. A classifier's confusion matrix is: TP = 40, FP = 10, FN = 5, TN = 45. What is its F1-score (to 2 decimal places)?

  1. 0.84
  2. 0.71
  3. 0.85
  4. 0.89

Answer: A) 0.84

Explanation: F1 = 2PR ÷ (P + R) = 2 × 0.80 × 0.89 ÷ (0.80 + 0.89) = 0.84. Lesson 8.3 · AI, Machine Learning & Data Analytics

Discuss this question

22. When an LLM confidently generates false information, it is called:

  1. Hallucination
  2. Clustering
  3. Tokenization
  4. Overfitting only

Answer: A) Hallucination

Explanation: Outputs must be verified. Lesson 8.5 · AI, Machine Learning & Data Analytics

Discuss this question

23. In k-means clustering, k is:

  1. The number of clusters chosen in advance
  2. The learning rate
  3. The number of features
  4. The number of neighbours

Answer: A) The number of clusters chosen in advance

Explanation: The elbow method helps choose k. Lesson 8.4 · AI, Machine Learning & Data Analytics

Discuss this question

24. For multi-class classification, the output layer usually uses:

  1. Softmax
  2. ReLU
  3. No activation
  4. Sigmoid for each class only in all cases

Answer: A) Softmax

Explanation: Softmax gives probabilities that sum to 1. Lesson 8.5 · AI, Machine Learning & Data Analytics

Discuss this question

25. "Satisfaction: low, medium, high" is which type of data?

  1. Nominal categorical
  2. Continuous numeric
  3. Ordinal categorical
  4. Unstructured

Answer: C) Ordinal categorical

Explanation: The categories have a natural order. Lesson 8.2 · AI, Machine Learning & Data Analytics

Discuss this question

Page 1 of 6 Next

Practise NSCT: AI, Machine Learning & Data Analytics MCQs

More Computer Science chapters