Only multiple choice?
For a plain list of single-answer multiple choice questions, Aiken format is simpler and harder to get wrong.
GIFT is the Moodle text format that handles more than multiple choice: true or false, short answer, matching, numerical, missing word and essay questions. Learn the exact syntax below, or upload a document and let Formswrite write the GIFT file for you.
GIFT (General Import Format Template) is a plain-text format Moodle uses to import questions into a question bank. Each question is written on its own, with the answers inside curly braces. It covers more question types than Aiken, which only does single-answer multiple choice.
Multiple choice, true or false, short answer, matching and numerical, each separated by a blank line.
::Capital::What is the capital of France? {
=Paris
~Madrid
~Rome
}
The Sun is a star. {T}
Name the largest planet in our solar system. {=Jupiter =jupiter}
Match each country with its capital. {
=France -> Paris
=Japan -> Tokyo
=Kenya -> Nairobi
}
What is pi to two decimal places? {#3.14:0.01}This file will not import cleanly. There is no blank line between the questions, the colon in the second question is not escaped, and the multiple choice question has no correct answer marked with =.
Which gas do plants absorb? {
~Oxygen
~Carbon dioxide
~Nitrogen
}
Ratio check: is 1:2 the same as 2:4? {T}A blank line between questions, the colon escaped with a backslash, and the correct answer marked with =.
Which gas do plants absorb? {
~Oxygen
=Carbon dioxide
~Nitrogen
}
Ratio check: is 1\:2 the same as 2\:4? {T}Fixing a long question bank by hand is slow. Formswrite applies these rules when it converts a document, and the same questions can go to Moodle as GIFT, Aiken or Moodle XML.
Turn a document of questions into a Moodle-ready GIFT file in three steps.
Add a Word file, PDF, Google Doc or a pasted list. Formswrite reads each question, its answers and the correct one.
Review the extracted questions, fix anything the document left unclear and pick the question types.
Export as GIFT and import it in Moodle under Question bank, Import, GIFT format.
The patterns Moodle reads for each question type. Formswrite writes them for you.
| Question type | GIFT syntax |
|---|---|
| Multiple choice | { =correct ~wrong ~wrong } |
| True or false | {T} or {F} (also {TRUE} or {FALSE}) |
| Short answer | { =answer =another accepted answer } |
| Matching | { =item -> match =item -> match }, at least three pairs |
| Numerical | {#answer:tolerance}, for example {#3.14:0.01} |
| Missing word | Braces inside the sentence: The sky is {=blue ~green} today. |
| Essay | Empty braces {} after the question text |
| Partial credit | A weight after ~, for example ~%50%half right |
For a plain list of single-answer multiple choice questions, Aiken format is simpler and harder to get wrong.
The same questions also export to Moodle XML, QTI, Canvas, Blackboard, Kahoot and more. See Documents to Moodle. To check a file before you import it, see the quiz file format rules.
Build the questions, then send them to Moodle or any other LMS.
Start free, no credit card. No manual reformatting and no add-on to install.