Versions Compared

Key

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

...

Code Block
languagetext
\choice{}{1}{Here is choice one.}
\choice{}{2}{You set the text yourself.}
\choice{}{3}{Even equations can go in here.}


"ans1 = 1;" indicates that the first choice is the correct answer. Notice that this is different than in free response, where the variable itself is being called. Ex: in multiple choice: ans1 =1 means the first answer choice is the correct answer. In free response ans1=1 means the number 1 is the solution. In free response ans1=@a1 calls a1 as the solution. In multiple choice ans1=@a1 will throw a validation error and will not move the question forward.



Click here for more information about the code portion.

...