单个 R/exams 练习中的不同类型的任务
Different types of tasks in a single R/exams exercise
在某些问题中,我需要在单个练习中包括不同类型的任务或子项目,例如多项选择和数字。这在 R/exams 中可行吗?
在下面的示例中,假设 A 部分和 B 部分是任务并且必须在同一练习中。很明显,它们可以很容易地写在两个单独的练习中,但它们也可以合并在一个练习中吗?
Question 01
Part A
What is the capital of Germany?
a. Bonn
b. Berlin
c. Munich
d. Hamburg
Part B
What is the population of Germany's capital?
~##ANSWER1##~
完形填空练习
此类问题在 R/exams 中得到支持,称为 cloze
练习。有关工作示例,请参见
boxhist,
boxhist2,
fourfold,
fourfold2,
lm,等等。
需要注意的是,并非所有 exams2xyz
界面都支持此类练习。最重要的是,它们得到 exams2moodle
和 exams2openolat
的支持。
示例:德国首都(Rmd 版)
要将说明性示例变成 Rmd 练习,您需要:
Question
========
What is the capital of Germany? \#\#ANSWER1\#\#
What is the population of Germany's capital (in millions)? \#\#ANSWER2\#\#
Answerlist
----------
* Bonn
* Berlin
* Munich
* Hamburg
*
Meta-information
================
exname: German capital
extype: cloze
exclozetype: schoice|num
exsolution: 0100|3.669495
extol: 0.1
exshuffle: TRUE
在 Moodle 中呈现的练习看起来像这样:
细节和变化
\#\#ANSWERi\#\#
占位符在最后的练习中被相应的交互元素替换。答案列表与 exclozetype
相结合,然后提供构建交互元素所需的信息。请注意,与人口规模相对应的第五个答案列表元素为空。
也可以在没有 \#\#ANSWERi\#\#
占位符的情况下编写 cloze
练习,但是这些练习在如何控制交互元素方面会受到更多限制。请参阅 boxhist 与 boxhist2 和 fourfold 与 fourfold2。
Rnw 版本
同一个练习的Rnw版本如下:
\begin{question}
What is the capital of Germany? ##ANSWER1##
What is the population of Germany's capital (in millions)? ##ANSWER2##
\begin{answerlist}
\item Bonn
\item Berlin
\item Munich
\item Hamburg
\item
\end{answerlist}
\end{question}
\exname{German capital}
\extype{cloze}
\exclozetype{schoice|num}
\exsolution{0100|3.669495}
\extol{0.1}
\exshuffle{TRUE}
在某些问题中,我需要在单个练习中包括不同类型的任务或子项目,例如多项选择和数字。这在 R/exams 中可行吗?
在下面的示例中,假设 A 部分和 B 部分是任务并且必须在同一练习中。很明显,它们可以很容易地写在两个单独的练习中,但它们也可以合并在一个练习中吗?
Question 01
Part A
What is the capital of Germany?
a. Bonn
b. Berlin
c. Munich
d. HamburgPart B
What is the population of Germany's capital?
~##ANSWER1##~
完形填空练习
此类问题在 R/exams 中得到支持,称为 cloze
练习。有关工作示例,请参见
boxhist,
boxhist2,
fourfold,
fourfold2,
lm,等等。
需要注意的是,并非所有 exams2xyz
界面都支持此类练习。最重要的是,它们得到 exams2moodle
和 exams2openolat
的支持。
示例:德国首都(Rmd 版)
要将说明性示例变成 Rmd 练习,您需要:
Question
========
What is the capital of Germany? \#\#ANSWER1\#\#
What is the population of Germany's capital (in millions)? \#\#ANSWER2\#\#
Answerlist
----------
* Bonn
* Berlin
* Munich
* Hamburg
*
Meta-information
================
exname: German capital
extype: cloze
exclozetype: schoice|num
exsolution: 0100|3.669495
extol: 0.1
exshuffle: TRUE
在 Moodle 中呈现的练习看起来像这样:
细节和变化
\#\#ANSWERi\#\#
占位符在最后的练习中被相应的交互元素替换。答案列表与 exclozetype
相结合,然后提供构建交互元素所需的信息。请注意,与人口规模相对应的第五个答案列表元素为空。
也可以在没有 \#\#ANSWERi\#\#
占位符的情况下编写 cloze
练习,但是这些练习在如何控制交互元素方面会受到更多限制。请参阅 boxhist 与 boxhist2 和 fourfold 与 fourfold2。
Rnw 版本
同一个练习的Rnw版本如下:
\begin{question}
What is the capital of Germany? ##ANSWER1##
What is the population of Germany's capital (in millions)? ##ANSWER2##
\begin{answerlist}
\item Bonn
\item Berlin
\item Munich
\item Hamburg
\item
\end{answerlist}
\end{question}
\exname{German capital}
\extype{cloze}
\exclozetype{schoice|num}
\exsolution{0100|3.669495}
\extol{0.1}
\exshuffle{TRUE}