Skip to main content

Quiz: Model testing

How to use this quiz

Ten exam-style questions on chapter 6 of the syllabus. Questions 5 and 6 are K3 metamorphic testing scenarios, worth 2 points each in the exam. Answer each question before you open the explanation.

Quiz

1. Which test approach mitigates the risk that a model update performs worse than the current model?

  • A. Back-to-back, A/B, smoke and regression testing
  • B. Label correctness testing
  • C. Data provenance testing
  • D. Usability testing
Show answer
A. Lesson: ML model risks and mitigations.
Quiz

2. A model card lists the intended use, but not the data the model was trained on, its test results per group or its limitations. What is the main purpose of reviewing it?

  • A. To retrain the model
  • B. To find gaps and inconsistencies, improve clarity, support testing and deployment, and verify regulatory compliance
  • C. To measure the model’s accuracy
  • D. To generate test cases automatically
Show answer
B. Lesson: Reviewing model documentation.
Quiz

3. A model achieved 94% accuracy on 300 test cases. How should this be reported according to good practice?

  • A. “94% accurate”
  • B. With its margin of error and confidence level, for example “94% ±3% at the 95% confidence level”
  • C. “Approximately correct”
  • D. Only as pass or fail
Show answer
B. Lesson: Functional performance testing of probabilistic systems.
Quiz

4. Testers add a few small stickers to a stop sign, and the image classifier now reads it as a speed limit sign. What is this?

  • A. Concept drift
  • B. An adversarial example
  • C. Underfitting
  • D. A label error
Show answer
B. Lesson: Adversarial testing.
Quiz

5. (K3) A model predicts the price of a used car from its age, mileage, brand and condition. Which follow-up test case is derived correctly from the source test case “5 years, 60,000 km, brand X, good condition” using a monotonic metamorphic relation?

  • A. 5 years, 90,000 km, brand X, good condition; expected: the predicted price is not higher than for the source
  • B. 6 years, 90,000 km, brand Y, poor condition; expected: a lower price
  • C. 5 years, 60,000 km, brand X, good condition; expected: the same price
  • D. 5 years, 90,000 km, brand X, good condition; expected: exactly €2,000 less
Show answer
A. One input changed (mileage up), and the relation states a direction (the price does not go up). B changes several inputs at once, so a difference cannot be attributed. C repeats the source test case. D states an exact expected value, which needs an oracle the tester does not have. Lesson: Metamorphic testing.
Quiz

6. (K3) A sentiment model scores reviews from −1 (negative) to +1 (positive). Source test case: “The hotel was clean and the staff were friendly.” Which pair of metamorphic relation and follow-up test case is correct?

  • A. Invariance: “The hotel was clean and the staff were friendly!!!”, score within a small tolerance of the source
  • B. Invariance: “The hotel was dirty and the staff were rude.”, same score as the source
  • C. Monotonicity: “The hotel was clean.”, score exactly 0.5
  • D. Invariance: a review of a different hotel, same score
Show answer
A. Adding punctuation should not change the sentiment much. B changes the meaning, so invariance does not apply (a negative-direction relation would). C gives an exact value. D is not a follow-up of the source. Lesson: Metamorphic testing.
Quiz

7. A spam filter’s accuracy drops because spammers start using a new kind of message the filter has never seen, while the definition of spam has not changed. What is this?

  • A. Concept drift
  • B. Data drift
  • C. Overfitting
  • D. Reward hacking
Show answer
B. The input distribution changed; the relationship between input and correct output did not. Lesson: Drift testing.
Quiz

8. Training accuracy and validation accuracy both stay around 60% and close together as training continues. What does this indicate?

  • A. Overfitting
  • B. Underfitting
  • C. Data drift
  • D. A good fit
Show answer
B. Lesson: Overfitting and underfitting.
Quiz

9. A team migrates a model from one ML framework to another, and runs both versions on the regression suite to compare the outputs. What is this?

  • A. A/B testing
  • B. Back-to-back testing
  • C. Adversarial testing
  • D. Drift testing
Show answer
B. Lesson: A/B testing and back-to-back testing.
Quiz

10. Which statistical tests are mentioned in the syllabus for A/B testing?

  • A. t-test, z-test, chi-squared test, Mann-Whitney U test
  • B. Cohen’s kappa only
  • C. Kolmogorov-Smirnov only
  • D. F1-score and recall
Show answer
A. Lesson: A/B testing and back-to-back testing.

Your score

  • 9-10: ready for chapter 6, the largest chapter of the exam.
  • 7-8: read the explanations of the ones you missed.
  • 6 or fewer: go through the module again, starting with metamorphic testing.