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

Units in quiz answers not checked if numerical answer matches sample answer exactly

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 1.5.3
    • Quiz
    • None
    • All
    • MOODLE_15_STABLE

      The requirement to have units as part of an answer is a key part of engineering science. At present this option in moodle seems to address convertion from alternative unit systems into the one used by the teacher. If no units are entered then the answer is used as given and compared with the teachers calculation.

      What should happen is that an answer without a units component should be classified as incorrect. In a perfect world feedback should be separated between numerical inaccuracy and incorrect use of units.

      In the example below (Moodle XML format), where the answer is a vector (12.5 i m/s, you need a diagram which is not included to work it out), the complete answer is required for the solution to be correct. However if the student enters 12.5 then the marks are awarded as if the complete answer had been entered.

      • <!-- question: 11427

      -->

      • <question type=numerical>
      • <name>

      <text>Velocity of a Point (RFA1)</text>

      </name>

      • <questiontext format=moodle_auto_format>

      <text>Using the formula in block 5/2 on page 329, calculate the angular velocity of the point $$P$$ in the diagram below when $$\omega$$ is 25 radians per second. Remember to include both the direction (i for the x direction and j for the y direction) and the units in your answer. e.g. If the answer is 2 m/s in the y direction then your answer should have the form: 2 j m/s</text>

      </questiontext>

      <image></image>

      <penalty>0.1</penalty>

      <hidden>0</hidden>

      • <answer>

      12.5

      <tolerance>0.01</tolerance>

      • <feedback>

      <text>The answer should be $$\omega \times r$$</text>

      </feedback>

      <fraction>1</fraction>

      </answer>

      • <units>
      • <unit>

      <multiplier>1.00000000000000000000</multiplier>

      <unit_name>i m/s</unit_name>

      </unit>

      • <unit>

      <multiplier>1.00000000000000000000</multiplier>

      <unit_name>im/s</unit_name>

      </unit>

      • <unit>

      <multiplier>1000.00000000000000000000</multiplier>

      <unit_name>i mm/s</unit_name>

      </unit>

      • <unit>

      <multiplier>1000.00000000000000000000</multiplier>

      <unit_name>imm/s</unit_name>

      </unit>

      </units>

      </question>

            timhunt Tim Hunt
            imported Imported
            Nobody Nobody
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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