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

Cloze multianswer question leaks percentage if with decimal

    XMLWordPrintable

Details

    • MOODLE_38_STABLE, MOODLE_39_STABLE
    • MOODLE_310_STABLE, MOODLE_39_STABLE
    • Hide
      1. Create a cloze question containing the subquestion: 

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

      2. Preview it.
      3. Check only "C" is displayed (instead of "%33.33333%C").
      4. Select option C, and verify you are graded with 1/3 of the marks (instead of 0).

       
       

      Show
      Create a cloze question containing the subquestion:  { 5 :MULTIRESPONSE_H:~% 100 %A~% 50 %B~% 33.33333 %C} Preview it. Check only "C" is displayed (instead of "%33.33333%C"). Select option C, and verify you are graded with 1/3 of the marks (instead of 0).    

    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

            timhunt Tim Hunt
            wolfstettler Wolf Stettler
            Luca Bösch Luca Bösch
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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

                Clockify

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.