Arithmetic questions enable instructors to assess students’ knowledge and comprehension of mathematics and number theory. Instructors can ensure each respondent receives a unique question by including variables enclosed with curly braces that randomly generate numbers within the problem.

For example, if you set variables x, y, and z with a Min 1 to Max 5 number range in 1-step increments, the question “You have {x} green marbles, {y} red marbles, and {z} blue marbles. How many marbles do you have in total?” will randomly generate a rational number (1, 2, 3, 4, 5) for {x}, {y}, and {z}.

As a best practice, it is recommended that you create written response (WR) question types for arithmetic problems that require students to demonstrate their calculations and show their work.

In arithmetic questions, use answer precision to limit the number of acceptable decimal places allowed in a response. You can require that correct answers contain a specific number of decimal places.

Use tolerance levels to accept near-accurate, estimated, or rounded answers.

Watch how to create arithmetic questions

- On the nav bar, select the
**Activities**menu, then click either**Quizzes, Surveys, or Self Assessments**. In the example below, we selected**Quizzes**.

- From the tool navigation, click
**Question Library**.

- Select
**New**.

- Select the question type:
**Arithmetic Question (2+2)**. - In the
**General**area, enter your arithmetic question details including:- Optional: Title
*Note: We recommend leaving the Title field blank. The Question Text will become the title by default, allowing you to see the question without having to click to open it.*

Points - Difficulty Level
- Question Text. Enclose all variables with curly braces if you want to generate random numbers.
*Note: The Graphical Equation editor can be especially helpful if the question contains a complicated formula. If you are working on a device with a small screen, you may have to click the***ellipses**for the**Graphical Equation menu**to appear. - Optional: Insert an Image and Image description.

- Optional: Title
- Enter the solution’s formula, setting variables inside curly braces. See Types of Supported Enumerations in the Formula Field.

- To verify your formula before sharing it with students, click
**Test**. - Use the
**Answer Precision**field to define the number of decimal places the answer may contain; check**Enforce Precision**if you want to require this number of decimal places in the correct answer.*Note: If you enforce precision, we suggest specifying the number of decimal places a correct answer should contain in your question or in the quiz instructions.*Learn about Understanding Quiz Answer Rounding Rules.

- To accept near-accurate, estimated, and/or rounded answers, enter a
*Tolerance*level:**Units**allow you to specify how far numerically an answer can deviate and still be considered correct (e.g. setting a tolerance of .5 units on a correct answer of 100 will instruct D2L to accept any answer between 99.5-100.5).

**Percent**allows you to use a percentage to determine how far off an answer can be (e.g. setting a tolerance of 1 on a correct answer of 50 will instruct D2L to accept any answer between 59.4-50.6).

- Use this option if the correct answer should include a unit of measurement (mm, cm, grams, inches, etc.):
- Select the Evaluation Option. There are three possible grading options:
**Text/Case Insensitive**– Auto-grading searches for a matching character pattern in the answer text with or without letter case correctness.**Case-Sensitive**– Auto-grading searches for a matching character pattern in the answer text that must have letter case correctness. Proper capitalization is required.**Regular Expression**– Auto-grading uses meta-characters to search for one or more matching strings in the answer text’s character pattern. What you set as meta-character parameters helps determine letter case sensitivity. Learn more about Regular Expressions, see Understanding Regular Expressions.

- In the
**Variables**area, do the following:- Create any variables you want to use with your question by giving the variable a
**Name**, a minimum value in**Min**, and a maximum value in**Max**. - Set the number of decimals to provide in the
**Decimal Places**drop-down list. - To set the system’s incrementing steps as it generates numbers from the range set by the
**Min**and**Max**fields, enter a number in the**Step**field.

- Create any variables you want to use with your question by giving the variable a
- Optional: Add or remove
**Variables**, as needed, to match the number of variables in the formula. Add a variable by clicking the**Add Variable**link. Delete a variable by selecting the**Remove Variable**(trash can icon). - Optional: To add overall feedback for the question, select
**Add Feedback**. Learn about Quiz Question Feedback. - Optional: To add a hint to the question, select Add Hint. Learn about Quiz Question Hints.
- To verify your answer, click
**Preview**. - Click
**Save**.