Skip to main content

Quiz: Testing AI-based systems

How to use this quiz

Ten exam-style questions on chapter 4 of the syllabus. Questions 6 and 7 are K3 red-teaming scenarios: in the exam such a question is worth 2 points. Answer each question before you open the explanation.

Quiz

1. A chatbot’s model is not updated by user conversations, but the provider releases a new model version every month. How is it best described?

  • A. A fully adaptive system
  • B. Locked at runtime but updated periodically, between locked and adaptive
  • C. A conventional system
  • D. A self-learning system
Show answer
B. Lesson: Locked versus adaptive systems.
Quiz

2. An image classifier misclassifies one image of a cat during testing. Why is this, on its own, not enough to judge the model?

  • A. Cats are hard to classify
  • B. Because of non-determinism and statistical performance, a single result does not reflect overall correctness; a large enough test suite is needed
  • C. The image should be removed from the test set
  • D. Classifiers are always correct
Show answer
B. Lesson: Why statistical testing is needed.
Quiz

3. A team compares its new recommendation model with an independent implementation by another team, using the same inputs. Which oracle approach is this?

  • A. Output boundaries
  • B. Back-to-back testing with a pseudo-oracle
  • C. Expert consultation
  • D. Environmental boundaries
Show answer
B. Lesson: Test oracles for AI systems.
Quiz

4. Which factor is part of the input explosion problem for generative AI?

  • A. The number of testers
  • B. The temperature parameter
  • C. The size of the test report
  • D. The programming language of the UI
Show answer
B. System prompt, user prompt, API access, parameters and the context window all influence the output. Lesson: How to test generative AI.
Quiz

5. What is a characteristic of benchmarks for generative AI?

  • A. They test only the user interface
  • B. They provide standardised datasets and tasks for consistent, reproducible comparison of models
  • C. They replace acceptance testing
  • D. They are created by each tester individually
Show answer
B. Lesson: How to test generative AI.
Quiz

6. (K3) A company plans to red-team its new HR chatbot, which answers employees’ questions about salaries and leave. It has formed a team of three security engineers, given them access to the production system, and asked them to “try to break it” for one day. Which change would most improve this red-teaming effort?

  • A. Give the team more time but keep the setup the same
  • B. Add HR, legal and diverse employee perspectives to the team, and move the testing to a safe test environment with the production configuration
  • C. Replace the security engineers with developers of the chatbot
  • D. Skip red teaming and run the existing functional test suite
Show answer
B. Step 1 is a diverse team (security alone misses safety, fairness and domain harms; HR and legal recognise wrong or harmful answers about salaries and leave). Step 2 is access in a safe test environment: attacking production can expose real employee data. Lesson: Red teaming GenAI systems.
Quiz

7. (K3) A red team found that the HR chatbot reveals other employees’ salaries when asked in a 15-turn conversation that slowly builds up a role-play. The developers have added a filter. What should the red team do next?

  • A. Close the finding, because a filter was added
  • B. Add the conversation and variations of it to a dataset with the expected behaviour, and use it to test the fix and every future version
  • C. Publish the conversation on the intranet as a warning
  • D. Repeat the same 15 turns once to confirm the fix
Show answer
B. Step 5 is creating datasets from the threats, used for mitigation and regression. Variations matter: a filter may block the exact conversation but not a reworded one. D tests only the exact case, once. Lesson: Red teaming GenAI systems.
Quiz

8. In an exploratory session, an LLM generates 2-value BVA test values for “valid quantity: 1 to 99”. It lists 0, 1, 99, 100. What is your verdict?

  • A. Correct and complete
  • B. Incomplete: 2 and 98 are missing
  • C. Wrong: 2-value BVA needs only 1 and 99
  • D. Wrong: 3-value BVA should be used
Show answer
A. For each boundary, the boundary value and its closest neighbour in the adjacent partition. 2 and 98 would be added by 3-value BVA. Lesson: Hands-on: exploratory testing of an LLM.
Quiz

9. A model’s predictions are correct, but the user interface shows the probability of the wrong class. At which test level should this be found?

  • A. Input data testing
  • B. ML model testing
  • C. Component integration testing
  • D. Data representativeness testing
Show answer
C. Predictions flowing from the model to the UI. Lesson: Test levels for ML systems.
Quiz

10. Which is a model risk in the ML workflow categorisation?

  • A. The framework has a security vulnerability
  • B. The training data was poisoned
  • C. The model is susceptible to adversarial examples
  • D. The data pipeline drops records
Show answer
C. A is a development risk; B and D are input data risks. Lesson: Risk-based testing for ML systems.

Your score

  • 9-10: ready for chapter 4. Remember the two K3 questions count double.
  • 7-8: read the explanations of the ones you missed, especially the red-teaming steps.
  • 6 or fewer: go through the module again.