如何在 R Markdown 中创建多项选择测试 [HTML]

问题描述 投票:0回答:1

我正在尝试为我的学生准备测验/测试。这是一本 HTML 书(测验只是本书的一部分)。所以,基本上,这个测试都会有一个只有一个正确答案的问题。 例如:

What is the capital city of Germany?
A) Copenhagen
B) Riga
C) Berlin
D) Bucharest

如果学生选择选项A,则会出现以下答案:

Nope, Copenhagen is the capital of Denmark.

如果学生选择选项 B,则会出现以下答案:
Nope, Riga is the capital of Latvia.

如果学生选择选项C,则会出现以下答案:
Correct.

如果学生选择选项D,则会出现以下答案:
Nope, Bucharest is the capital of Romania.


我需要将代码编织成 HTML。我不想使用包。

r r-markdown multiple-choice
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.