Question types: Variable numeric

Maintained by Tim at Lone Pine Koala Sanctuary Tim Hunt, Picture of Jamie Pratt Jamie Pratt, Picture of Phil Butcher Phil Butcher
A calculated numeric question type with variable and expression evaluation. Random values are generated for each student attempting the quiz.
721 sites
10 fans

There are working examples in eAssessment with Moodle on our OpenLearn site.

The documentation is in How to create questions in Moodle on that site.


This plugin is part of set Open University.


Screenshot #0
Screenshot #1


Tim at Lone Pine Koala Sanctuary
Tim Hunt (Lead maintainer)
Picture of Jamie Pratt
Jamie Pratt: Developer
Picture of Phil Butcher
Phil Butcher: Question type designer
Picture of Colin Chambers
Colin Chambers: Developer
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Charles Havegheer
    Wed, 24 Sep 2014, 3:48 PM

    i have version 2.7 and the box "Require scientific notation" doesn't work
    I don't have the superscript facility :/
  • Tim at Lone Pine Koala Sanctuary
    Wed, 24 Sep 2014, 11:03 PM
    Hmm. It seems to be working for me on my test site.

    There are a few changes I need to publish to the plugins DB, which I have not done yet, but I don't think they would affect this.

    Have you tried the ususal things, like 'Purge all caches'?
  • Picture of Charles Havegheer
    Fri, 26 Sep 2014, 12:17 AM
    Hi ,
    Yes, I tried to purge caches.
    I tested the plug-in to a new Moodle installation, with default configuration and default theme, and I had the same problem
  • Tim at Lone Pine Koala Sanctuary
    Fri, 26 Sep 2014, 1:21 AM
    OK, so there is an issue here. Noted.
  • Picture of lucia liljegren
    Mon, 15 Dec 2014, 10:41 PM
    I read the I found-- which is a moodle quiz that shows what the questions look like on the front end. That shows me that this is the (likely) the type of question I would like to create. But it doesn't tell me how to create them.

    I'm looking for documentation that explains how to create a question. An simple example showing
    * a possible question (example: what is x+(2x)^2 where y=2x or something like that)
    * what sorts of things to put in boxes
    all on the admin side is what I'm hoping for.
    That must exist. Where can I find that? (Or what search terms can I use.)

    I'm hoping to move on to "combined" once I know whether I need wild cards { }.
  • Picture of lucia liljegren
    Tue, 16 Dec 2014, 1:11 AM
    Thanks! That's what I needed!! I've got my first one in.
  • Picture of Gábor Katona
    Tue, 5 Jan 2016, 12:26 AM
    We have started to experiment with this plugin and we noticed that the decimal and thousand separator are hard coded into the plugin code rather than getting them from the Moodle language file. Do you plan to change this behaviour?
  • Tim at Lone Pine Koala Sanctuary
    Wed, 6 Jan 2016, 3:16 AM
    Unfortunately, we don't plan to do this. The handling of . and , in the standard Numerical question type is not ideal, and has caused many subtle problems over the years, so I am wary of copying it.

    This question type was created by and for the Open University, which only teaches in English, so we don't need this ourselves. This reduces the change the change would ever by made (but it is not completely impossible).
  • Picture of Andreas Schenkel
    Thu, 22 Jun 2017, 10:05 PM
    Do you plan to support moodle 3.2 and 3.3 and so on?
  • Tim at Lone Pine Koala Sanctuary
    Fri, 23 Jun 2017, 12:26 AM
    I am pretty sure that this question type dose work with 3.2. I suggest you test it. However the Behat tests need to be udpated before they will pass. I need to transfer the fixes from the OU's code base, and I don't have time to do that right now.
  • Picture of Phan Chon
    Wed, 2 Aug 2017, 10:52 AM
    Hi all,

    Please let me know which version can work fine with moodle 3.3?
  • Picture of Charles Havegheer
    Tue, 17 Oct 2017, 10:32 PM
    I tested the plugin on moodle 3.3 and it works.
  • Tim at Lone Pine Koala Sanctuary
    Tue, 17 Oct 2017, 10:54 PM
    Thanks, Charles.
  • Picture of Sebastian H.
    Mon, 23 Apr 2018, 8:04 PM

    will there be a 3.4 Version of this Plugin?

    Best regards
1 2
Please login to post comments