Skip to contents

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 TRUE if correct has more than one element.