填空题(克漏字)

来自MoodleDocs
跳转至:导航、​搜索
可打印版不再被支持且可能有渲染错误。请更新您的浏览器书签并改用浏览器默认的打印功能。


填空题(克漏字)题型包含了一段文字,在文字里有不同的答案内嵌其中,包括选择题、简答题及数值答案。

目前没有图形界面来新增问题 - 你需要使用文字框来指定问题格式或是汇入外部档案。

很多人建议Hot Potatoes软件是新增填空题(克漏字)最简单的方式,一旦你在你的PC上建立了试题,你就可以汇入到Moodle的测验卷模组。

汇入限制:一次只能汇入一个填空题,所以假如你正想要建立一个.txt的档案来汇入几个试题的话,会无法执行。

试题设定

  1. 选择试题类别
  2. 给试题一个试题名称 - 这可以允许你在题库中识别题目。
  3. 输入一段文字(用Moodle格式 - 见下面的格式)到'试题内容'字段中。
  4. 假如你想增加一张图片到试题中选择一个影响来显示,对学生来说,这张图片会出现在试题内容前面。
  5. 设定'预设的试题评分' (例如,这个试题的最大分数)。
  6. 设定'倒扣条件'(见下面的倒扣条件)。
  7. Moodle 1.7+: 假如你想,就可以新增一般的回馈,这个文字会出现在学生回答问题后。
  8. Moodle 1.7+: 编辑器已经修改并允许你测试语法是否是好的。
被解码的不同试题元素会显示出来,语法错误也会特别显示。
然而,假如被解码的问题是因为语法错误而2个合成一起时无法检测出来。
  1. 按下储存更改将试题新增到这个类别。

倒扣条件

'倒扣条件'指适用在测验卷使用适性模式的试题 - 例如允许学生在测验的时候对一个问题尝试很多答案即使是一模一样的答案,假如倒扣条件大于0,那么学生在成功尝试后将会失去获得最高分的部分分数,例如,假如预设分数是10,倒扣条件式0.2,那么第一次之后的成功尝试会遭到倒扣0.2 x 10 = 2 的分数。

问题呈现

试题答案输入HTML元素(简答及数值)或选择HTML元素(选择题)会正常显示在文字里。

输入HTML的元素大小(简答及数值)可以调整到最常答案的长度(好的或坏的) + 一个乱数值 (0 到总长的15%)。([Pierre Pichet] 15:37, 26 January 2008 (CST))

在显示评分及回馈过程时大小会调整到学生回答的长度。

选择HTML元素(单选题)的大小会自动调整到最长的答案。

格式

Moodle的克漏字辅助说明有一个例子。

内嵌答案问题的完整格式资料请见下面的详细语法说明

注意:在复制克漏字型态的试题到所见即所得的HTML编辑器时要小心,断行倾向被加入而这会破坏试题。

假如正确答案包含 { } # ~ / " 或 \ 你必须在每个这样的字元前放\来跳脱,在回馈中 ~ 及 } 必须被跳脱否则会分别被解译成下一个答案简答的结束,引用符号:"会在这两个地方出麻烦,使用HTML实体:& quot; (在"之间不允许空格),假如你想要有数学符号在TeX表示式中使用\会有问题,另一个解决的方法可以使用unicode字元。

请见下面关于数值嵌入试题的注意事项!

范例

下面的文字建立一个简单的克露字试题:

Match the following cities with the correct state:
* San Francisco: {1:MULTICHOICE:=California#OK~Arizona#Wrong}
* Tucson: {1:MULTICHOICE:California#Wrong~%100%Arizona#OK}
* Los Angeles: {1:MULTICHOICE:=California#OK~Arizona#Wrong}
* Phoenix: {1:MULTICHOICE:%0%California#Wrong~=Arizona#OK}
The capital of France is {1:SHORTANSWER:=Paris#Congratulations!~%50%Marseille#No, that
is the second largest city in France (after Paris).~*#Wrong answer. The capital of France
is Paris, of course.}.

而结果会是:Cloze.gif

有些事要注意:

  • 个别的内嵌答案用括号{}括起来。
  • 开始的数字是'权重',所以在这个例子里每个答案都有一样的权重。
  • 在每个例子里正确的选项不是用一个 = 号就是用%100%来处理。
  • 伴随在每个选项里#号后的文字是学生在选择那个选项后所看到的回馈。
  • 假如学生在最后的范例中输入'Marseille',他们会得总分的50%。
  • 在最后例子中星号 *后的"错误答案"回馈意指学生输入任何不是"Paris"或"Marseille"的答案时会看见的回馈。

详细语法说明

  1. 所有克漏字型态的试题项目都是编码在大括号内{ }
  2. 出现在左大括号跟冒号之间的数字{1: 是该项目的权重;假如所有的项目都是1,可以不需要指定,所以你可以这样写{:
  3. 在冒号后可以有几种试题型态:MULTICHOICE,SHORTANSWER,NUMERICAL
  4. 注意.- 假如你有安装REGEXP 试题型态外挂 你也可以使用REGEXP试题型态
  5. MULTICHOICE 及 SHORTANSWER的语法是相同的,唯一的不同在于对学生的显示
  6. 不同答案的顺序是无关紧要的(除非你想要选择所有的错误答案,见下面的#12)
  7. a correct answer is preceded with the equal sign = or a percentage (usually %100%)
  8. a wrong answer is preceded with nothing or a percentage (usually %0%)
  9. you can allocate some points between 0 and 100 to some answers, if you put the appropriate percentage
  10. all answers except the first one are separated from one another by the tilde ~ sign
  11. answers can be followed by an optional feedback message, preceded with the # sign; if there is no feedback message, the # sign can be present or absent, it does not matter
  12. note that the feedback message and (since Pierre Pichet 24 May 2008 )in 1.9 the correct answer are displayed in a small popup window (if and when the correct and or feedback have been declared accessible to the students in the Quiz settings) upon mouse hovering. The popup window has a title "feedback" and you can use HTML tags to format your feedback. In some browsers (For example IE5.5) the form fields can cover part of the feedback windows. It can help to not have the formfields for the answers too close to each other.
  13. in the SHORTANSWER type you may want to put a catch-all (wrong) answer in order to send a "wrong, try again" feedback; you can do this by inserting an asterisk * as the very last expected answer in your formula
  14. unfortunately in MULTICHOICE MODE it is not possible to get the answers to be scrambled
  15. unfortunately in SHORTANSWER mode it is not possible to make the answers case-sensitive except by using a workaround explained in this thread)

Numerical Cloze questions

From the student perspective, a numerical Cloze question looks just like a short-answer question or fill in the blanks.

The difference is that numerical answers are allowed to have an accepted error. This allows a continuous range of answers to be set. You can also express your answer in some different numerical formats. 23.4 23,4 (some countries use , as a decimal separator) and 2.34E+1 (meaning 2.34*10^1) would be interpreted as the same.

False positives

Moodle1.8

Note: the following examples of false positives do not apply to Moodle 1.8+, where you cannot use percentages or fractions as the answers in a numerical Cloze test; Moodle will generate an error if you try to save such a question. However the following may be relevant for earlier versions of Moodle.

More examples:	 
0.5 accepts .5 0.5 ,5 0,5 0.500 5e-1 5E-1 but not 1/2 50% 	 
50% accepts 50% 50.0% 5E1% 50/100 even 50/1000 50 but not 500/1000 0.5	 
1/2 accepts 1/2 1/3 1twenty but not 2/4 0.5 0,5 3/6 50% ½	 
½ accepts ½	 
HALF doesn't even accept HALF (maybe 0?)	 

If you want to accept several variants you can have them in the same {} but be careful, notice the "false positives" in bold!

Syntax for numerical Cloze questions

The format of a NUMERICAL Cloze question is similar to that of the other Cloze types and they can be mixed in the same question. As with other Cloze tests, you write your question or incomplete text, and add the Cloze code at the point where the student is supposed to enter their numerical answer.

An example of the syntax used is shown below:

Note: It is preferable to write the code in 'source code' mode. The WSIWYG editor can insert linebreaks that make the question not function. The linebreak in the example box below is for readability only! A problem with these questions is the readability of the code! :(

{2:NUMERICAL:=23.8:0.1#Feedback for correct answer 23.8	 
~%50%23.8:2#Feedback for ½credit near correct answer}. 	 

In this example:

  • 2: is the question point weight, which means that this question has twice the weight in the final point(s) for this question as other partial answers with weight 1 (or no declared weight - you can start with {: for the default weight 1) in the same question.
  • NUMERICAL: says what kind of question it is. It must be in CAPS.
  • =23.8:0.1 = or %100% means correct if the answer is 23.8 with an accepted error of 0.1, then any number between 23.7 and 23.9 will be accepted as correct. (In the GIFT numerical question one can express an interval like this 13..15 or 14:1 but in Cloze only 14:1 works.)
  • #Feedback for correct answer 23.8 is preceded by #
  • ~%50%23.8:2 ~ is the separator for answer alternatives %50% means this answer would get 50% of the score that the more precise answer had gotten. Because the tolerance here is 2, 21.8 to 25.8 would get this point and feedback.

The feedback (which is seen within a popup window when the user hovers over the answer space) is formattable with HTML tags. For example, if you want an exponent, surround it with superscript tags: <sup> </sup>. You can even include pictures in the feedback popup, but you must clean out all " characters and save while still in source code mode (not WYSIWYG). So, this works in feedback popup:

#See this picture:<br><img src=Something.gif />}	 

but not this:

#See this picture:<br><img src="Something.gif" />}	 

(ALGEBRA and TEX filters don't work in the feedback popups, but they can be very useful in the question writing for math/science expressions). But you can use [unicode] characters.

If you want to give feedback for any answer that didn't fit the intervals you already have specified feedback for, add some BIG general intervals, like for positive answers (if they aren't bigger than 20000 you could add:

~%0%10000.0001:10000#Feedback for unspecified not_right answers}	 

This would give feedback for anything from 0.0001 to 20000.0001 (that hadn't already gotten feedback). I didn't want to include 0 since that special case as well as negative ought to have specific reactions.

~%0%0#Hey! It can't be zero	 
~%0%-10000.0001:10000#We just want the size here,	 
so a negative value is not what we want}			 

Numerical questions could, before version 1.7, also have case-insensitive non-numerical answers. This is useful whenever the answer for a numerical question is something like +inf, -inf, NaN etc.

See also

This information was drawn from: