Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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).


Image Modified


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.


Image Modified


The problem, plus the solution, looks like this:


Image Modified


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.

...