Next: , Previous: endquestion, Up: Commands to define exercises


4.1.13 answer

The command answer starts an answer statement for a question. It has to be included within the question (right after the options in multiplechoice or truefalse, and after the statement in the shortanswer question). Whatever found between answer and endanswer is passed verbatim to the LaTeX answer file or the web form answer file.

Example of answer statement

     question
     Choose the correct answer
     . 1
     . 2
     . 3
     . 4
     : None of the above
     answer
     The correct answer is 1 because it is the first one
     endasnwer
     endquestion