mc {moodler}R Documentation

mc

Description

This function generates the code for a multiple choice CLOZE question

Usage

mc(options, w, which.true, pts = 1)

Arguments

options

vector of choices

w

vector of weights

which.true

either which of the options gets 100 or a logical value TRUE=first option, False=second option

pts

how many points is question worth?

Examples

mc(c("Yes", "No"), c(100, 0), 10)
mc(3, which.true=(pval<0.05))

[Package moodler version 0.1.1 Index]