powered by
Create YAML string for InlineChoice object (dropdown list)
dropdown( choices, solution_index = 1, points = 1, shuffle = TRUE, response_identifier = NULL )
A character string mapped as yaml.
A numeric or character vector; contains values of possible answers. If you use a named vector, the names will be used as identifiers.
An integer value, optional; the number of right answer in the choices vector. Default is 1.
choices
1
A numeric value, optional; the number of points for this gap. Default is 1.
A boolean, optional; is responsible to randomize the order in which the choices are initially presented to the candidate. Default is TRUE.
TRUE
A character string, optional; an identifier for the answer.
gap_text(), gap_numeric(), mdlist()
gap_text()
gap_numeric()
mdlist()
dropdown(c("Option A", "Option B"), response_identifier = "task_dd_list")
Run the code above in your browser using DataLab