Answer for a multiple choice question
Usage
answer_mcq(correct, choices, multiple = length(correct) > 1)Arguments
- correct
Character vector of correct answer(s). Should be one element for single-answer multiple choice questions and can be multiple elements for multiple-answer multiple choice questions.
- choices
Character vector of answer choices.
- multiple
Logical. Whether the question allows multiple correct answers. Defaults to
TRUEifcorrecthas more than one element.
See also
Other answer-functions:
answer_essay(),
answer_matching(),
answer_multiple(),
answer_none(),
answer_num(),
answer_single(),
answer_text(),
answer_true_false(),
answer_upload_file()