...
There are two options for creating multiple choice questions on Quest. The first option, as detailed on this wiki page, is to create them using the HTML format through your Editor role.
...
In the body of the problem, below the statement of the question, add in the number of choices you want to offer students (see image).
In the Code section, set ans1 to the correct answer choice (in this case 1). In this case, variables d2-d8 are distractor variables that represent other possible choices.
The problem, plus the solution, looks like this:
Here, option 2 corresponds to an error where a student neglected the cos() term in their calculation and therefore may be considered the “second best” option.
...