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

Teachers can require students to complete Question 1 before they can see Question 2

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.5.1, 2.8
    • Fix Version/s: 2.9
    • Component/s: Quiz
    • Testing Instructions:
      Hide

      I am pretty happy with how thorough the behat tests mod/quiz/tests/behat/editing_require_previous.feature and mod/quiz/tests/behat/attempt_require_previous.feature are for this.

      However, for a new feature like this, it would be good to have some human eyeballs on it too.

      Rather than give detailed steps (if you want those, read the Behat tests) and let you do some exploratory testing:

      • If the quiz allows it (How questions behave: Interactive, or Immediate)
      • Then, on the Edit quiz page, there are some lock icons that let you say the student can only see question N once question N - 1 has been answered.
      • But, only if Questoin N - 1 makes that sensible (e.g. you can't depend on an Essay or Description).
      • When doing this, we don't try to analyse random questions. You can always depend on a random question, but it that becomes an Essay in a particular attempt, the dependency has no effect.
      • The whole point of this is that when a student attempts the quiz (or a teacher previews) you cannot see Question N until you have finished Question N - 1 (Checked it until there are no more tries.)
      • Once the whole quiz is submitted, then on the review page, all questions are visible, even if you could not see them during the attempt.

      The point of this feature is so you can have quizzes like:
      Q1: In Moodle, where do you go to add users to your course?
      A1: Course administration -> Users -> Enrolled users
      Q2: On the Enrolled users screen, how do you add another user?

      Show
      I am pretty happy with how thorough the behat tests mod/quiz/tests/behat/editing_require_previous.feature and mod/quiz/tests/behat/attempt_require_previous.feature are for this. However, for a new feature like this, it would be good to have some human eyeballs on it too. Rather than give detailed steps (if you want those, read the Behat tests) and let you do some exploratory testing: If the quiz allows it (How questions behave: Interactive, or Immediate) Then, on the Edit quiz page, there are some lock icons that let you say the student can only see question N once question N - 1 has been answered. But, only if Questoin N - 1 makes that sensible (e.g. you can't depend on an Essay or Description). When doing this, we don't try to analyse random questions. You can always depend on a random question, but it that becomes an Essay in a particular attempt, the dependency has no effect. The whole point of this is that when a student attempts the quiz (or a teacher previews) you cannot see Question N until you have finished Question N - 1 (Checked it until there are no more tries.) Once the whole quiz is submitted, then on the review page, all questions are visible, even if you could not see them during the attempt. The point of this feature is so you can have quizzes like: Q1: In Moodle, where do you go to add users to your course? A1: Course administration -> Users -> Enrolled users Q2: On the Enrolled users screen, how do you add another user?
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      In a quiz, allow teachers to require question N has been answered before question N + 1 can be seen

      Sometimes you have a sequence of of questions that build on each other, and the text of question 2 inevitably gives away the answer to question 1. A not very good example might be:

      Q1: Which tool in Moodle can you use to automatically grade your students?
      Q2: How do you add a quiz to Moodle?

      So, if the quiz is set to a behaviour where the students can finish one question during an attempt (e.g. immediate feedback, interactive, ...), then there should be a way for teachers to indicat that Q2 depends on Q1.

      In this case, until Q1 is finished, Q2 will not be accessible:

      • It will not be a link in the navigation, and will be shown 'greyed out' in some way.
      • If Q2 is on a page on its own, then it will not be possible to navigate to page 2.
      • If Q2 is on a page with other questions that can be accessed, then instead of rendering Q2, we will show a grey box saying "This question will not be avialable until Question 1 has been answered."
      • We will need a special string to describe this state on the summary page.

      I am not sure how we will implement this in the back end. We will probably do something general like QX depends on QY. However, in the UI, we will only provide a way to make QN depend on Q

      {N - 1}

      .

        Attachments

        1. attempt.png
          34 kB
          Tim Hunt
        2. editing.png
          22 kB
          Tim Hunt

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/May/15