Moodle XML
Menu: Download / Export → Moodle · File: <quiz name>_moodle.xml
Moodle's own question format and the one to choose for Moodle. Each question gets the name Question 1, Question 2…, a default mark of 1, and its explanation as Moodle's general feedback. Multiple-choice answers are set to shuffle and are numbered a, b, c. Every grade in the file is one of the values on Moodle's grade list, so the import runs with Moodle's default Match grades setting.
<?xml version="1.0" encoding="UTF-8"?>
<quiz>
<question type="multichoice">
<name>
<text>Question 1</text>
</name>
<questiontext format="html">
<text><![CDATA[Which of these are gas giants?]]></text>
</questiontext>
<generalfeedback format="html">
<text><![CDATA[Jupiter and Saturn are mostly hydrogen and helium.]]></text>
</generalfeedback>
<defaultgrade>1</defaultgrade>
<penalty>0.3333333</penalty>
<hidden>0</hidden>
<single>false</single>
<shuffleanswers>true</shuffleanswers>
<answernumbering>abc</answernumbering>
<answer fraction="-50" format="html">
<text><![CDATA[Mars]]></text>
</answer>
<answer fraction="50" format="html">
<text><![CDATA[Jupiter]]></text>
</answer>
<answer fraction="50" format="html">
<text><![CDATA[Saturn]]></text>
</answer>
<answer fraction="-50" format="html">
<text><![CDATA[Venus]]></text>
</answer>
</question>
</quiz>- Multiple choice: Multiple choice (one answer). The right choice is worth 100%, the others 0%.
- Multiple answer: Multiple choice with several answers allowed. The right choices share 100% and the wrong choices share −100% (for example 50% and −50% with two of each), so a student who ticks every box scores 0. A question with more than ten right answers is left out, because Moodle's grade list has no equal share below 10%.
- True / false: True/False, with the explanation as general feedback.
- Short answer: Short answer, not case-sensitive. The main answer and every alternative answer are each worth 100%.
- Fill in the blank, matching, ordering, FAQ: Left out of the file. The export tells you how many questions it skipped.