LMSouq
moodle-core Open

Dropdown menu for multiple-choice questions with exams2moodle

FA
Fazeel Jaleel
1 month ago
4 views
Problem Description
I use Sweave (Rnw) questions using `exams2moodle()` from R/exams. All works fine except when I'm trying to use dropdown question for schoice or mchoice questions. Following the manual I try to use the option `cloze_mchoice_display = "MULTICHOICE"`, but that does not work. I include an example Rnw exercise along with my R code below. \begin{question} Which is a parameter? \begin{answerlist} \item population mean. \item sample mean. \item sample variance. \item sample mode. \item sample standard deviation. \item population mode \end{answerlist} \end{question} %% \expoints{5} %% \extype{mchoice} %% \exsolution{100001} %% \exshuffle{5} Replication code: library("exams") exams2moodle("cloze_dropdown.Rnw", n=3, name = "dropdown") make_question_moodle(cloze_mchoice_display = "MULTICHOICE")

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base