Knowledge quiz question about capitals (vs. large cities) in countries around the world with 5 correct and 6 false alternatives which are shuffled randomly in each version of the exercise. Due to the large number of both correct and false alternatives, the same template could also easily be turned into a single-choice (schoice) exercise. The Rmd exercise is in UTF-8 encoding while the Rnw exercise avoids non-ASCII characters by using LaTeX commands.
Shuffling (5 out of 11 alternatives)
Verbatim R input/output:
library("exams") set.seed(403) exams2html("capitals.Rnw") set.seed(403) exams2pdf("capitals.Rnw") set.seed(403) exams2html("capitals.Rmd") set.seed(403) exams2pdf("capitals.Rmd")