Your Moodle version

Question types: Multinumerical

qtype_multinumerical
Maintained by Picture of Nicolas Dunand Nicolas Dunand
This question type allows asking questions such as : Please enter X, Y, and Z, such as : X + Y + Z > 12
11k
1
Moodle 2.1, 2.2, 2.3

This question type allows asking questions such as :

Please enter X, Y, and Z, such as :
  • X + Y + Z > 12
  • X - Y <= 3
  • Z = [0;100] (Z is between 0 and 100, included)

For each constraint, a feedback can be generated, displaying some text for a condition being fulfilled, and some other text if not.

The grading can be set to be one of the following :

  • 100% (all constraints fulfilled) or 0%
  • grade = (amount of constraints fulfilled) / (total amount of constraints)

Screenshots

Screenshot

Contributors

Picture of Nicolas Dunand
Nicolas Dunand (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • B.Havel
    Thu, Jul 25, 2013, 4:15 PM
    Hi,
    Nice solution!
    according our custom we wish (and need) comma as a decimal separator. Using comma enter decimal number, but faild evaluation. Decimal poit is wrong by our country settings.

    Has this problem a solution according example Cloze ?

    http://docs.moodle.org/24/en/Cloze#Numerical_Cloze_questions

    Bohus
  • Picture of Nicolas Dunand
    Mon, Aug 5, 2013, 3:22 PM
    Hi Bohumil,
    Thanks for your feedback. Would you mind filing an issue in the Moodle Tracker (assign it to me) or in GitHub ( https://github.com/ndunand/moodle-mod_choicegroup/issues ) so that I can think about a solution to this problem when I next take this plugin for a review.
  • my photo
    Sun, Nov 17, 2013, 9:27 PM
    not install in moodle 2.5.2. pls help
  • Picture of Nicolas Dunand
    Mon, Nov 25, 2013, 8:19 PM
    Hello Taras,
    We're using the plugin without any problems in Moodle 2.5. Can you please describe the problem encountered?
  • B.Havel
    Wed, Jan 29, 2014, 4:55 PM
    Using install on this page https://moodle.org/plugins/report/index.php?report=user_sites&pluginid=131
    finished without result. Waiting on admin index. Have to delete plugin.
  • Picture of Nicolas Dunand
    Thu, Jan 30, 2014, 6:04 PM
    Hi Bohumil,
    I'm not sure what "install on this page" does. Could you update me on this?
  • Picture of Mike Carrington
    Fri, Jul 18, 2014, 11:19 PM
    Tried to update Moodle 2.6.4 after installing some extra bits, including the Multinumerical question type.
    Got this error message:

    Upgrading to new version
    qtype_multinumerical
    Field "questionid" does not exist in table "question_multinumerical"

    More information about this error
    Debug info:
    Error code: ddlfieldnotexist
    Stack trace:

    line 674 of /lib/ddl/database_manager.php: ddl_field_missing_exception thrown
    line 50 of /question/type/multinumerical/db/upgrade.php: call to database_manager->rename_field()
    line 531 of /lib/upgradelib.php: call to xmldb_qtype_multinumerical_upgrade()
    line 1601 of /lib/upgradelib.php: call to upgrade_plugins()
    line 438 of /admin/index.php: call to upgrade_noncore()

    Unfortunately, this seems to prevent everything from upgrading, and removing the multinumerical files from the server doesn’t help as I still can't upgrade.
    It looks as if the table in question is empty (but I know almost nothing about databases).
  • Picture of Nicolas Dunand
    Fri, Jul 18, 2014, 11:57 PM
    Mike,

    Sorry about that. Would you be able to tell me which fields your question_multinumerical table contains?
  • Picture of Mike Carrington
    Sat, Jul 19, 2014, 4:07 PM
    Hi Nicolas, when I look at the structure of mo_question_multinumerical, in PHPMyAdmmin, it says "MySQL returned an empty result set (i.e. zero rows).
    This is the third Moodle site I have set up with your question type, and it is the only one that has thrown an error. The database for this one is much larger - I have moved and upgraded our College Moodle site. This entailed using a tool to prevent the process timing out, but I used it on all of them.
  • Picture of Nicolas Dunand
    Sun, Jul 20, 2014, 12:11 AM
    Hi Mike,
    In PHPMyAdmin you have to click the "structure" button next to the table name (or on top of the screen once the table is selected) to see the structure. It is possible that the table contains no records (i.e., no rows) but it is the structure of the table (not its content) that matters here.
  • Picture of Mike Carrington
    Wed, Jul 23, 2014, 6:36 AM
    Hi Nicolas,
    I have 8 fields: id, question, parameters, conditions, feedbackperconditions, binarygrade, displaycalc and usecolorforfeedback.
    So no questionid, but there is id.
  • Picture of Nicolas Dunand
    Wed, Jul 23, 2014, 1:17 PM
    Hi Mike,
    Okay, there is apparently an upgrade path I didn't think of. To solve your problem, you can safely delete line 50 of the multinuerical/db/upgrade.php file. Then the upgrade process should be able to finish correctly.
  • Picture of Yong Ra
    Sat, Aug 23, 2014, 1:43 AM
    When will this question type be compatible with 2.7? I only see it up to 2.6. Is 2.6 version work on 2.7?

    Thank you,
  • Picture of Nicolas Dunand
    Tue, Aug 26, 2014, 1:31 PM
    Hello, just uploaded new version, supporting Moodle 2.3-2.7.
  • Picture of Yong Ra
    Sat, Aug 30, 2014, 12:43 AM
    I am still getting the error with the new file.

    ----------------------------------
    Field "questionid" does not exist in table "question_multinumerical"

    More information about this error

    Debug info:
    Error code: ddlfieldnotexist
    Stack trace:
    line 669 of /lib/ddl/database_manager.php: ddl_field_missing_exception thrown
    line 50 of /question/type/multinumerical/db/upgrade.php: call to database_manager->rename_field()
    line 535 of /lib/upgradelib.php: call to xmldb_qtype_multinumerical_upgrade()
    line 1615 of /lib/upgradelib.php: call to upgrade_plugins()
    line 434 of /admin/index.php: call to upgrade_noncore()
    ---------------------------------

    Thank you,
1 2
Please login to post comments