This is a question type plugin for Moodle with random values and multiple answer fields. The answer fields can be placed anywhere in the question so that we can create questions involving various answer structures such as coordinate, polynomial and matrix. Other features such as unit checking and multiple subquestions are also available.
These functionalities can simplify the creation of questions in many fields related to mathematics, numbers and units, such as physics and engineering.
This question type was written by Hon Wai Lau and versions for Moodle 1.9 and 2.0 are still available at the original author's website at the date of this writing. It was then upgraded to the new question engine introduced in Moodle 2.1 by Jean-Michel Védrine.
This version is compatible with Moodle 3.9 and newer. It has been tested with:
- Moodle 3.9 using PHP 7.4
- Moodle 3.11 using PHP 7.4 and PHP 8.0
- Moodle 4.0 using PHP 7.4 and PHP 8.0
- Moodle 4.1 using PHP 7.4, PHP 8.0 and PHP 8.1
- Moodle 4.2 using PHP 8.0, PHP 8.1 and PHP 8.2
- Moodle 4.3 using PHP 8.0, PHP 8.1 and PHP 8.2
- Moodle 4.4 using PHP 8.1, PHP 8.2 and PHP 8.3
- Moodle 4.5 using PHP 8.1, PHP 8.2 and PHP 8.3
You will need to install Tim Hunt's Adaptive question behaviour for multi-part questions (qbehaviour_adaptivemultipart) prior to installing the formulas question type. You can also get it from GitHub.
You absolutely need version 3.3 or newer of this behaviour, the formulas question type will not work with previous versions.
- Download the plugin from the Moodle plugin directory.
- Install as any other Moodle question type plugin.
To install using git type these commands in the root directory of your Moodle install:
$ git clone git://github.com/FormulasQuestion/moodle-qtype_formulas.git question/type/formulas
$ echo '/question/type/formulas/' >> .git/info/exclude
Alternatively, download the zip and
unzip it into the $MOODLE_ROOT/question/type
folder. Do not forget to rename the new
folder to formulas
.
This question type is very powerful and permit creation of a wide range of questions. But mastering all the possibilities requires some practice and there is a learning curve on creating formulas questions.
Here are some pointers to the available help :
- First, you can import the Moodle XML file
samples/sample-formulas-questions.xml
and play with the included formulas questions. - You can visit the documentation made by Dominique Bauer. As there is no or little difference in the Formulas question type plugin for recent versions of Moodle (2.0 and above), the documentation for the Formulas question type has been moved to this location but it applies to all Moodle versions, including the current release.
- You can read discussions about the formulas question type in the Moodle quiz forum like, for example, the thread where Jean-Michel Védrine presents the (then) new version for Moodle 2.0 or this one from Hon Wai Lau
- You can post your own questions in this forum.
Please open an issue on GitHub.
You can also open an issue in the Moodle Tracker
To create a new tracker issue:
- Log in and click on the Create button in the menu bar.
- Choose Plugins (CONTRIB) in the "Project" field.
- Set the "Component(s)" field to Question type: Formulas.
- Try to include as many details as you can so that the problem can be reproduced.