Versions Compared

Key

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

Use question ID 179793 as a template to create a new multiple choice question.

 


...

You can also create a Tex Open MC question from a blank TeX Open question type (obtained by following the instructions here) by including the following:

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.

 

Image Removed

 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.


Image Added


Click here for more information about the code portion.

 

 


...