Module L2-M02 quiz

Study time
≈ 30 min (estimate)
Updated
2026-11-03
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 code-labs/l2-m02 (lab.coverage, lab.labeling, lab.versioning) are allowed.

Part A - Multiple choice (1 point/question)

Q1. The log of a (fictional) customer-support assistant has 10,000 messages. The team needs 200 messages for a dataset and wants a sampling method that does not add source bias of its own. Which method meets that?

  • A. The first 200 messages of the log, because it is fastest B. 200 messages that users gave a thumbs-down
  • C. 200 messages chosen at random with a recorded seed D. The 200 longest messages, because they contain the most information

Q2. A regex-based PII screener reports "0 detections" on 1,000 messages taken from the log. What is the most reasonable conclusion?

  • A. This batch certainly has no personal data left, because the screener sees nothing B. The screener may be missing one kind of data; adding a regex for it makes the batch certainly clean
  • C. The screener has finished running, so nobody needs to look at a sample of this batch by hand D. The batch has no PII in a form the screener recognises; forms it does not look for may still be there

Q3. The intent × style coverage matrix of a 300-case dataset has no empty cell in the list of required cells. What can be concluded from that matrix?

  • A. Every required cell has at least one case; the matrix says nothing yet about the quality of the cases or about the system B. Every required cell is checked, so the system is good in each of them and the per-cell results can be ignored
  • C. The dataset represents real traffic, because every cell has a case, however many cases each cell has D. No two cases are alike, because each cell only counts different cases

Q4. Two annotators label the same 100 items, and each labels about 90% of the items ok. Their raw agreement is 0.88. Which statement is most accurate?

  • A. 0.88 is high, so the guideline is good and no further measurement by case group is needed B. Two annotators labelling independently with the same 90/10 frequency would also agree about 0.82, so 0.88 does not say much; look by case group and by borderline case
  • C. Chance agreement is a number of each single annotator and has nothing to do with the raw agreement between the two D. The guideline lint passed, so the two annotators will surely label the same way on new items

Q5. The dataset is at version 1.3.0. The new release only adds 10 cases and changes the tags of 3 old cases; the content of the old cases does not change. Under the lab's versioning rule, the new version is:

  • A. 1.3.1 B. 1.3.0 (no bump) C. 2.0.0 D. 1.4.0

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

Q6. If the filter removes every error you planted in a batch of synthetic candidates, then the kept set has no errors left.

Q7. Splitting the sample size equally across strata and then computing the overall pass rate of all cases (each case with the same weight) gives a biased estimate of the population when the strata have different pass rates.

Q8. Splitting dev/test by shuffling the list of cases (with a seed) and cutting it in half, and reshuffling whenever cases are added, keeps the old cases on the same side.

Part C - Short answer (3 points/question)

Q9. The lab's log has 600 messages, of which 24 have the pii intent; the five intents have sizes hint 305, check 153, concept 82, offtopic 36 and pii 24. (a) What is the probability that a random sample of 60 messages contains no pii message (rounded to 4 digits)? (b) Allocate 60 cases across the five intents with floor mode and a floor of 5: how many cases do the pii group and the hint group get? (c) Why should a team still use a floor even though the probability in (a) is already fairly small?

Q10. A generator produces 1,000 candidates, 52% of which are division problems. The filter keeps 700 candidates. The system scores 0.93 on those 700 cases and 0.86 on the real log. (a) State the risk from how this set is constructed and one lab mechanism to reduce it, with the price to pay. (b) Explain the direction of the gap between 0.93 and 0.86 and say how the report should present it.

Q11. A labelling guideline has a definition, examples and counter-examples for two labels but no borderline-case rule. (a) State two things lint_guideline will report. (b) State one thing a passing lint does not prove, and how to prove it.

Part D - Scenario (3 points/question)

Q12. A team asks to release version 1.4.0 of a dataset that is at 1.3.0. They changed the expectations of 4 cases, added 20 cases, wrote "minor update" in the changelog, copied 3 cases of the dataset in as few-shot examples in the prompt, and split dev/test by shuffling and cutting in half. You are the release gatekeeper. State at least three problems, say which lab rule or tool catches each one, and say what you need in order to allow the release.