Background color in Cloze question type

Background color in Cloze question type

Justin Hunt發表於
Number of replies: 12
Particularly helpful Moodlers的相片 Plugin developers的相片

I know this was discussed last year in this thread,

https://moodle.org/mod/forum/discuss.php?d=198094

but the discussion ended inconclusively. When using the Cloze question type in adaptive mode or interactive mode with multiple tries, the behaviour in the current quiz engine (Moodle 2.2/2.3/2.4 ..) is a little different.

In previous versions the background color of fields with incorrect answers were colored red, and correct answers were colored green. This was great for my lower level students. Now however you need to mouse over the field to see "0 from 1" for incorrect and "1 from 1" for correct.  In the old days my students would battle to get a whole page of green fields and feel quite satisfied. But now the process is not quite as satsifying or clear. And I wonder how effective it is on iPads etc without mouseovers (sorry I have not tried this.)

Is there any good reason we could not bring back the color coding to the Cloze question, or failing that to the new Gapfill question?

評比平均分數: -
In reply to Justin Hunt

Re: Background color in Cloze question type

Emma Richardson發表於
Documentation writers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Jean Michel did some great work with cloze question including, I believe, the options to remove wrong answers which I think will give us the action you are looking for but it is slated for 2.5.  I, for one, am anxiously awaiting the release!!

In reply to Emma Richardson

Re: Background color in Cloze question type

Jean-Michel Védrine發表於

Yes Emma, this is in Moodle 2.5 微笑 and also the better grading when student get Cloze question partially right in interactive behaviour.

just a note that remove wrong answers is only available in interactive behaviour too but that is the same for all question types that support this feature.

For people interested, here are the relevant tracker issues:

MDL-28183 Add num parts correct and clear wrong options to multianswer (cloze)

MDL-36955 Better grading for partially correct Cloze questions with Interactive behaviour

IMHO all these improvements don't avoid the need for a visual clue of what is right and what is wrong.

Update: I just looked in the tracker and in fact MDL-28183 is already available since Moodle 2.4.1 so no need to wait for Moodle 2.5 for this one ! Only MDL-36955 will be new in Moodle 2.5

In reply to Jean-Michel Védrine

Re: Background color in Cloze question type

Emma Richardson發表於
Documentation writers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

I really appreciate all the work you did on this!  I have been using a Tim Hunt hack to make the grading work correctly until this comes out.  I am presuming that my copying on an older question.php page is stopping the clear wrong options from working..I will continue to wait!

In reply to Justin Hunt

Re: Background color in Cloze question type

Joshua Bragg發表於

Agreed!  I use Adaptive mode (no penalties) extensively as a "Homework Check" system to give them as many attempts at a question as they can stand.  I have many questions that would be a complete pain to everyone involved to do anything other than a Cloze question.  I get questions on a regular basis where a student can't figure out what they're getting wrong on a Cloze question.

In reply to Justin Hunt

Re: Background color in Cloze question type

Tim Hunt發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片

The bit of code that controls this is the adjust_display_options method in the behaviour class question/behaviour/adaptive/behaviour.php.

    public function adjust_display_options(question_display_options $options) {
        parent::adjust_display_options($options);
        if (!$this->qa->get_state()->is_finished() &&
                $this->qa->get_last_behaviour_var('_try')) {
            $options->feedback = true;
        }
    }

I am not going to attempt to fully explain how that fits into the big picture of how questions work right now. (Exercise for the reader, as they say.) Basically, before we display a question, we give the system a chance to modify what is displayed, so that, for example, we don't display any feedback until after they have submitted a response.

You could experiment with this alternative implementation:

    public function adjust_display_options(question_display_options $options) {
        // Save some bits so we can put them back later.
        $save = clone($options);

        // Do the default thing.
        parent::adjust_display_options($options);

        // Then, if they have just Checked an answer, show them the applicable bits of feedback.
        if (!$this->qa->get_state()->is_finished() &&
                $this->qa->get_last_behaviour_var('_try')) {
            $options->feedback        = $save->feedback;
            $options->correctness     = $save->correctness;
            $options->numpartscorrect = $save->numpartscorrect;
            
        }
    }

I people who use adaptive a lot need to comment on whether that is really better.

In reply to Tim Hunt

Re: Background color in Cloze question type

Joshua Bragg發表於

Tim,

YES!  I finally got a chance to try this out.  A sample of what it looks like is below.  This is exactly what I was looking for.  I use Adaptive(no penalties) all the time so students can check their answers to their homework on their own time.  This would be much more helpful to them.

If this and MDL-37784 (also visible below) got fixed that would make my students and I happy campers.  Sadly, I know only enough of git to do set it up and type git pull.  One of my many projects for the summer...  Then I could fix it locally myself without jumping through too many hoops.

In reply to Joshua Bragg

Re: Background color in Cloze question type

Joseph Rézeau發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片 Translators的相片

Joshua "If this and MDL-37784 (also visible below) got fixed that would make my students and I happy campers."

Have you voted for MDL-37784? Have you tried the very easy fix I provided in my patch there?

Joseph

In reply to Joseph Rézeau

Re: Background color in Cloze question type

Joshua Bragg發表於
Since I reported it, I can't vote for it. ;) I haven't tried it yet. I'll try to soon.
In reply to Joshua Bragg

Re: Background color in Cloze question type

Justin Hunt發表於
Particularly helpful Moodlers的相片 Plugin developers的相片

Thats a YES for me too.  It is a small thing, but it really changes the mood of the activity.

Thanks so much.

附件 adapativeYes.PNG
In reply to Tim Hunt

Re: Background color in Cloze question type

Joseph Rézeau發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片 Translators的相片

Hi Tim,

Just to confirm that your "alternative implementation" works fine (tested on moodle 2.4). I suggest that it should be implemented in forthcoming Moodle 2.5 (and, possibly, in earlier versions, at least 2.4).

Thanks,

Joseph

EDIT.- And for the record, this is MDL-29758 "make Cloze question feedback display more informative...". Please vote for it!

In reply to Joseph Rézeau

Re: Background color in Cloze question type

Didier Jodin發表於

Tested in current 2.5 beta version : it works fine as well.

Great improvement, thanks !
Sometimes, getting back (M 1.9) to the future (M 2.6) is a good way to go !