Sub topic 8
Adding quizzes, assignments and practice tests
This chapter covers the practice activities Udemy expects in a course. It explains what each activity type is for and how to write questions that pass review. It ends with a script that lints a quiz before you upload it.
It assumes you have a curriculum outline with sections and lectures, and written learning objectives. It also assumes you know how to add a lecture item in the Udemy course editor. Thresholds mentioned below, such as minimum question counts, change over time. Confirm them in the Instructor Help Center before you rely on them.
Why reviewers look for practice
Udemy's review checks whether a learner can apply what they were taught, not only watch it. A course made only of videos has no way to show that its objectives were met. Practice activities fill that gap, and they also give learners a reason to stay engaged between lectures.
In the self-audit from the earlier chapters, the practice check is a simple structural test: does at least one quiz or assignment exist? That test is the minimum. A reviewer or learner who opens your quizzes will also judge their quality. A quiz with ambiguous questions or only one trivial question per section can pass the structural check and still draw feedback.
The activity types
Udemy offers several item types. They differ in effort for you, effort for the learner, and the kind of skill they test.
| Activity | What the learner does | Typical use | Feedback |
|---|---|---|---|
| Quiz | Answers multiple-choice or multiple-select questions | Checking recall and understanding after a section | Automatic, with per-answer explanations |
| Coding exercise | Writes code in the browser, run against tests | Programming courses | Automatic, from your test cases |
| Assignment | Completes a task, often outside the platform, and may submit work | Applying a skill to a realistic problem | Self-checked against your solution, or reviewed by you |
| Practice test | Takes a timed, exam-style set of questions | Certification preparation | Automatic score and explanations |
Availability of coding exercises depends on the course topic. A practice test can be a section inside a regular course or the whole product, in a course type built around practice tests. Udemy sets separate requirements for practice-test courses, including a minimum number of tests and questions per test. Check those figures in the current guidelines instead of copying a number from a tutorial.
Matching activities to objectives
Choose the activity from the verb in the learning objective. An objective that says "Explain the difference between unit and integration tests" suits a quiz. An objective that says "Write tests for a function" needs a coding exercise or an assignment, because a multiple-choice question cannot show that the learner can write them.
| Objective verb | Suitable activity |
|---|---|
| Define, identify, recognise, list | Quiz |
| Explain, compare, choose | Quiz with scenario questions |
| Write, build, configure | Coding exercise or assignment |
| Diagnose, debug | Assignment with a broken starting file |
| Prepare for an exam | Practice test |
If an objective has no matching activity, either add one or reword the objective to claim only what the course can check. Wording the objective more modestly is legitimate. Leaving the mismatch in place is what draws feedback about misleading objectives.
Where practice goes in the curriculum
Place a short quiz at the end of each section. This reinforces the section while the material is fresh. Put one larger assignment near the middle or end that combines several sections. Put a practice test last if you offer one.
Avoid two common layouts. The first is a single quiz at the very end, which tells learners nothing until they have already watched hours of content. The second is a quiz at the start of a section on material you have not yet taught, which reads as a mistake to reviewers.
Writing quiz questions that hold up
Most review feedback on quizzes concerns clarity, not format. These rules prevent most of it.
- Ask one thing per question. A question that tests two concepts leaves you unable to tell which one the learner got wrong.
- Make exactly one option clearly best in a multiple-choice question. If two answers are defensible, learners will dispute the question. Use multiple-select only when the question says how many answers to choose, or says "select all that apply".
- Write plausible wrong answers. Each distractor should reflect a real misunderstanding, such as confusing two similar terms. Joke options and obviously absurd options teach nothing.
- Avoid "all of the above" and "none of the above". They let learners pass by eliminating options without understanding the topic.
- Test what you taught. Every question should be answerable from the lectures in that section. A question on material you never covered is the most common cause of learner complaints.
- Write an explanation for every answer option. The editor lets you attach a reason to each option. A short explanation of why the correct answer is right, and why a tempting wrong answer is wrong, turns a quiz into a teaching tool.
- Keep the wording neutral. Do not hint at the answer through length or phrasing. Learners notice when the longest option is always correct.
Designing assignments
An assignment is a task with a defined outcome. A good one has four parts.
- A clear brief. State the goal, the inputs, and what a finished result looks like, in a few short paragraphs.
- A starting point. Provide files, a template, or a dataset when the task would otherwise begin with a long setup.
- Success criteria. Give a checklist the learner can use to judge their own work. Udemy does not grade assignments automatically, so this checklist replaces a grade.
- A solution. Provide a worked solution, ideally as a short video or a downloadable file, which learners open after they try the task.
Estimate the time the task takes and say so in the brief. An assignment promised as "15 minutes" that takes two hours earns poor ratings. Test it yourself, or ask someone else to, and use their time rather than yours, because you already know the answer.
Practice tests
A practice test imitates an exam. It is timed, uses a larger pool of questions, and reports a score. The extra requirements are about realism.
- Match the real exam's question style and difficulty as closely as you can honestly describe.
- Cover the exam's topics in proportion to their weight in the published exam guide.
- Write explanations that cite what the learner should review.
- Describe the test truthfully on the landing page. Phrases such as "guaranteed pass" or "real exam questions" are a policy problem, and the content policies chapter explains why. Writing your own original questions avoids copying material from a certification body.
Linting a quiz before you upload it
Reading every question yourself is slow and misses mechanical mistakes. A short script catches the mechanical ones, such as a missing explanation or no correct answer, so your own reading can focus on clarity. This script complements the outline checker used in the self-audit chapter. It works on a quiz you keep in your own notes or a file, because it does not talk to Udemy.
MIN_OPTIONS = 3
MAX_OPTIONS = 5
BANNED_PHRASES = ("all of the above", "none of the above")
def lint_question(number, question):
"""Return a list of problems found in one quiz question dict."""
problems = []
options = question["options"]
correct = [opt for opt in options if opt["correct"]]
if not MIN_OPTIONS <= len(options) <= MAX_OPTIONS:
problems.append(
f"Q{number}: has {len(options)} options; use {MIN_OPTIONS} to {MAX_OPTIONS}."
)
if not correct:
problems.append(f"Q{number}: no option is marked correct.")
if question["type"] == "single" and len(correct) > 1:
problems.append(f"Q{number}: single-answer question has {len(correct)} correct options.")
for opt in options:
text = opt["text"].lower()
if any(phrase in text for phrase in BANNED_PHRASES):
problems.append(f"Q{number}: avoid the option '{opt['text']}'.")
if not opt.get("explanation", "").strip():
problems.append(f"Q{number}: option '{opt['text']}' has no explanation.")
lengths = [len(opt["text"]) for opt in options]
if correct and len(correct) == 1 and len(options) >= MIN_OPTIONS:
longest = max(lengths)
if len(correct[0]["text"]) == longest and lengths.count(longest) == 1:
problems.append(f"Q{number}: the correct answer is the longest option.")
return problems
def lint_quiz(quiz):
problems = []
for number, question in enumerate(quiz, start=1):
problems.extend(lint_question(number, question))
return problems
quiz = [
{
"type": "single",
"options": [
{"text": "It runs one function in isolation", "correct": True,
"explanation": "Unit tests isolate a single piece of behaviour."},
{"text": "It runs the whole app", "correct": False,
"explanation": "That describes an end-to-end test."},
{"text": "All of the above", "correct": False, "explanation": ""},
],
},
]
for problem in lint_quiz(quiz):
print(problem)Run as shown, the script reports two problems for question 1: the "All of the above" option, and the missing explanation on that same option. It also flags that the correct answer is the longest option. A linter cannot judge whether a question is fair or clear. It only removes the cheap mistakes.
Common errors
- One question per quiz. Reviewers may accept it structurally, but a one-question quiz does not check understanding of a section. Aim for several questions that cover each objective in the section.
- Questions that repeat lecture wording. A learner can match phrases without understanding. Rephrase or use a small scenario.
- Answers that depend on opinion. "Which editor is best?" cannot be graded fairly.
- Missing solutions. An assignment with no solution leaves learners unable to check their work.
- Practice that contradicts the course. A quiz that uses a term or a tool version the lectures never used confuses learners and invites bad reviews.
- Outdated answers. A question about a library version goes stale. Tie questions to concepts that last, or note the version in the question.
Checking this part of your self-audit
For each section, confirm that it ends with practice that tests its objectives. Confirm that every assignment has a brief, success criteria and a solution. Confirm that every quiz question has a single clear answer and an explanation. Then run the quiz linter on each quiz, and keep the results with the other self-audit output.
Exercise
Your course objective says "Write a SQL query that joins two tables". The planned practice is a five-question multiple-choice quiz at the end of the section. Why might this draw review feedback, and what would you change?
Show answer
A multiple-choice quiz tests recognition, such as choosing the right join keyword, but the objective claims the learner can write a query. The activity does not check the objective. Replace or supplement the quiz with a coding exercise or an assignment that gives two tables and asks the learner to write the join, with success criteria and a worked solution. Alternatively, reword the objective to something a quiz can verify, such as "Identify which join type returns a given result".
Exercise
The linter above reports "the correct answer is the longest option" for a question. Why does that matter, and how do you fix it?
Show answer
Learners learn to pick the longest answer without knowing the content, so the question stops measuring understanding. Shorten the correct option, or add detail to the distractors so the lengths are similar. Do not make the distractors wrong in an obvious way just to match the length.