LON-CAPA Help
numericalresponse implements a numerical answer,
it needs an internal textline for the the response to go in.
It checks all styles of numerical supported in CAPA.
The answer can be specified with the answer attribute or with an answergroup.
Possible attributes are:
- answer: specifies the correct answer,
may be either a perl list or scalar
- unit: optional, specifies unit of correct answer, CAPA style
- incorrect: Incorrect Answers. When switched into exam ("bubble sheet") mode, LON-CAPA usually create wrong answers automatically. To specify wrong answers yourself, you need to provide an array of incorrect values in this attribute. You need to provide at least as many incorrects as 1 less than the number of bubbles on the exam. You can provide more if you want to.
- format: string to format the number displayed as the answer. See num in for examples.
- preprocess: optional, pre-process Perl subroutine
Hints can be specified with numericalhint.