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
402 sites
286 downloads
8 fans

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 #0

Contributors

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

Comments RSS

Show comments
  • Picture of Nicolas Dunand
    Sun, 20 Jul 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, 23 Jul 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, 23 Jul 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, 23 Aug 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, 26 Aug 2014, 1:31 PM
    Hello, just uploaded new version, supporting Moodle 2.3-2.7.
  • Picture of Yong Ra
    Sat, 30 Aug 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,
  • Picture of Nicolas Dunand
    Wed, 14 Oct 2015, 5:16 PM
    I've just updated the plugin. No changes but a couple bug fixes and now officially supporting up to Moodle 2.9.
  • Picture of James Lawrence
    Mon, 26 Sep 2016, 6:42 PM
    Hi Nicolas,

    I've just come across this question type and am interested in using it to set multi-part calculation questions where any calculation errors on the part of the user are carried forward and taken into account in their next answer.

    It seems to work where the answers are whole numbers, but falls down where irrational numbers are concerned. I'd like to be able to set a tolerance on correct answers but haven't found a way to do it. I was thinking that Boolean operators might work but they don't seem to be recognised. Is that right? Is there any other way to do this that you can think of?
  • Picture of Nicolas Dunand
    Mon, 26 Sep 2016, 7:31 PM
    Hi James,

    I'm not sure to understand precisely what you're trying to achieve, but intervals for correct responses can be defined, i.e.:

    X + Y = [57;62]

    There's no way to use boolean operators. If you feel like PM'ing me some more details, I can try to think of something.
  • Picture of Andrew Lyman-Buttler
    Wed, 7 Mar 2018, 4:08 AM
    This is amazing--merci beaucoup! I use it to have students assess their own lab work in chemistry.
  • Picture of Nicolas Dunand
    Mon, 12 Mar 2018, 4:23 PM
    Thanks Andrew, it's always motivating to get feedback. Let me know if you think of possible improvements.
  • Ricardo Caiado
    Sun, 18 Mar 2018, 4:36 AM
    Hi,
    Any updates do Moodle 3.4?

    Ricardo
  • Picture of Nicolas Dunand
    Mon, 19 Mar 2018, 3:08 PM
    Hi Ricardo,

    I didn't test extensively, but this should work on 3.4.
  • Picture of Andrew Lyman-Buttler
    Thu, 3 May 2018, 3:07 AM
    I just published an article about using this plugin to assess lab work: https://teachchemistry.org/periodical/issues/may-2018/use-moodle-to-score-lab-calculations-instantly

    Thanks again for your work on this software--it's transformed my science classroom. After using the plugin extensively with my classes, I have a few suggestions to make it even better:

    1) Create an option to automatically mark zeros or blank parameters incorrect. Right now it is possible for a student to score points by leaving input boxes blank (as many operations involving 0 will return 0).

    2) Allow the display of custom text by the input box, instead of the parameter name.

    3) More options for grading (e.g. some constraints may be worth more than others)

    4) Allow the user to set a tolerance for each parameter (right now I am accomplishing this by using the range function, but it is awkward)

    Thanks again!
    Andrew
  • Picture of Nicolas Dunand
    Thu, 3 May 2018, 4:21 PM
    Hi Andrew,

    Thanks for your feedback!

    1) What about if zero is a correct answer? Can you describe when it is possible to score points when it shouldn't?

    2-4) Good idea! Thanks for the suggestions, I'll try to implement this.


    Nicolas
1 2
Please login to post comments