Moodle

Match question can fake a student's answer under some circumstances

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Affects Version/s: 1.9.4
  • Fix Version/s: None
  • Component/s: Questions
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE

Description

We get a wrong matching question (yes, sometimes it happens), so that correct answer is listed as an additional wrong answer, and incorrect listed as correct. Student make a correct answer and appeal.

I edit the question, typing a correct one in correct place and incorrect in the previous place of a correct answer. But Moodle still report student wrong - it store student's answer by id and now think it is an incorrect one (I've opened question editing in a new window, so I can compare two versions of attempt - students answer on the was different!). Regrading doesn't help

This inconsistency should be dealt with somehow, thought it may not be that easy.

Issue Links

Activity

Hide
Tim Hunt added a comment -

Isn't this a duplicate of MDL-5560. There is no easy fix. You would have to change how matching questions are stored in the database.

Show
Tim Hunt added a comment - Isn't this a duplicate of MDL-5560. There is no easy fix. You would have to change how matching questions are stored in the database.
Hide
Oleg Sychev added a comment -

Yes, to really fix this you need to store asnwers as a strings instead of id. But there can be workaround.

When saving edited question save_question_options could notice that text of the answer is changed. If it can find another answer with such text, it can replace id's in actual attempts. It is debatable what should be done if the answer is absent, since teacher may just correct typo in answer, or he can completely change the meaning of the answer.

Show
Oleg Sychev added a comment - Yes, to really fix this you need to store asnwers as a strings instead of id. But there can be workaround. When saving edited question save_question_options could notice that text of the answer is changed. If it can find another answer with such text, it can replace id's in actual attempts. It is debatable what should be done if the answer is absent, since teacher may just correct typo in answer, or he can completely change the meaning of the answer.
Hide
Tim Hunt added a comment -

Closing as duplicate, as per the previous comments.

Show
Tim Hunt added a comment - Closing as duplicate, as per the previous comments.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: