Question types: Variable numeric

Maintained by Tim at Lone Pine Koala SanctuaryTim Hunt, Picture of Jamie PrattJamie Pratt, Picture of Phil ButcherPhil Butcher
A calculated numeric question type with variable and expression evaluation. Random values are generated for each student attempting the quiz.
677 sites
20 fans
Current versions available: 7

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
Picture of Chris Nelson
Chris Nelson: Product owner
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Tim at Lone Pine Koala Sanctuary
    Fri, Sep 26, 2014, 1:21 AM
    OK, so there is an issue here. Noted.
  • Picture of lucia liljegren
    Mon, Dec 15, 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, Dec 16, 2014, 1:11 AM
    Thanks! That's what I needed!! I've got my first one in.
  • Picture of Gábor Katona
    Tue, Jan 5, 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, Jan 6, 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, Jun 22, 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, Jun 23, 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, Aug 2, 2017, 10:52 AM
    Hi all,

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

    will there be a 3.4 Version of this Plugin?

    Best regards
  • Picture of Suzana de Andrade Ferreira
    Wed, Mar 4, 2020, 4:49 AM

    How can I change the decimal separator from a point to a comma?

  • Picture of Andreu Martí
    Thu, Apr 23, 2020, 7:23 PM
    I'd also like to know this, because like other languages in spanish and in catalan the coma is the decimal separator. In moodle core, the numerical question has it resolved. Does anybody know how to fix this? thank you in advance.
  • Tim at Lone Pine Koala Sanctuary
    Thu, Jun 11, 2020, 5:37 AM
    Latest version works with Moodle 3.9.
1 2
Please login to post comments