Article:Moodle xml question edit sop2:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
无编辑摘要 |
||
第86行: | 第86行: | ||
== 设置分数 == | == 设置分数 == | ||
<syntaxhighlight lang="xml"> | |||
<defaultgrade>1.0000000</defaultgrade> | |||
</syntaxhighlight> | |||
完形填空(内嵌答案)不需要设置 | 完形填空(内嵌答案)不需要设置 | ||
== 设置答案 == | == 设置答案 == | ||
=== 简答题 === | === 简答题 === | ||
第137行: | 第140行: | ||
=== 匹配题 === | === 匹配题 === | ||
随机排列选项 | 随机排列选项 | ||
<syntaxhighlight lang="xml"> | |||
<shuffleanswers>true</shuffleanswers> | <shuffleanswers>true</shuffleanswers> | ||
</syntaxhighlight> | |||
匹配选项(至少3项) | 匹配选项(至少3项) | ||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
第159行: | 第165行: | ||
</subquestion> | </subquestion> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== 选择题(单选) === | === 选择题(单选) === | ||
只有1个正确选项 | 只有1个正确选项 | ||
<syntaxhighlight lang="xml"> | |||
<single>true</single> | <single>true</single> | ||
</syntaxhighlight> | |||
随机排列选项 | 随机排列选项 | ||
<shuffleanswers>true</shuffleanswers> | <syntaxhighlight lang="xml"> | ||
<shuffleanswers>true</shuffleanswers> | |||
</syntaxhighlight> | |||
选项(只能有一个得分项) | 选项(只能有一个得分项) | ||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
第181行: | 第187行: | ||
=== 判断题(多选) === | === 判断题(多选) === | ||
有多个得分选项 | 有多个得分选项 | ||
<single>false</single> | <syntaxhighlight lang="xml"> | ||
<single>false</single> | |||
</syntaxhighlight> | |||
随机排列选项 | 随机排列选项 | ||
<shuffleanswers>true</shuffleanswers> | <syntaxhighlight lang="xml"> | ||
<shuffleanswers>true</shuffleanswers> | |||
</syntaxhighlight> | |||
选项(得分项合计为100,错误选项每个都是-100,必须使用规定的比例,如0、10、20……100,33.33333、66.66667、0.8333333……) | 选项(得分项合计为100,错误选项每个都是-100,必须使用规定的比例,如0、10、20……100,33.33333、66.66667、0.8333333……) | ||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
第199行: | 第211行: | ||
</answer> | </answer> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== 内嵌答案(完形填空) === | === 内嵌答案(完形填空) === | ||
直接写在<questiontext></questiontext>的<text></text>里面 | |||
== (可选)设置反馈 == | == (可选)设置反馈 == |
2018年6月9日 (六) 19:41的版本
新建文本文件
<?xml version="1.0" encoding="UTF-8"?>
<quiz>
</quiz>
保存为UTF-8编码,在<quiz></quiz>中添加题目
选择题型;添加题目类型;添加题干
简答题
<question type="essay">
<name>
<text>题目类型</text>
</name>
<questiontext format="moodle_auto_format">
<text>【题目类型】</text>
</questiontext>
</question>
判断题
<question type="truefalse">
<name>
<text>题目类型</text>
</name>
<questiontext format="moodle_auto_format">
<text>【题目类型】</text>
</questiontext>
</question>
填空题
<question type="shortanswer">
<name>
<text>题目类型</text>
</name>
<questiontext format="moodle_auto_format">
<text>【题目类型】</text>
</questiontext>
</question>
匹配题
<question type="matching">
<name>
<text>题目类型</text>
</name>
<questiontext format="moodle_auto_format">
<text>【题目类型】</text>
</questiontext>
</question>
选择题(单选题、多选题)
<question type="multichoice">
<name>
<text>题目类型</text>
</name>
<questiontext format="moodle_auto_format">
<text>【题目类型】</text>
</questiontext>
</question>
(复杂题型)完形填空(内嵌答案)
<question type="cloze">
<name>
<text>题目类型</text>
</name>
<questiontext format="moodle_auto_format">
<text>【题目类型】</text>
</questiontext>
</question>
设置分数
<defaultgrade>1.0000000</defaultgrade>
完形填空(内嵌答案)不需要设置
设置答案
简答题
需要输入文本;文本框行数
<responserequired>1</responserequired>
<responsefieldlines>5</responsefieldlines>
判断题
答案为true
<answer fraction="100" format="moodle_auto_format">
<text>true</text>
</answer>
<answer fraction="0" format="moodle_auto_format">
<text>false</text>
</answer>
答案为false
<answer fraction="0" format="moodle_auto_format">
<text>true</text>
</answer>
<answer fraction="100" format="moodle_auto_format">
<text>false</text>
</answer>
填空题
所有选项都是正确答案,得分比例都是100
<answer fraction="100" format="moodle_auto_format">
<text>正确答案1</text>
</answer>
<answer fraction="100" format="moodle_auto_format">
<text>正确答案2</text>
</answer>
匹配题
随机排列选项
<shuffleanswers>true</shuffleanswers>
匹配选项(至少3项)
<subquestion format="moodle_auto_format">
<text>选项1</text>
<answer>
<text>对应项/答案1</text>
</answer>
</subquestion>
<subquestion format="moodle_auto_format">
<text>选项2</text>
<answer>
<text>对应项/答案2</text>
</answer>
</subquestion>
<subquestion format="moodle_auto_format">
<text>选项3</text>
<answer>
<text>对应项/答案3</text>
</answer>
</subquestion>
选择题(单选)
只有1个正确选项
<single>true</single>
随机排列选项
<shuffleanswers>true</shuffleanswers>
选项(只能有一个得分项)
<answer fraction="100" format="html">
<text>正确选项</text>
</answer>
<answer fraction="0" format="html">
<text>错误选项1</text>
</answer>
判断题(多选)
有多个得分选项
<single>false</single>
随机排列选项
<shuffleanswers>true</shuffleanswers>
选项(得分项合计为100,错误选项每个都是-100,必须使用规定的比例,如0、10、20……100,33.33333、66.66667、0.8333333……)
<answer fraction="33.33333" format="html">
<text>得分选项1</text>
</answer>
<answer fraction="33.33333" format="html">
<text>得分选项2</text>
</answer>
<answer fraction="33.33333" format="html">
<text>得分选项3</text>
</answer>
<answer fraction="-100" format="html">
<text>错误选项</text>
</answer>
内嵌答案(完形填空)
直接写在<questiontext></questiontext>的<text></text>里面
(可选)设置反馈
完形填空(内嵌答案)不需要设置
通用/整题反馈
<generalfeedback format="html">
<text></text>
</generalfeedback>
正确反馈
<correctfeedback format="html">
<text></text>
</correctfeedback>
部分正确反馈
<partiallycorrectfeedback format="html">
<text></text>
</partiallycorrectfeedback>
错误反馈
<incorrectfeedback format="html">
<text></text>
</incorrectfeedback>
某一选项的反馈
<feedback format="html">
<text></text>
</feedback>
(放在<answer></answer>之间)