Multinumerical

Question types ::: qtype_multinumerical
Maintained by Nicolas Dunand
This question type allows asking questions such as : Please enter X, Y, and Z, such as : X + Y + Z > 12
Latest release:
390 sites
372 downloads
13 fans
Current versions available: 7

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

Nicolas Dunand (Lead maintainer)
CSE Université de Lausanne: Supporting institution
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Nicolas Dunand
    Mon, 26 Sept 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.
  • 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.
  • 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
  • Nicolas Dunand
    Mon, 19 Mar 2018, 3:08 PM
    Hi Ricardo,

    I didn't test extensively, but this should work on 3.4.
  • 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
  • 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
  • Veronica E. Arriola-Rios
    Fri, 5 June 2020, 9:42 AM
    Thanks a lot for the plugin! I can't live without it. However, there are a few things I find really necessary:
    1) Allow for a constraint of the type x != val.
    2) Give optional feedback for erroneous answers. For example: the constraint says: x=8; but the student answers x=9, and I know the typical mistake why somebody would say 9; I would like to say something specific when that answer is given.
    3) I support Andrew's point 4), it is quite cumbersome to use a range.
    4) I would like to give Ok|Error as specific feedback, but print the exact answers when right answer is ticked. Currently when the constraint is of the type '=' the right answer appears even when I set 'calculations only'... that gives the answers away sad.
    Please let me know if I can help in the process.

    Kind regards.
  • Nicolas Dunand
    Fri, 19 June 2020, 7:31 PM
    Hello Veronica,

    Thanks for your feedback. The best would be this to all be reported in the same place, which is GitHub (see link "Bug tracker" at the top of this page). I have just created a few entries related to Andrew's suggestions. Feel free to add in on those, or to create new issues yourself for the points you mention.

    This helps to document the process, but there is no guarantee I will have time to work on this in the near future, so if you have the ability or know someone willing to code this (most should be quite simple but time consuming to fully test etc.), I'd be happy to review any submitted code changes and integrate them in the plugin.

    Kind regards,
    Nicolas
  • Jonathan Ruisánchez
    Tue, 19 Jan 2021, 6:14 AM
    hi, is this for moodle versión 3.10? thanks
  • Nicolas Dunand
    Tue, 19 Jan 2021, 2:45 PM
    Hello Jonathan,
    Yes, initial testing just showed that this works on Moodle 3.10.
  • Irena Sedlackova
    Tue, 19 Mar 2024, 10:16 PM
    Hello Nicolas,
    I need this type of question, where to write the value of the calculated X, Y, Z coordinates. The correct answer is if all three values are correct. Can I use Multinumerical question type for this purpose? The question does not contain any restrictions. The answer is the exact X,Y,Z values.
    The task is simple:
    Write down the calculated value of the centre of gravity:
    X:
    Y:
    Z:

    Answer:
    X = 3,2
    Y = 5,6
    Z = -10,5

    Thank you for your answer or advice on what type of question I should use. We also tried cloze but it evaluates each item separately. And that is not correct. If any of the values are entered wrong, then the whole answer is wrong.

    Thank you in advance.

  • Nicolas Dunand
    Wed, 20 Mar 2024, 12:49 AM
    Hello Irena,
    Yes, this absolutely works with multinumerical. The main idea is to have constraints such as "X = 2*Y" or "X > 10" but you can use absolute values.
    Here's what I did:

    In the "Parameters" part of the question creation I entered "X, Y, Z" – these are the variables we want the student to answer.
    In the Constraints part, I intered (1 per line) :
    X = 3.2
    Y = 5.6
    Z = -10.5
    (I used the decimal point as separator, but you'll have to check if the comme also works, depending on your Moodle's language settings...)
    Make sure you also chose Grade calculation = All or nothing (as not to give partial credit but partially correct responses, e.g. if X and Y are correct but not Z).
    That's it!
  • Irena Sedlackova
    Thu, 21 Mar 2024, 8:12 PM
    Hello Nicolas, thank you for your quick reply.
    I followed your instructions and input the example, but it's not working correctly. It always evaluates it as wrong, whether I use a dot or a comma as a decimal separator. Could you please advise me? Also, I have another question: Is it possible to set some tolerance for this type of questions? Thank you for your response.
  • Nicolas Dunand
    Thu, 21 Mar 2024, 9:48 PM
    Hello Irena,
    This might be dependent on the language setting of the user. Try as a first test to change the user interface language to English and see if it succeeds. To set a tolerance use intervals, e.g. if you allow 3.2 to be between 3.15 and 3.25 you can use the notation Z = [3.15;3.25] (X is between 3.15 and 3.25, included).
1 2 3
Please login to post comments