Moodle GIFT and Aiken Format Cheat Sheet: Copy-Paste Templates with LaTeX and Numeric Tolerances
· 6 min read · QuizClap Editorial
Forget clicking through twenty Moodle web forms per quiz. Bookmark these exact Aiken and GIFT plain-text templates to write, validate and convert Moodle question banks ten times faster.
Why Aiken and GIFT are still the fastest ways to author exam banks
Moodle's web-based Question Bank editor is powerful, yet clicking through five accordions to create a single multiple-choice question takes two minutes per item. Aiken and GIFT let you write 20 questions in a plain text file (or generate them cleanly from lecture notes) in three minutes.
Here is the complete syntax cheat sheet, plus how to validate and convert both formats into Moodle XML or a live classroom quiz for free.
1. Aiken format rules (single-choice multiple choice only)
Aiken is the simplest format in Moodle, ideal when every question has one correct letter:
- The question stem must sit on one single line (no line wraps inside the stem).
- Options start with
A.orA)followed by a space. - The last line must be uppercase
ANSWER: Xwith a blank line before the next question.
Which transport layer protocol provides connection-oriented reliable byte streams?
A. UDP
B. TCP
C. ICMP
D. ARP
ANSWER: B
What is the time complexity of binary search on a sorted array of n elements?
A. O(n)
B. O(n log n)
C. O(log n)
D. O(1)
ANSWER: C
2. Moodle GIFT format templates (all core question types)
GIFT supports single choice, multi-correct weights, true/false, short answer, numerical ranges, categories and answer explanations (#):
Single choice with explanation feedback
::Q1 Equilibrium:: What happens to $K_c$ when a catalyst is added at constant temperature? {
~Increases
~Decreases
=Remains unchanged#Correct: a catalyst lowers $E_a$ equally for forward and reverse reactions.
~Doubles
}
Multi-correct (percentage weights summing to 100%)
::Q2 Maxwell:: Which two equations contain time derivatives in vacuum? {
~%-50%Gauss's law for electricity
~%-50%Gauss's law for magnetism
~%50%Faraday's law of induction
~%50%Ampere-Maxwell law
}
True / False
::Q3 Matrix:: Every orthogonal matrix is invertible. {TRUE#Its transpose equals its inverse ($Q^T Q = I$).}
Short answer (multiple accepted spellings) & Numerical tolerance
::Q4 Organelle:: Which organelle synthesizes ATP via oxidative phosphorylation? {=mitochondrion =mitochondria}
::Q5 pH:: Calculate the pH of $1.0 \times 10^{-3}\text{ M}$ HCl at $25^\circ\text{C}$. {#3.0:0.05}
*Gotcha with LaTeX inside GIFT:* Because GIFT uses {, }, =, ~ and # as control characters, literal braces inside LaTeX inside raw GIFT files normally need backslash escaping (\{, \}), or you can author in Moodle XML / QuizClap Quick Paste and export cleanly to Moodle XML without escaping headaches!
Validate and play your GIFT or Aiken file live in class
Drop any .gift or Aiken .txt file into Import / export inside a free QuizClap lecturer account:
- QuizClap checks every question and flags any missing answer key or unbalanced brace before saving.
- You can run the imported bank immediately as a speed-scored live classroom quiz on the projector, or click Export -> Moodle XML to convert Aiken/GIFT into full Moodle XML with categories intact. See our Moodle live quiz guide for the full 8-format round-trip.