# Inserting a Calculated question in the Moodle Question Bank

The first option in the Moodle Question Bank is the **Calculated question**. The calculated question allows the teacher to create mathematical questions. These can have formulas that are kept in a **Dataset** (Datasets will be discussed in a later article). An example of a calculated question would be a question on the area of a square. The teacher can create a question based off of the area of a square formula. Lets move forward and walk through the steps of creating the calculated question.

### Creating a Calculated Question in Moodle

- Log into the Moodle Dashboard
- Navigate to
**Front page settings**>**Question bank**>**Questions**in the Settings section on the left.. - Click
**Create a new question**.

When the**Choose a question type to add**box pops up, select the**Calculated**radio button and click**Next**. - Next the
**Adding a Calculated question**page will display. The following table will detail the necessary fields to fill out.

Category Select the category. For more information on the question categories click here. Question name Type the **Question name**. This should be very unique as it will need to be distinguishable from the other questions.Question Text In the **Question Text**box, type the question. For instruction purposes, type the area of a square question. The question should look like the following:

**What is the area of a square that is {****A****} by {****B****}**

The**Curly brackets**are**wild card variables**that can be set to random parameters. There are many different formulas that can be created for the Calculated question.**This tutorial will not cover Calculated question formulas.**The student will see random numbers in place of the curly bracketed variables like the following:

**What is the area of a square that is 5 by 3?****Note!**At least one wildcard must be in the Question text. Wildcards are placed inside**curly brackets**. Wild cards will be discussed in a different article.Default mark The **Default mark**is to determine how much the question is worth. For example, if the question is weighed heaver than other questions, the Default mark can be set to 2 or 3 points. - Next, fill in the
**Answer**section. Below is a brief on the Answer settings. When done click**Save Changes**.

**Correct Answer Formula=**This is where the formula for the question is entered. Moodle will use the formula to calculate the question and answer. The formula used in this tutorial is **{A}*{B}**. Formulas will be created the same way they are normally calculated with a calculator.**This article will not discuss how to create a formula.****Grade**The **grade must be set**or there will be an error saving the question. This value is how much the question is worth if answered correctly.**Tolerance ±=**The Tolerance of the Question answer is the same as "Grading on a Curve". Tolerance allows the student to come close to the correct answer. The default is 0.01. which is equivalent to 1%. This is figured into the Tolerance type. This will be discussed in a later article **Tolerance type**The tolerance of the answer is figured 3 ways, **Nominal**,**Relative**, and**Geometric**. Each of these are factored in with the**Tolerance ±=**. The details of how this works will be discussed in a different article.**Correct answer shows**This determines the precision of the answer. **Format**This setting sets the answer as a decimal or significant figures. **Feedback**What displays when the answer is correct goes in the Feedback box. This is not a necessary part of the answer. - On the
**Choose Wildcards dataset properties**page click next. (This section will be discussed in detail in a different article.) - On the
**Edit the wildcards datasets**page, where the**Add**section is located, make sure to click**Add**.

Once the dataset is added, click**Important!**. If the dataset item is not added, there will be an error message stating:

You must add at least one dataset item before you can save this question.**Save changes**. (This section will be discussed in detail in a different article.) - Now the Question will show in the Question Bank. To preview the Question click the preview icon.
- The preview should look like the following snapshot. Congratulations the question was entered in the Question bank and is now available to use in Lessons and Quizzes.

This concludes the article on Inserting a Calculated question in the Moodle Question Bank. If you missed the previous article on Creating categories in the Moodle Question Bank, feel free to visit it now. There are many more question types that can be added to the Question bank. To see other questions that can be added, please see the course on Working with the Question Bank

### Post a Comment

### Working with the Question Bank

### Related Questions

## Need more Help?

### Search

### Ask the Community!

### Current Customers

Chat: | Click to Chat Now | E-mail: | support@InMotionHosting.com |
---|---|---|---|

Call: | 888-321-HOST (4678) | Ticket: | Submit a Support Ticket |

We value your feedback!

There is a step or detail missing from the instructions.

The information is incorrect or out-of-date.

It does not resolve the question/problem I have.