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

Option to display answers in a predetermined order

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.7, 2.2.4, 2.3.1, 2.8.7, 2.9.1
    • Fix Version/s: STABLE backlog
    • Component/s: Lesson
    • Labels:
    • Testing Instructions:
      Hide

      Create a lesson checking the "Shuffle within questions" checkbox
      Add 2 question pages of each of the following types

      • multichoice
      • true/false
      • matching

      For each type check the "Shuffle answers" checkbox for the first question and don't check it for the second
      Attempt the lesson several times as a student and verify that only the first question of each type has it's answers randomly shuffled at each attempt
      As a teacher edit the lesson settings and uncheck "Shuffle within questions"
      Attempt the lesson several times as a student and verify that now no question answers are randomly shuffled
      Backup and restore the lesson and verify that both lesson's "Shuffle within questions" and pages "Shuffle answers" settings are correct
      Restore an old backup with a lesson and verify that both lesson's "Shuffle within questions" and pages "Shuffle answers" settings default as checked
      Import some questions from the files attached to this issue and verify that the "Shuffle answers" value is correctly imported

      Show
      Create a lesson checking the "Shuffle within questions" checkbox Add 2 question pages of each of the following types multichoice true/false matching For each type check the "Shuffle answers" checkbox for the first question and don't check it for the second Attempt the lesson several times as a student and verify that only the first question of each type has it's answers randomly shuffled at each attempt As a teacher edit the lesson settings and uncheck "Shuffle within questions" Attempt the lesson several times as a student and verify that now no question answers are randomly shuffled Backup and restore the lesson and verify that both lesson's "Shuffle within questions" and pages "Shuffle answers" settings are correct Restore an old backup with a lesson and verify that both lesson's "Shuffle within questions" and pages "Shuffle answers" settings default as checked Import some questions from the files attached to this issue and verify that the "Shuffle answers" value is correctly imported
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
    • Pull Master Branch:

      Description

      There are various circumstances under which it is helpful to be able to determine the order of multichoice and true/false answers in a Lesson. Some of these have been addressed in the discussion connected with MDL-18070.

      • scalar answers (e.g.: "not at all", "somewhat", "completely")
      • answers that generally occur in a canonical order (e.g.: "True" and "False")
      • answers that must correspond to an accompanying audio (e.g.: in a listening comprehension test)

      Steps to reproduce the problem:

      1. Create a lesson
      2. Add a multichoice or true/false question
      3. Preview the lesson
      4. Answers will be shuffled

      Lesson authors should have the opportunity to determine the order of answers.

      One complication is that the form to create the questions expects the author to list the correct answer first. That expectation will not hold if the author wishes to provide the answers in a determined order.

      I have versions of a modification for 2.4, 2.3, 2.2, 2.1 (and 2.0) on github:

      https://github.com/kwiliarty/moodle/tree/wip-MDL-18070-master
      https://github.com/kwiliarty/moodle/tree/wip-MDL-18070-MOODLE_23_STABLE
      https://github.com/kwiliarty/moodle/tree/wip-MDL-18070-MOODLE_22_STABLE
      https://github.com/kwiliarty/moodle/tree/wip-MDL-18070-MOODLE_21_STABLE
      https://github.com/kwiliarty/moodle/tree/wip-MDL-18070-MOODLE_20_STABLE

      This patch adds a "shuffle answers" checkbox to the settings form for a Lesson. The default is to shuffle answers. The setting applies to the entire lesson; there is no per-question option. When authoring an unshuffled lesson no scoring and page jump assumptions apply. Authors will need to set these appropriately for each answer.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                29 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated: