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

Cloze multianswer question leaks percentage if with decimal

    XMLWordPrintable

    Details

      Description

      When the grade in a cloze multianswer questions contains a percentage value with decimal places, the percentage value is leaked to the question.

      {5:MULTIRESPONSE_H:~%100%A~%50%B~%33.33333%C}

      In this example the third answer reads

      %33.33333%C

      ,which is unfortunate as it can give the right or wrong answer away to the student.
      Removing the decimal places solves the problem, but then giving 1/3 of the points for an answer is not possible.
      The above example was created with the Cloze editor that gives you 33.33333% as a selectable option.

      To reproduce, create a cloze question, in the Atto editor use the cloze editor. Select MULTIRESPONSE_H, fill in answer and feedback and select a grade with decimal places. Insert and save changes. Then go to preview.

        Attachments

          Activity

            People

            Assignee:
            timhunt Tim Hunt
            Reporter:
            wolfstettler Wolf Stettler
            Peer reviewer:
            Luca Bösch Luca Bösch
            Integrator:
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Tester:
            Janelle Barcega Janelle Barcega
            Participants:
            Component watchers:
            Tim Hunt, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              8/Mar/21

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h