A quiz can be written directly inside any Markdown page. Each question uses simple lines: Q, A, B, C, D, ANSWER, and EXPLAIN.
Syntax
{% capture quiz_questions %}
Q: Which expression gives the de Broglie wavelength?
A: $\lambda=h/p$
B: $\lambda=pc$
C: $\lambda=ma$
D: $\lambda=IR$
ANSWER: A
EXPLAIN: Matter waves satisfy $\lambda=h/p$.
---
Q: What is the canonical commutator?
A: $[x,p]=0$
B: $[x,p]=i\hbar$
C: $[x,p]=\hbar^2$
D: $[x,p]=mc$
ANSWER: B
EXPLAIN: The standard position-momentum commutator is $[x,p]=i\hbar$.
{% endcapture %}
{% include quiz.html source=quiz_questions %}
Use --- between questions. The answer can be written as A, B, C, or D. LaTeX works inside the question, options, and explanation.
Live Demonstration
Question 1
Score 0