Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-67409

Cloze question type numerical: Values ending on dot zero are not evaluated exactly

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 3.7.3
    • Fix Version/s: None
    • Component/s: Questions, Quiz
    • Labels:
      None
    • Affected Branches:
      MOODLE_37_STABLE

      Description

      Hi there,

      a teacher of our's came up with this. He uses the question type cloze with the numerical option for his chemical course. He said that the correct answer will not be checked for all digits behind the separator if these digits are a zero.

      Example:

      {1:NUMERICAL:=74.0#This is correct} w% carbon
      

      This will give out the string that 74 would be the correct answer and would also accept 74 without the decimal digit:

      As the check for the exact value is important here, 74 should not be accepted as the correct answer and the feedback should also show the exact value ("The correct answer is: 74.0". ). With all other values that do not end on exactly zero, there's no problem. It's only that dot zero is cut off.

      So either this could be fixed in general or a new option "Evaluate the exact value" could be introduced. If you set this to yes, then only the answer with 74.0 would be evaluated as correct otherwise both, 74.0 and 74, would be correct.

      Best, Kathrin

        Attachments

          Activity

            People

            Assignee:
            timhunt Tim Hunt
            Reporter:
            kosswa Kathrin Osswald
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: