Sub topic 12
Checking quizzes: answer keys, distractors, and alignment
This chapter assumes you have read the chapters on drafting quiz questions and on principles of checking AI output. You should be comfortable reading short JSON files and Python scripts, and you should have a list of measurable learning objectives with IDs such as obj-1.
An AI tool can produce a quiz in seconds. The quiz will usually look finished. The work in this chapter is to find out whether it is correct, whether it tests what the course teaches, and whether a learner who knows the material can pass it.
What can go wrong in a drafted quiz
Quiz drafts fail in a few repeatable ways. Knowing them tells you what to look for.
- Wrong answer key. The marked option is not the correct one, or two options are correct.
- Broken key. The answer index is missing, out of range, or points at a different option than the draft's explanation describes.
- Weak distractors. A distractor is a wrong option. Weak ones are absurd, much shorter or longer than the answer, or obviously unrelated, so a learner can guess without knowing the topic.
- Misalignment. The question tests something no objective covers, or it tests a lower skill than the objective states.
- Shallow questions. Every question asks for recall of a term, even when the objective asks the learner to apply or build something.
- Invented or version-specific facts. The question depends on a menu name, a function, or a statistic the tool made up or that only holds in one software version.
Checking happens in two layers. A script can check structure quickly and consistently. A person must check meaning.
Layer 1: structural checks with a script
A structured format makes automatic checking possible. This is the quiz format used in the drafting chapter. Each question records the objective it tests and the index of the one correct option.
[
{
"id": "q1",
"objective": "obj-2",
"question": "Which formula adds the values in cells B2 through B6?",
"options": ["=SUM(B2:B6)", "=ADD(B2,B6)", "=B2+B6", "=TOTAL(B2:B6)"],
"answerIndex": 0
}
]The script below checks four things for every question: at least three options, no duplicate options, an answerIndex that is an integer within range, and an objective that exists in your course.
import json
def check_quiz(path, objective_ids):
problems = []
with open(path, encoding="utf-8") as f:
questions = json.load(f)
for q in questions:
qid = q.get("id", "?")
options = q.get("options", [])
if len(options) < 3:
problems.append(f"{qid}: fewer than 3 options")
if len(set(options)) != len(options):
problems.append(f"{qid}: duplicate options")
idx = q.get("answerIndex")
if not isinstance(idx, int) or not 0 <= idx < len(options):
problems.append(f"{qid}: answerIndex missing or out of range")
if q.get("objective") not in objective_ids:
problems.append(f"{qid}: objective not in the course objectives")
return problems
print(check_quiz("quiz.json", {"obj-1", "obj-2", "obj-3"}))An empty list means the structure passed. It does not mean the quiz is correct.
Gotchas in the script
- In Python,
TrueandFalseare integers, so a JSONtrueinanswerIndexwould pass theisinstance(idx, int)test and be treated as index 1. Real drafts rarely do this, but if you see odd keys, add an explicitisinstance(idx, bool)rejection. - Options that differ only by case or trailing spaces count as different strings, so near-duplicates such as
"sum"and"SUM "slip through. Normalize with.strip().lower()if your quizzes include such options. - A question missing the
optionskey is treated as having zero options. It is reported, but only as "fewer than 3 options". Read the whole list of problems for that ID before fixing one. - If the file is not valid JSON,
json.loadraises an error and no report is produced. Fix the syntax first. Tools often wrap JSON in extra prose or a code fence, which breaks parsing.
Layer 2: verifying the answer key by hand
Do not trust the draft's own explanation of the correct answer. A tool can write a confident justification for a wrong option.
Use this routine for each question:
- Cover the marked answer. Answer the question yourself from your course materials, not from memory of the draft.
- Compare your answer with the key. If they differ, find out why before changing anything.
- Check each remaining option and ask whether it could also be correct under some reasonable reading. A question with two defensible answers is a defect in the question, not in the learner.
- Run or look up anything that can be tested. For a formula question, type the formulas into a spreadsheet. For a code question, run the code.
- Check that the question matches what your lesson actually taught. A fact can be true in general and still not be in your course.
For the example question, =ADD(B2,B6) is wrong because ADD is not a standard sum function in common spreadsheet tools. =B2+B6 adds only two cells, not the range. =TOTAL(B2:B6) is not a standard function. The key is =SUM(B2:B6), and the other three each fail for a stated reason. If you cannot state a reason each distractor fails, the question is not yet checked.
Reviewing distractors
A good distractor is plausible to a learner who has a specific misunderstanding. It should not be a joke or an unrelated term. Check each distractor against this list.
| Check | Weak sign | Fix |
|---|---|---|
| Plausibility | Nobody could choose it seriously | Base it on a real misconception, such as using `+` instead of a range |
| Length and form | The correct option is the longest or the only one with detail | Make options similar in length and grammar |
| Clues in wording | Words like "always" or "never" appear only in wrong options | Remove absolute words or spread them across options |
| Overlap | Two options mean the same thing | Merge or replace one |
| "All of the above" | The option lets learners answer after confirming only two choices | Remove it and write a standalone option |
| Position | The key is option A in most questions | Vary the position of the key |
The last row is easy to measure with a short script. This one counts how often each position holds the answer.
import json
from collections import Counter
def key_positions(path):
with open(path, encoding="utf-8") as f:
questions = json.load(f)
return Counter(q["answerIndex"] for q in questions if "answerIndex" in q)
print(key_positions("quiz.json"))Generated quizzes often put the key in the first position. If one position holds most of the keys, shuffle the options and update answerIndex. Do this by editing carefully, then rerun the structural check, because moving options is a common way to break the key.
Checking alignment with objectives
Alignment means each question tests the skill that its objective states, at the level the objective states. The script confirms only that the objective ID exists. You must check the rest.
Build a coverage table from the quiz file. For each objective, list the questions that point to it and note the verb in the objective.
| Objective | Verb | Questions | Finding |
|---|---|---|---|
| obj-1: Enter and format data | Enter, format | none | Gap: no question |
| obj-2: Write basic sum formulas | Write | q1 | Recall only; add a task asking the learner to complete a formula |
| obj-3: Create a chart | Create | q2, q3 | Covered, but both ask for chart names |
Look for these problems:
- Uncovered objectives. An objective with no question is not assessed.
- Orphan questions. A question tied to no objective, or tied to the wrong one, tests something you did not promise to teach.
- Level mismatch. If the objective says "write" or "create," a multiple-choice question asking learners to recognize a term is weaker than the objective. Multiple choice may not fit these objectives fully, so pair them with a practice activity or a scenario question.
- Lopsided coverage. Ten questions on one objective and one on another suggests the weighting does not reflect the course.
You can count coverage with a few lines of Python, then read the result alongside the table above.
import json
from collections import Counter
def coverage(path, objective_ids):
with open(path, encoding="utf-8") as f:
questions = json.load(f)
counts = Counter(q.get("objective") for q in questions)
return {obj: counts.get(obj, 0) for obj in sorted(objective_ids)}
print(coverage("quiz.json", {"obj-1", "obj-2", "obj-3"}))An objective with a count of 0 is a gap.
Other quality checks
- Wording. Remove double negatives and trick phrasing. A learner should fail because they lack the skill, not because they misread the question.
- Independence. One question should not reveal the answer to another.
- Version dependence. If a question names a menu path or a feature, check it against the software version your course uses, or reword it to avoid the dependency.
- Fairness and bias. Check names, scenarios, and idioms. Replace examples that assume a particular country, currency, or background when the course does not.
- Unsupported claims. A statistic or a "best practice" in a question needs a source you can cite.
Recording what you changed
Keep a short log for each quiz: question ID, what was wrong, what you changed, and who checked it. The review workflow chapter turns this into a sign-off record. Even now, a log protects you from silently reintroducing an error when you regenerate part of the quiz.
Exercise
A drafted quiz passes your structural script with no problems. All 10 questions have answerIndex 0, and obj-3 has no questions. List the three actions you take before sign-off, and say which problem the script could never have found.
Show answer
First, check the answer key by hand for every question, since the script cannot tell whether option 0 is correct. Second, shuffle the options so keys are spread across positions, update each answerIndex, and rerun the structural check. Third, add or draft at least one question for obj-3, tied to its objective ID, and review it fully. The script could never find the uncovered objective as written, because it only checks that listed objectives exist for each question, not that each objective has a question. It also cannot find wrong keys or a key-position pattern.
Exercise
A question asks, "Which function adds a range of cells?" The options are "=SUM(B2:B6)", "a spreadsheet", "=SUM(B2:B6) and nothing else", and "none of the above". Name two problems with the distractors and rewrite them.
Show answer
The distractors are implausible ("a spreadsheet" is not a formula) and one repeats the key with extra words, so it could be read as correct. "None of the above" also weakens the question. A better set is "=ADD(B2,B6)", "=B2+B6", and "=TOTAL(B2:B6)". Each reflects a likely misconception, and none is correct.