Example: Use a short answer in a math question

Updated 16 Jun 2023

The following example shows you how to create a simple math question with a static short answer:

  1. When you open the Create Custom Question wizard, choose to start with an empty template.
  2. Select Top/Bottom as the format and click Next.
  3. In the Custom Question Builder, enter the following in the "problem statement" (question) section of the question-and-answer area:

    What is the sum of 123.45 and 678.90?

  4. Enter the following in the answer (interaction) area:
  5. The sum is

  6. Make sure your cursor is at the end of the answer text and click Short Answer under Student Interactions in the menu on the left.
  7. In the Edit Answer Definition window, click Step 1 in the menu on the left.
  8. Select Accept only the exact answer you define and click Next to go to Step 2.
  9. Under Value in the table, enter:
  10. 802.35

  11. At the bottom of the window, select Override Default and enter 2 in the box below. This setting means that your students can make only two attempts to answer the question in a homework assignment.
  12. Click Next to go to Step 3.
  13. Accept all the defaults and click Next to go to Step 4.
  14. In the Incorrect Answer Feedback box, enter:

    Incorrect. See section 3.2.1 in your textbook.

    Students see this message when they enter an incorrect answer.

  15. Click Save.

    You return to the Custom Question Builder window, where your answer now shows in the answer area.

  16. Under the short answer box, enter the instruction:

    (Enter your response rounded to two decimal places.)

  17. Click Preview Exercise to view your answer as your students see it.
  18. When you are satisfied with your question, click Save and Exit to enter question settings

If you have defined algorithmic values, you can replace the static problem and answer values with your algorithmic values. See Convert static questions to algorithmic for details.