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

Add "total number of penalties so far" info to question Adaptive behaviour.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.3, 2.2, 2.3
    • Fix Version/s: 2.1.4, 2.2.1
    • Component/s: Questions, Quiz
    • Labels:
    • Testing Instructions:
      Hide
      • Create a quiz with "How questions behave: Adaptive mode" (otherwise, with standard settings)
      • Add one question: "Short Answer" type, question text: "What is the great answer?", answer text: "42" (100%), Score for the question: 3
      • Log in as a student and attempt the quiz.
      • Enter the following answer in this sequence, click "Check" on the corresponding question after each entry.

      o What is the great answer? a
      Verify penalty message: "This submission attracted a penalty of 1.00"

      o What is the great answer? b
      Verify penalty message:
      in Moodle 2.1: "This submission attracted a penalty of 1.00."
      in Moodle 2.2 and Master: "This submission attracted a penalty of 1.00. Total penalty so far: 2.00"

      o What is the great answer? 42
      Verify that no penalty message is present.

      run unit tests at question/behaviour/adaptive and report any anomalies.

      Show
      Create a quiz with "How questions behave: Adaptive mode" (otherwise, with standard settings) Add one question: "Short Answer" type, question text: "What is the great answer?", answer text: "42" (100%), Score for the question: 3 Log in as a student and attempt the quiz. Enter the following answer in this sequence, click "Check" on the corresponding question after each entry. o What is the great answer? a Verify penalty message: "This submission attracted a penalty of 1.00" o What is the great answer? b Verify penalty message: in Moodle 2.1: "This submission attracted a penalty of 1.00." in Moodle 2.2 and Master: "This submission attracted a penalty of 1.00. Total penalty so far: 2.00" o What is the great answer? 42 Verify that no penalty message is present. run unit tests at question/behaviour/adaptive and report any anomalies.
    • Workaround:
      Hide

      Very easy: just add the following line to question/behaviour/adaptive/renderer.php, function feedback( )
      towards the end:
      $output .= "Total penalties so far: ".$gradedstep->get_behaviour_var('_try') * $qa->get_question()->penalty;
      return $output;

      Show
      Very easy: just add the following line to question/behaviour/adaptive/renderer.php, function feedback( ) towards the end: $output .= "Total penalties so far: ".$gradedstep->get_behaviour_var('_try') * $qa->get_question()->penalty; return $output;
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      In Adaptive mode (with penalty set), when student submits (Check button) successive incorrect answers, the "This submission attracted a penalty of..." message remains static on the screen. This may cause the student to believe that he is keeping that penalty for the whole of his successive tries. I suggest it would be much more informative to dynamically display the Total number of penalties incurred. That way, the student would understand better how many more tries he's got left before his final submission leaves him with a mark of zero.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Jan/12