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 rectangle. The teacher can create a question based off of the area of a rectangle formula. Lets move forward and walk through the steps of creating the calculated question.

Creating a Calculated Question in Moodle

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

    When the Choose a question type to add box pops up, select the Calculated radio button and click Next.

  4. calculated-question-3-general-moodle

    Next the Adding a Calculated question page will display. The following table will detail the necessary fields to fill out.

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

    What is the area of a rectangle 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 rectangle 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 markThe 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.
  5. calculated-question-4-answer-moodle

    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.
    GradeThe 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 typeThe 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 showsThis determines the precision of the answer.
    FormatThis setting sets the answer as a decimal or significant figures.
    FeedbackWhat displays when the answer is correct goes in the Feedback box. This is not a necessary part of the answer.


  6. calculated-mulitchoice-bank-6-dataset-moodle

    On the Choose Wildcards dataset properties page click next. (This section will be discussed in detail in a different article.)

  7. calculated-mulitchoice-bank-7-add-moodle

    On the Edit the wildcards datasets page, where the Add section is located, make sure to click Add.

    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.

    Once the dataset is added, click Save changes. (This section will be discussed in detail in a different article.)

  8. calculated-question-6-bank-moodle

    Now the Question will show in the Question Bank. To preview the Question click the preview preview icon.

  9. calculated-question-7-preview-moodle

    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

InMotion Hosting Contributor
InMotion Hosting Contributor Content Writer

InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!

More Articles by InMotion Hosting

0 thoughts on “Inserting a Calculated question in the Moodle Question Bank

  1. “round{=100-8800/{p} }”

    {=100-8800/{p} }

    round{=100-8800/{p} }

    I cannot ROUND the variable as above, please advice.

     

  2. Thanks – finding these pages far more useful than Moodle’s documentation.

    However, “a square that is 5 by 3”?! I suggest changing this to rectangle.

Was this article helpful? Join the conversation!