做出选择题就像在包考试的 `exams moodle()` 中选择一样

Making mchoice question behaves as schoice in `exams2moodle()` of package exams

我正在使用 rexams 程序包 通过 exams2moodle() 功能为 Moodle 创建问题。
我想创建一个 mchoice 问题,例如,有 5 个正确答案和 10 个错误答案。好的,但我希望这个 mchoice 问题 表现为 schoice 问题;也就是说,最终从 mchoice 创建了一个选择题。
最终创建的选择题将有 1 个正确答案(从 mchoice 问题的 5 个正确答案中随机抽取)和 3 个错误答案(从 mchoice 中的 10 个错误答案)。
我认为这在 rexams 包中是可能的,至少我记得看过,但我做不到。谢谢

参见here

exshuffle is set to 5 so that 1 correct and 4 random wrong alternatives are subsampled and shuffled

MWE(在.Rnw):

\exname{Test}
\extype{schoice}
\exsolution{11100000} % true, true, true and the others are false
\exshuffle{5}
\begin{question}
  Question text.
  \begin{answerlist}
  \item a
  \item b
  \item c
  \item 1
  \item 2
  \item 3
  \item 4
  \item 5
  \end{answerlist}
\end{question}

TL;DR: 正如@uzsolt 已经解释的那样,您只需将 exshuffle 设置为 5 并将 extype 设置为 schoice。然后将按照您的指示进行采样。

工作示例: 为了便于说明,您可以考虑 R/exams 包中提供的 capitals 练习:http://www.R-exams.org/templates/capitals/(在 R 版本中添加2.3-5).

正如随附的 YouTube 视频 (https://www.youtube.com/watch?v=XI5xG7Y0hQ0) 中所讨论的,此练习作为 mchoice 练习包含在包中,有六个错误和五个正确的答案选项。由于 exshuffle 设置为 5 这将随机 select 五个答案选项,确保至少一个是正确的,至少一个是错误的。

但是,如果您将同一个练习模板修改为 schoice,它将采用您所描述的抽样:只有一个正确的答案备选方案是 selected 和四个错误的答案。