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

Indicate the question weighting when reviewing CBM attempts

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.8
    • Component/s: Quiz
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a multiple choice question in the question bank and preview it.
      2. At the bottom of the pop-up, set the preview options to
        • How questions behave: Deferred feedback with CBM
        • Marked out of: 2
        • Marks: Show mark and max.
      3. Click "Start again with these options".
      4. Verify that in the Grey info box, you see "Weight 2.00".
      5. Answer the question and click "Submit and finish". (e.g. select the right answer, and C=2.)
      6. Verify that in the Grey info box, you see "CBM mark: 4.00 Weight 2.00".
      Show
      Create a multiple choice question in the question bank and preview it. At the bottom of the pop-up, set the preview options to How questions behave: Deferred feedback with CBM Marked out of: 2 Marks: Show mark and max. Click "Start again with these options". Verify that in the Grey info box, you see "Weight 2.00". Answer the question and click "Submit and finish". (e.g. select the right answer, and C=2.) Verify that in the Grey info box, you see "CBM mark: 4.00 Weight 2.00".
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      Currently the 'max mark' or 'out of' mark for a Q is shown with CBM as the 'Base mark' when the Q is presented, but this isn't visible on review. The value (effectively the weighting assigned to a Q) needs to be shown both places, and a better description is I think 'Weighting', since 'out of' isn't appropriate with CBM marks that can be up to 3 times the value. I prefer to leave weights as the default (=1) when using CBM, but if people change them they should be shown both on presentation of the Q and on review.

      Solution (not affecting quizzes that don't use CBM):
      (1) in question/behaviour/deferredcbm/renderer.php
      function mark_out_of_max needs to be changed from:
          return get_string('cbmmark', 'qbehaviour_deferredcbm', $qa->format_mark($options->markdp));
      to:
          return get_string('cbmmark', 'qbehaviour_deferredcbm', $qa->format_mark($options->markdp)) . '<br>' . $this->marked_out_of_max($qa, $qoutput, $options);

      and (2) in question/behaviour/deferredcbm/lang/en/qbehaviour_deferredcbm.php
          $string['basemark'] = 'Base mark {$a}';
      changed to
          $string['basemark'] = 'Weighting = {$a}';

        Attachments

          Activity

            People

            Assignee:
            timhunt Tim Hunt
            Reporter:
            ucgbarg Tony Gardner-Medwin
            Peer reviewer:
            Eloy Lafuente (stronk7)
            Integrator:
            Dan Poltawski
            Tester:
            Marina Glancy
            Participants:
            Component watchers:
            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:
              Fix Release Date:
              10/Nov/14