Create quiz questions in R/exams format for statistics, mathematics, or ML lectures. Use when the user asks to: create quiz questions, make Moodle quizzes, generate R/exams questions, write exam questions for a slide set or lecture, or says "/make-quiz". Produces schoice, mchoice, and num questions at mixed difficulty levels. Output renders to Moodle XML via exams2moodle() or to HTML for preview. Works with any course language.
Create quiz questions in R/exams format for lecture content in statistics, mathematics, or machine learning.
Read the lecture slides/notes. Identify:
Aim for 10-15 questions per lecture/chapter:
| Category | Difficulty | ~Share |
|---|---|---|
| Definitions (basic understanding) |
| Easy |
| 30-40% |
| Properties (conceptual understanding) | Easy/Medium |
| Calculations (concrete computations) | Easy/Medium | 50-60% |
| Relationships (connections between concepts) | Medium |
| Deep concepts (synthesis, advanced) | Medium/Hard | 0-10% |
```{r data generation, echo = FALSE, results = "hide"}
# Difficulty: Easy/Medium/Hard
library(exams) # if needed
# Generate parameters if applicable
# Calculate solution -- use calculated values in Answerlist and Solution
```
Question
========
[Clear, precise question text]
[Standard LaTeX only -- no custom macros!]
Answerlist
----------
* [Option 1]
* [Option 2]
* [Option 3]
Solution
=========
[Detailed explanation]
[Step-by-step calculation if applicable]
Answerlist
----------
* [Correct/Wrong. Explanation for option 1]
* [Correct/Wrong. Explanation for option 2]
* [Correct/Wrong. Explanation for option 3]
Meta-information
================