Article:Moodle xml question edit sop2:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
无编辑摘要 |
||
(未显示同一用户的4个中间版本) | |||
第11行: | 第11行: | ||
保存为UTF-8编码,在<quiz></quiz>中添加题目 | 保存为UTF-8编码,在<quiz></quiz>中添加题目 | ||
只需要创建一次 | |||
== 选择题型;添加题目类型;添加题干 == | == 选择题型;添加题目类型;添加题干 == | ||
第86行: | 第87行: | ||
== 设置分数 == | == 设置分数 == | ||
<syntaxhighlight lang="xml"> | |||
<defaultgrade>1.0000000</defaultgrade> | |||
</syntaxhighlight> | |||
完形填空(内嵌答案)不需要设置 | 完形填空(内嵌答案)不需要设置 | ||
== 设置答案 == | == 设置答案 == | ||
=== 简答题 === | === 简答题 === | ||
第137行: | 第141行: | ||
=== 匹配题 === | === 匹配题 === | ||
随机排列选项 | 随机排列选项 | ||
<syntaxhighlight lang="xml"> | |||
<shuffleanswers>true</shuffleanswers> | <shuffleanswers>true</shuffleanswers> | ||
</syntaxhighlight> | |||
匹配选项(至少3项) | 匹配选项(至少3项) | ||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
第159行: | 第166行: | ||
</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"> | ||
<answer fraction="100" format=" | <answer fraction="100" format="moodle_auto_format"> | ||
<text>正确选项</text> | <text>正确选项</text> | ||
</answer> | </answer> | ||
<answer fraction="0" format=" | <answer fraction="0" format="moodle_auto_format"> | ||
<text>错误选项1</text> | <text>错误选项1</text> | ||
</answer> | </answer> | ||
第181行: | 第188行: | ||
=== 判断题(多选) === | === 判断题(多选) === | ||
有多个得分选项 | 有多个得分选项 | ||
<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"> | ||
<answer fraction="33.33333" format=" | <answer fraction="33.33333" format="moodle_auto_format"> | ||
<text>得分选项1</text> | <text>得分选项1</text> | ||
</answer> | </answer> | ||
<answer fraction="33.33333" format=" | <answer fraction="33.33333" format="moodle_auto_format"> | ||
<text>得分选项2</text> | <text>得分选项2</text> | ||
</answer> | </answer> | ||
<answer fraction="33.33333" format=" | <answer fraction="33.33333" format="moodle_auto_format"> | ||
<text>得分选项3</text> | <text>得分选项3</text> | ||
</answer> | </answer> | ||
<answer fraction="-100" format=" | <answer fraction="-100" format="moodle_auto_format"> | ||
<text>错误选项</text> | <text>错误选项</text> | ||
</answer> | </answer> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== 内嵌答案(完形填空) === | === 内嵌答案(完形填空) === | ||
直接写在<questiontext></questiontext>的<text></text>里面 | |||
== (可选)设置反馈 == | == (可选)设置反馈 == | ||
第210行: | 第220行: | ||
完形填空(内嵌答案)不需要设置 | 完形填空(内嵌答案)不需要设置 | ||
'''通用/整题反馈''' | |||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
<generalfeedback format=" | <generalfeedback format="moodle_auto_format"> | ||
<text></text> | <text></text> | ||
</generalfeedback> | </generalfeedback> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
'''正确反馈''' | |||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
<correctfeedback format=" | <correctfeedback format="moodle_auto_format"> | ||
<text></text> | <text></text> | ||
</correctfeedback> | </correctfeedback> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
'''部分正确反馈''' | |||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
<partiallycorrectfeedback format=" | <partiallycorrectfeedback format="moodle_auto_format"> | ||
<text></text> | <text></text> | ||
</partiallycorrectfeedback> | </partiallycorrectfeedback> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
'''错误反馈''' | |||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
<incorrectfeedback format=" | <incorrectfeedback format="moodle_auto_format"> | ||
<text></text> | <text></text> | ||
</incorrectfeedback> | </incorrectfeedback> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
'''某一选项的反馈''' | |||
放在<answer></answer>之间 | |||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
<feedback format=" | <feedback format="moodle_auto_format"> | ||
<text></text> | <text></text> | ||
</feedback> | </feedback> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Moodle]] | |||
[[Category:现代教育技术]] |
2018年6月10日 (日) 11:02的最新版本
新建文本文件
<?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="moodle_auto_format">
<text>正确选项</text>
</answer>
<answer fraction="0" format="moodle_auto_format">
<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="moodle_auto_format">
<text>得分选项1</text>
</answer>
<answer fraction="33.33333" format="moodle_auto_format">
<text>得分选项2</text>
</answer>
<answer fraction="33.33333" format="moodle_auto_format">
<text>得分选项3</text>
</answer>
<answer fraction="-100" format="moodle_auto_format">
<text>错误选项</text>
</answer>
内嵌答案(完形填空)
直接写在<questiontext></questiontext>的<text></text>里面
(可选)设置反馈
完形填空(内嵌答案)不需要设置
通用/整题反馈
<generalfeedback format="moodle_auto_format">
<text></text>
</generalfeedback>
正确反馈
<correctfeedback format="moodle_auto_format">
<text></text>
</correctfeedback>
部分正确反馈
<partiallycorrectfeedback format="moodle_auto_format">
<text></text>
</partiallycorrectfeedback>
错误反馈
<incorrectfeedback format="moodle_auto_format">
<text></text>
</incorrectfeedback>
某一选项的反馈 放在<answer></answer>之间
<feedback format="moodle_auto_format">
<text></text>
</feedback>