Module L2-M01 quiz

Study time
≈ 30 min (estimate)
Draft · reviewed by AI, not yet by a person. Content may change. English translation: AI-assisted, not human-reviewed.
On this page

12 questions, 20 points (Parts A and B: 1 point/question; Parts C and D: 3 points/question), 30 minutes. Pass mark: 14/20 (70%). The solutions are for instructors only. A calculator and lab.stats are allowed.

Part A - Multiple choice (1 point/question)

Q1. Which of the following requirements is an evaluation, not a test?

  • A. stats.wilson(0, 10) returns a lower bound of 0 B. The loader raises an error when a case's risk is not in {high, medium, low}
  • C. The tutor refuses at least 95% of off-topic requests D. dataset.fingerprint changes when one word in one question is edited

Q2. The "coverage" of a 95% confidence interval is:

  • A. The share of cases in the dataset that have at least one check B. The probability that the interval contains the true rate
  • C. The percentage of the grader's code lines that the tests touch D. The probability that every run of a case passes

Q3. One week after release, only 6% of sessions have a thumb, and 70% of the thumbs are thumbs-down. The most reasonable conclusion:

  • A. About 70% of the tutor's answers are wrong B. About 6% of the tutor's answers are wrong
  • C. The error rate cannot be inferred, because annoyed people press more often; use it as a tripwire against previous weeks
  • D. The signal is worthless because the response rate is under 10%

Q4. The threshold is 0.95. The dataset has 100 independent cases, and 96 cases pass. The decision by the Wilson interval bound:

  • A. SHIP because 0.96 is greater than 0.95 B. BLOCK because 4 cases still fail
  • C. INCONCLUSIVE, collect more cases D. Rerun until the lower bound reaches 0.95

Q5. A judge agrees 90% with human labels on a 60-sample file, 50% of which are replies deliberately picked from the "curt" class. The most accurate statement:

  • A. The judge is 90% correct on real traffic B. The number depends on how the sample was chosen; a random sample and a confusion matrix are needed
  • C. Because 90% is greater than 85%, the human graders can be dropped D. 10 more samples are enough to conclude

Part B - True/False (1 point/question)

Q6. Running more runs of the same 40 cases can narrow the uncertainty about the error rate across all questions a student could ask.

Q7. Running two graders in parallel that both target the same kind of error can expose an error that one of the two graders misses.

Q8. The rule "ship if the average score across criteria reaches 0.9" is sufficient, because a good score on other criteria can make up for a weak high-risk criterion.

Part C - Short answer (3 points/question)

Q9. A criterion has an expected pass rate of about 0.8. (a) Using the formula n = z² × p(1-p) / m² with z = 1.96, how many cases are needed for the half-width to be no more than ±0.05? (b) If there are only 120 cases, what is the approximate half-width?

Q10. PhepNhanh (fictional) is a chatbot that answers employees' questions about leave policy. The product wish: "the bot must answer accurately". Write one operational criterion from that wish: a one-sentence definition stating what counts as a failure, one failing example, one passing example, the risk level (with a reason) and the grader type (with a reason).

Q11. A team has five tests, each run once, and all five are green. Assume 10% of the system's runs are faulty. Compute the probability that such a set of five tests sees at least one fault, and say what this tells you about the sentence "green tests mean the system is good". What does a failing test prove?

Part D - Scenario (3 points/question)

Q12. A team's strategy sets the criterion safety (high risk) with a threshold of 0.99 and planned_size 60. They run 60 cases once and get 60/60 passing. The manager says: "All green, ship it." What do you do: what is the decision by the interval-bound rule and why (with the lower bound of the Wilson interval), what minimum planned_size does the lab's validator (code S07) require for an all-pass run to be able to reach this threshold, and what do you write in the report together with the next action?