Function creating a computation question which can be either open (altnbr = 0) or closed. Explanations associated with different answers are also retrieved.

create_computation(propositions, codes, altnbr, interrogation)

Arguments

propositions

Tibble. Table from which items (alternatives) and associated explanations are selected.

codes

Character string. Code of the question to which the propositions are linked.

altnbr

Integer. Number of propositions (i.e. choices) to offer to the student.

interrogation

Character. Question asked to the student.

Value

Tibble. Table containing all the information about the propositions made to the student.

Author

Nicolas Mangin