score_mcq | R Documentation |
Score a multiple-choice question.
score_mcq(
subvar,
sol_env,
opts_all,
solvar = subvar,
rectify = TRUE,
add = TRUE
)
subvar |
Name of the submission variable |
sol_env |
Solution environment |
opts_all |
Vector whose elements comprise the full set of options (e.g., "a", "b", "c", "d") |
solvar |
Name of the solution variable |
rectify |
Whether to attempt to correct the format of the submitted answer |
add |
whether to add feedback |
vector of logicals, one for each option, plus "type" and "fmt_ok" to indicate correctly formatted answer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.