How to Make an Interactive Quiz with Claude Artifacts
If your notes say a loan lasts seven days and you pick three, your quiz should mark the answer wrong and show you the rule to reread. Give Claude the questions, choices, and a fixed answer key when you ask it to build a quiz. The quiz can then grade each attempt against the same key and show where each answer came from.

In Claude on the web, ask in a chat for an interactive Artifact. It opens beside the conversation, and you can ask Claude for changes in the same chat. You can return to the Artifact for another study session. Anthropic’s guide to Claude Artifacts
Paste this quiz prompt into Claude
Copy the whole block into a new web chat. It includes three rules from a fictional community tool library, with an ID for each rule so you can trace the feedback. When Claude builds the quiz, take it in the Artifact panel. The prompt in the chat contains the answer key.
Build a playable multiple-choice quiz as an interactive Claude Artifact.
Use the rules, questions, choices, and answer key below exactly as written.
Display the questions and choices in the given order, with their labels.
Keep the quiz self-contained and the current attempt in memory. Grade it
inside the quiz without model calls, connectors, or persistent storage.
Fictional community tool library rules (version 1)
L01 A member may have up to two tools checked out at once.
L02 An initial loan lasts seven days.
L03 A member may renew a loan once if nobody else has reserved the tool.
Q1. What is the maximum number of tools a member can have checked out at once?
A. One tool
B. Two tools
C. Three tools
Q2. How long is the initial loan?
A. Three days
B. Fourteen days
C. Seven days
Q3. What needs to be true for a member to renew a tool loan for the first time?
A. Nobody else has reserved the tool.
B. Another member has reserved the tool.
C. This is the only tool the member has checked out.
Fixed answer key
Q1 = B (L01)
Q2 = C (L02)
Q3 = A (L03)
Start with no choices selected. Allow one choice per question and let the
learner change it before submitting. Disable Submit until every question
has a choice. Keep the score, key, rule text, and feedback out of the quiz
view until the learner presses Submit.
On Submit, award one point for each choice letter that matches the key for
that question and zero for each mismatch. Lock the choices and show the
score out of the number of questions. For each question, show whether the
learner was right, the correct choice, and the supporting rule with its ID.
Add a Restart button that clears every choice, the score, and the feedback.
Return to the initial blank quiz with Submit disabled and the answers hidden.
Try a perfect score and one deliberate miss
- Select B for Q1. Select A for Q2, then switch it to C. Leave Q3 blank and check that Submit is disabled. Select A for Q3 and check that Submit is enabled while the score, correct answers, and rules stay hidden.
- Submit and compare the result with the first row below. Press Restart and repeat with the choices in the second row.
- After submitting the second attempt, try changing Q2. The choice and score should stay fixed. Press Restart again and check that every choice is blank, the results are hidden, and Submit is disabled.
| Attempt | Q1 | Q2 | Q3 | Expected result |
|---|---|---|---|---|
| All correct | B. Two tools | C. Seven days | A. Nobody else has reserved the tool | 3/3 with three correct answers |
| One wrong | B. Two tools | A. Three days | A. Nobody else has reserved the tool | 2/3 with only Q2 marked wrong. Its feedback should show C. Seven days and rule L02. |
If you get 3/3 on the second attempt, tell Claude, “I submitted B, A, A in question order and got 3/3. Q2 should be wrong because its key is C, so the score should be 2/3. Fix the grading and keep the supplied key.” Run both attempts again after the change.
Swap in a section from your notes
Start with one section of a lecture or reading. Label the relevant lines so you can find them again, then replace the sample rules, questions, and key together. Read each question against its cited line and make sure exactly one option fits. “How long can you keep a tool?” could include a renewal. “How long is the initial loan?” has one answer in L02.
Before opening the new quiz, write down the choices and expected scores for one perfect attempt and one with a deliberate miss. Run both checks again whenever you change the questions or key. Study with Claude
If you keep missing a rule, turn it into a flashcard you can answer from memory. For the renewal rule, the front could ask, “What must be true about reservations before the first renewal?” The back would say, “Nobody else has reserved the tool,” with L03 as the reference. Make flashcards with Claude
AI helped write and edit this guide and generated its cover. The example’s answer key and expected scores were checked against the fictional rules. The app steps follow Anthropic’s documentation.