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.
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
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
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
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
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
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
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
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
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
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
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.