Sub topic 7
Drafting quiz questions tied to objectives
Prerequisites and scope
This chapter assumes you have read the chapters on measurable learning objectives and on drafting a course outline. You should be able to read short JSON files and Python scripts. You should also have used a chat-based AI assistant.
By the end you will be able to ask an AI tool for quiz questions, store each question with the objective it tests, and run a structural check on the result. The chapter on reviewing quizzes covers the human checks that come after this one.
Why quiz drafting starts from objectives
A quiz question is evidence that a learner can do what an objective says. If a question does not map to an objective, it measures something you never promised to teach. If an objective has no question, you cannot tell whether anyone met it.
AI tools write plausible questions quickly. They tend to write them from general knowledge of the topic, not from your course. Without the objectives in the prompt, the questions drift toward whatever is common on the web, not what your lessons covered.
So the objectives go into the prompt, and each question comes back labeled with the objective it tests. That label is what makes later checking possible.
The working model
Quiz drafting has four steps. The tool does the second step. You do the others.
- Fix the objectives and give each one a stable ID, such as
obj-1. - Prompt the tool for questions in a fixed, machine-readable format.
- Run a structural check on the output.
- Review the content by hand, which is covered in the quiz review chapter.
Match the question to the verb in the objective
A measurable objective contains a verb, and the verb limits which question types can test it. Tell the tool which kind of question each objective needs.
| Objective verb | Example objective | Question type that fits |
|---|---|---|
| Identify, recognize | Identify the correct sum formula | Multiple choice with one correct option |
| Apply, calculate | Write a formula to total a column | Scenario with a worked result to select |
| Explain, justify | Explain why a chart needs axis labels | Short answer with a scoring guide |
| Create, design | Create a chart from a table | Practice task with a checklist |
Multiple choice works well for recognizing and applying. It works poorly for "create" and "explain" objectives, because a learner can pick a correct option without producing anything. If the tool produces a multiple-choice question for a "create" objective, the question is misaligned even when its content is correct.
A format that supports checking
Free-text quizzes are hard to check. Ask for JSON where each question carries its own metadata. The format below records the objective and the index of the single 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
}
]Two design choices matter here.
- The answer is an index, not the option text. This avoids mismatches caused by a tool rewording an option but not the key.
- The objective is a field on every question. A question without one cannot pass the structural check.
Look at the example's distractors, the wrong options. =B2+B6 is a real formula that adds only two cells. =ADD(B2,B6) and =TOTAL(B2:B6) look like functions but do not exist in common spreadsheet tools. Good distractors reflect mistakes a learner might actually make.
Prompting for questions
Reuse the prompt structure from the prompt design chapter: audience, goal, objectives, format, constraints, and a request to flag uncertainty. For quizzes, add the output schema and the rules for options.
You are helping me draft quiz questions for a course.
Audience: working adults new to spreadsheets.
Objectives:
- obj-1: Enter and format data.
- obj-2: Write basic sum formulas.
- obj-3: Create a chart.
Task: write 2 multiple-choice questions for obj-2 only.
Format: a JSON array. Each item has id, objective, question, options, answerIndex.
Rules: exactly 4 options; one correct option; answerIndex is the 0-based index
of the correct option; wrong options must be plausible mistakes, not jokes;
do not use "all of the above" or "none of the above".
Constraint: do not assume any specific software version.
If you are unsure that an answer is correct, add a field "uncertain": true.Requesting a small batch for one objective at a time has two benefits. The output is short enough to review closely. You also control coverage, since you decide how many questions each objective gets.
Be careful with the uncertain flag. A tool that does not flag a question is not telling you the question is right. The flag is a prompt for extra attention, not a guarantee about the rest.
A structural check
Some quiz problems are mechanical, and a script finds them faster and more reliably than a person scanning the file. The script below checks four things: at least three options, no duplicate options, an answerIndex that points at a real option, 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 no structural problems were found. It does not mean the quiz is good.
What the script cannot see
The script does not check whether the marked answer is correct. A question can have a valid index that points at a wrong option. It also does not check whether the question really tests the objective it names, only that the objective ID exists. A tool may label a question obj-2 because that was the objective you asked about, even if the question tests something else.
Both gaps need a human. This is the same split as in the verification principles chapter: scripts catch form, people catch meaning.
Extending the check for coverage
Coverage is easy to add. Count questions per objective and report any objective with none.
from collections import Counter
def coverage(questions, objective_ids):
counts = Counter(q.get("objective") for q in questions)
return {oid: counts.get(oid, 0) for oid in sorted(objective_ids)}A result such as {"obj-1": 0, "obj-2": 2, "obj-3": 0} shows that two objectives have no questions yet.
Common errors in drafted quizzes
These are the problems you will see most often. Each one passes the structural check.
- Wrong key. The
answerIndexpoints at an option that is incorrect, or at one of two defensible options. Tools often produce a correct question and a wrong key together. - Two right answers. A distractor is also correct in some reading. For example,
=B2+B3+B4+B5+B6also adds B2 through B6, so it cannot appear as a wrong option next to=SUM(B2:B6). - Recall only. Every question asks for a definition, while the objective says "apply." The quiz is easy to pass without being able to do the task.
- Position bias. The correct option is often first or second. Shuffle options after review, and update the index when you do.
- Giveaway options. The correct option is longer or more specific than the others, so learners pick it without knowing the content.
- Invented specifics. The question depends on a menu name, shortcut, or feature that differs by software version or does not exist.
Shuffling safely
If you shuffle options by hand or with a script, move the answer with them. The safest approach is to find the correct option's text first, shuffle, then look up its new position.
import random
def shuffle_options(q, rng=random):
correct = q["options"][q["answerIndex"]]
options = q["options"][:]
rng.shuffle(options)
return {**q, "options": options, "answerIndex": options.index(correct)}This relies on options being unique, which the structural check already enforces.
A practical drafting loop
- List objectives with IDs and verbs.
- Choose a question type for each objective from its verb.
- Prompt for a small batch per objective in the JSON format.
- Run
check_quizandcoverage. Send problems back to the tool or fix them yourself. - Hand the draft to review, with the tool's
uncertainflags visible. - Record which questions were generated, which were edited, and who approved them.
Step 6 feeds the review workflow chapter. Keep it light now, and it costs little later.
Exercise
A drafted question has objective "obj-2", four unique options, and answerIndex 2. The script reports no problems. Name two things that could still be wrong with the question, and say how you would find each.
Show answer
First, the option at index 2 might not be correct, or a second option might also be correct. Work the problem yourself without looking at the key, then compare. Second, the question might not test obj-2 even though it is labeled that way, for example if it only asks for a definition while obj-2 says "write." Compare the question's required action to the verb in the objective. The script checks only that the fields are present and in range, not that they are true.
Exercise
Your objective is "Create a chart from a table of monthly totals." The tool returns three multiple-choice questions about chart vocabulary. What is wrong, and what would you ask for instead?
Show answer
The question type does not match the verb. Choosing a vocabulary term does not show that a learner can create a chart. Ask instead for a practice activity with a checklist, such as: data range selected, chart type suited to the data, title and axis labels present. Multiple-choice questions can still support the objective as a warm-up, but they should not be the only evidence.