qu.x.y.mode=numeric@
The numeric question type accepts:
Pure numbers (without physical units) in decimal form or scientific notation
Numbers with units
You cannot use arithmetic operators, equations, or algebraic formulas in the correct answer.
Equivalent numeric expressions and units are recognized. The system recognizes default unit equivalents. You can also create a question bank-specific table of equivalent units.
Students are prompted to enter responses in scientific or numeric format, with or without physical units.
You specify the inclusion of units in the correct answer using the answer.units question field. If you do not assign a value to the answer.units statement, the correct answer is dimensionless.
Using the optional showUnits field, you control whether the system displays the question with the Units text field.
You can control the precision and tolerance (or margin of error) required in student responses. The easiest way to set these modes is by using the Question Bank Editor to author numeric questions.
Single or multiple numeric question blanks can be included along with other response objects inside Inline Questions.
qu.1.1.mode=numeric@
qu.1.1.question=
<question_text>
@
qu.1.1.answer.num=<numeric part of the answer, for example, 3>@
qu.1.1.answer.units=<units part of the answer, for example, m/s>@
qu.1.1.showUnits=<true or false; whether to display the question with a Units text field>@
qu.1.1.grading=<grading mode; see below>@
qu.1.1.units=<(optional) reference to external table of units; see below>@
qu.1.1.digit=<# sig digits (positive integer); required for exact_sigd and toler_sigd grading modes>@
qu.1.1.err=<error/tolerance; required for toler_sigd and toler_abs grading modes>@
qu.1.1.perc=<percentage error/tolerance; required for toler_perc grading mode>@
Using the grading mode, you can control the precision or margin of error in the student responses graded correct.
exact_sigd
The numeric value of the student response must match answer.num.
The number of significant digits in the student response must match digit.
For example, if answer.num = 2.5 and the digit = 3, only 2.50 is correct. In particular, 2.5 is incorrect.
exact_value
The numeric value of the student response must match answer.num.
For example, if answer.num = 2.5, 2.50 and 2.5 are correct, but 2.500001 is incorrect.
toler_sigd
The numeric value of the student response must be within +/- err in the digitth significant digit of answer.num.
For example, if err = 2, digit = 3, and answer.num = 2.5, any response between 2.48 and 2.52 (inclusive) is correct. In particular, 2.4999999 is correct.
toler_perc
The numeric value of the student response must be within perc % of answer.num.
For example, if perc = 5 and answer.num = 2.5, any response between 2.5 * 0.95 and 2.5 * 1.05 is correct. In particular, 2.38888888 is correct.
toler_abs
The numeric value of the student response must be within +/- err of answer.num.
For example, if err = 0.25 and answer.num = 2.5, any response between 2.25 and 2.75 (inclusive) is correct. In particular, 2.333333333 is correct.
To use a table of units, include the following statement:
qu.1.1.units=<tablename>@
where <tablename> is a table of unit definitions in the question bank. For more information, see Setting Question Bank Equivalent Units.
See Also:
Creating Numeric Questions in the QBE
Controlling Significant Digits