如何创建包含单个选项和多个选项的完形填空问题类型?

时间:2020-11-02 23:14:26

标签: moodle r-exams

我的问题发生在导出到moodle的问题中。 我打算创建一个完形填空问题,其中一部分是单选(选择),另一部分是多选(选择)。使用exams2moodle函数导出时,我有两种可能的行为:所有问题都显示为schoice(下拉菜单)或所有问题都显示为mchoice(复选框)。从视觉上看,第二种情况甚至可以起作用,但是不管问题的定义如何,都不能正确得分或罚分,因为将问题视为选择题。

这些不同的行为如何发生?第一项定义问题的行为,如果第一项是选择,那么每个人都会出现,反之亦然。

最小示例(所有问题均显示为“情绪中的选择”)

\begin{question}
This is the question. This is the question

\begin{answerlist}
  \item Multiple choice answer 1.
  \item Multiple choice answer 2.
  \item Multiple choice answer 3.
  \item Multiple choice answer 4.
  \item Single choice 1.
  \item Single choice 2.  
\end{answerlist}
\end{question}

\exname{cloze_schoice_mchoice}
\extype{cloze}
\exclozetype{mchoice|schoice}
\exsolution{1100|10}

enter image description here

最小示例(所有问题都显示为schoice)

\begin{question}
This is the question. This is the question

\begin{answerlist}
  \item Single choice 1.
  \item Single choice 2.  
  \item Multiple choice answer 1.
  \item Multiple choice answer 2.
  \item Multiple choice answer 3.
  \item Multiple choice answer 4.
\end{answerlist}
\end{question}

\exname{cloze_schoice_mchoice}
\extype{cloze}
\exclozetype{schoice|mchoice}
\exsolution{10|1100}

enter image description here

是否有可能表现出正确的行为或采取一些变通办法?

1 个答案:

答案 0 :(得分:1)

这是exams2moodle()中的错误,感谢您指出。我已经在exams 2.4-0(R-Forge的当前开发版本)中对其进行了修复。如果安装了该程序,运行exams2moodle()将为您提供mchoice问题的复选框和schoice问题的下拉菜单。这些默认值可以通过

进行修改
exams2moodle(...,
  cloze = list(cloze_mchoice_display = ..., cloze_schoice_display = ...))