gpt4 book ai didi

r-exams - 单个 R/考试练习中的不同类型的任务

转载 作者:行者123 更新时间:2023-12-04 14:54:57 24 4
gpt4 key购买 nike

在某些问题中,我需要在一个练习中包含不同类型的任务或子项目,例如多项选择和数字。这在 R/考试中可能吗?
在下面的示例中,假设 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 都支持此类练习。接口(interface)。最重要的是,它们得到了 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 中呈现的练习看起来像这样:
Moodle screenshot of German capital cloze exercise
细节和变化 \#\#ANSWERi\#\#占位符在最后的练习中被相应的交互元素替换。答案列表结合 exclozetype然后提供构建交互元素所需的信息。请注意,对应于人口规模的第五个答案列表元素为空。
也可以写成 cloze没有练习 \#\#ANSWERi\#\#占位符,但这些在如何控制交互元素方面受到更多限制。请参阅 boxhist 与 boxhist2 和四倍与四倍2。
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 - 单个 R/考试练习中的不同类型的任务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68232920/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com