Quiz
 generate an interactive quiz

 Calling Sequence Quiz( question_statement, grade, init, options ) Quiz( MapleTAImport )

Parameters

 question_statement - string grader - procedure or value init - procedure or value MapleTAImport - Record imported by MapleTA:-Import

Options

 • style = math, truefalse, multiplechoice, or multipleselect
 The style option specifies the kind of question to display.
 • scramble = true or false
 The scramble option applies only to multiple choice and multiple select style questions.  The order of the entries are displayed in a random order.  The default is true.
 • mathsize = [width,height]
 This size will be used to format the answer input box.
 • plotsize = [width,height]
 This size will be used to format the size of any plot that appears in the question.
 • numchoices = integer
 This can be used to specify the maximum number of choices in a multiple-choice question if there could be more than five choices and it is not obviously determined by the initialization data.
 • inertform = true or false
 When set to true, values returned from an answer area and sent to the grading routine will use the InertForm format to prevent automatic simplification.  This option only applies to the implicitly presented output area and response math container.  It does not affect Get or Set values.
 • name = string
 This option is used to give the question a name when used in conjunction with output = mapleta
 • output = quiz, module, or mapleta
 The output option determines the return behavior of the Quiz command.  The default is to generate an interactive quiz.  Choosing output = module will return a Record structure encapsulating the data used to drive the interactive quiz.  The third option, output=mapleta will cause a Record structure to be returned in such format that is suitable for giving to the MapleTA:-Export command so the quiz can be used in Maple T.A.

Description

 • The Quiz command generates a simple interactive tool that displays a question, accepts a response, and grades the response. If the question generation is algorithmic, then it also offers the ability to try another version of the question with new random variables.
 • The question_statement should be a string containing the text of the question.  Blanks can be implicitly assigned by including "$" variables within the question text.  • The grader argument is either the correct answer, or a procedure that returns true or 1 for a correct answer and false or 0 for an incorrect response.  The grader procedure should either take two arguments -- the response and expected answer -- or use Quiz:-Get to get the "$RESPONSE" variable.
 • The init argument is either an initial value or a procedure that generates initial values.
 As a procedure, init takes no arguments. It can either set "\$" variables using Quiz:-Set, or return a value that will be implicitly filled into the question.
 Examples The Quiz Example Worksheet provides a number of examples.

Compatibility

 • The Grading[Quiz] command was introduced in Maple 18.