If you are interested in this question type, you may also be interested in Calculated, Calculated multichoice and Calculated simple. To create one of these types, at step 2 (below) select one of these options instead of Numerical.
Steps
Open the quiz and either:
Edit the quiz, click on an Add link on the right side of the page, and select + a new question.
Open the question bank and click on the Create a new question button
Select Numerical and click the Add button.
Give the question a Category
Give the question a Category Name (required field)
Enter question text (required field)
Decide on the default mark for the question (required field)
Fill in General feedback (students will see this once they have answered the question)
Select answer 1, the error for getting it wrong, and the grade. Do this for all other correct/incorrect answers
Provide feedback for the answer (whether right or wrong)
Under Unit handling and Units, decide on the configuration (this will only apply if the answer is not a whole number)
Click Save changes
Preview the question to make sure it works correctly