Variable numeric

Question types ::: qtype_varnumeric
Maintained by TimTim Hunt, at the OU (Perry building)Mahmoud Kassaei, Anupama Sarjoshi
Part of set Open University.
A calculated numeric question type with variable and expression evaluation. Random values are generated for each student attempting the quiz.

Variable numeric 2.1 for Moodle 4.4+

Moodle 4.4, 4.5, 5.0
Released: Thursday, 3 July 2025, 1:31 AM

Changes in 2.1

  • This version is compatible with Moodle 5.0.
  • Fixed coding style issues.
  • Defined excluded hash fields and implemented conversion of legacy backup data to align with new question data format (per MDL-83541).
  • Fixed bug where numeric subquestion feedback text was displayed inline in combined questions.
  • Added new validation to the edit form to ensure teacher's answer is in the correct format.
  • Fixed a bug where adding images to feedback resulted in errors for combined numeric subquestions.
  • Removed incorrect line breaks from inputs and submitted answers in combined numeric subquestions.
  • Adapt mobile app template to Ionic 5
  • Automation test failures are fixed.
  • Added a new option to the question editing form: “If scientific notation is not formatted correctly”, allowing users to choose whether to accept a space between the number and unit as a valid response.
  • Combined\Numeric: Added "Feedback for correct response" field.
  • Added checks for empty variables to prevent save errors on the edit form.

Version information

Version build number
2025062000
Version release name
2.1 for Moodle 4.4+
Maturity
Stable version
MD5 Sum
1e7fef0887a6c669e9f0e50275f06e80
Supported software
Moodle 4.4, Moodle 4.5, Moodle 5.0
  • Latest release for Moodle 4.4
  • Latest release for Moodle 4.5
  • Latest release for Moodle 5.0

Version control information

Version control system (VCS)
GIT
VCS repository URL
VCS tag
v2.1

Default installation instructions for plugins of the type Question types

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "myquestiontype") in the "question/type" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation