In ordering question type- need to heighlight the wrong answers

In ordering question type- need to heighlight the wrong answers

Sudhir Singhal發表於
Number of replies: 9
In ordering question type, when I select grading method as 'Absolute position', the wrong and right options are highlighted through colours as shown below:

Here partial marks are given, and I wanted to give marks if all of them are in the correct sequence.

So I selected the grading type as 'all or nothing'.
Here in the answers at right and wrong positions are not coloured as above, just the correct sequence is given in the explanation:


So, can anyone suggests, if through some CSS code or through some settings can I highlight the right and incorrect answer positions using green and red colour as in the previous report?

評比平均分數: -
In reply to Sudhir Singhal

Re: In ordering question type- need to heighlight the wrong answers

Brett Dalton發表於
Moodle HQ的相片 Particularly helpful Moodlers的相片
I guess the problem here is its the order not the absolute position that needs to be assessed which is difficult to make sense of.  ie.  you could have  E,F,A,B,C,D  There are 2 substrings here which are "correct" within themselves (E,F) and (A,B,C,D) but the over all order is incorrect.  how would you show this with ticks and crosses?  Do you only show those which are correct from the begining of the sequence?  or are they all incorrect?  how do you make this make sense to a student?

If you only do this on absolute position you could have A,B,E,C,D,F  In this case  A,B and F would be ticketed which gives the impression the relative order of C and D is incorrect which isn't the case.
In reply to Sudhir Singhal

Re: In ordering question type- need to heighlight the wrong answers

Chris Nelson發表於
Particularly helpful Moodlers的相片 Plugin developers的相片
I don't think "All or nothing" ("You either get everything 100% correct or you score 0%") surfaces the item's correctness for you to simply add some CSS in.

So you'd possibly need to create a new grading behaviour that did both - "All or nothing showing correctness" (or similar wording). If that's feasible for you, the GitHub's here.

However, Ordering has a huge variety of grading behaviours - is it possible that one of those is good enough for your needs (e.g. "Relative to both the previous and next items")?
評比平均分數:Useful (1)
In reply to Chris Nelson

Re: In ordering question type- need to heighlight the wrong answers

Gordon Bateson發表於
Core developers的相片 Peer reviewers的相片 Plugin developers的相片
The "All or nothing" grading doesn't fit the idea of each item contributing to the final grade for the question. It is therefore not suitable for showing the "correctness" of each item.

In your situation, I suggest you show the correct order in the question feedback for incorrect answers, or just rely on the software showing the correct answer without any colors.
As Chris suggests, if you want "All or nothing showing correctness", that would require adding a new grading type for this plugin.
評比平均分數:Useful (2)
In reply to Sudhir Singhal

Re: In ordering question type- need to heighlight the wrong answers

Dominique Bauer發表於
Documentation writers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Hello Sudhir,

You can use a small script to show the correct/incorrect icon and color feedback, directly on the items. You will find this script in the attached XML file of the following question. Just place it in one of your questions or in a Text block of your quiz.

MoodleForum_20230929_0300.png

Dynamic Courseware / THIRD-PARTY qtypes and plugins / Ordering / All or nothing with item feedback➚

評比平均分數:Useful (3)
In reply to Dominique Bauer

Re: In ordering question type- need to heighlight the wrong answers

Chris Nelson發表於
Particularly helpful Moodlers的相片 Plugin developers的相片
Thanks Dominique,

I feel obliged to more ask if more people would find this behaviour useful, and if so, can anyone develop this into a 'proper' question/quiz behaviour?
評比平均分數:Useful (1)
In reply to Chris Nelson

Re: In ordering question type- need to heighlight the wrong answers

Dominique Bauer發表於
Documentation writers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Chris,

The OP's request is justified and I completely support it.

Rather than discussing whether this behaviour is helpful or not, let teachers decide based on their particular needs.

Indeed, it is simply a matter of respecting the 'Whether correct' display rule of the 'Review options' of the quiz settings.

Generally, according to this rule, if teachers wish not to display feedback on question items (coloured highlighting, green checkmark or red cross), all they would have to do is uncheck 'Whether correct' under 'Review options'. On the contrary, if they want the feedback to be displayed on the items, they would just have to check 'Whether correct'. This is the standard behaviour used for most Moodle question types.

The developer initially assigned an "unscored" class to all checked items rather than the usual "correct" or "incorrect" classes, thus overriding the diversity of teachers' needs.

To get a 'proper' question/quiz behaviour, there is no need for a new grading type. Someone will simply have to slightly modify the existing 'All or nothing' grading type so that it complies with the usual rules of the "Review options" quiz setting.

In the meantime, I've provided a workaround that meets the needs of the OP and perhaps several other teachers.

In reply to Dominique Bauer

Re: In ordering question type- need to heighlight the wrong answers

Dominique Bauer發表於
Documentation writers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

It's like a rite of passage for developers! Over time, as they gain more experience in their craft, they start to see the light when it comes to user preferences. It's almost like a magical moment when they realize that imposing their own ideas, no matter how brilliant they might seem in their head, isn't always the best course of action.

Instead, it's all about finding that sweet spot between what they envision and what the users actually want and need. It's like cooking a perfect meal—you can't just throw in all your favorite ingredients and hope it turns out well; you have to consider the tastes and preferences of the people who'll be eating it.

This shift in perspective often comes with a healthy dose of humility. Developers begin to appreciate that users are the heart and soul of the software they build. Users are the ones who will ultimately determine its success, and it's the developers' job to make their lives easier, more enjoyable, or more productive.

So, experienced developers learn to listen, to empathize, and to collaborate closely with users. They start to ask questions like, "What problem are we trying to solve for them?" and "How can we make their experience better?" It's not about imposing their will; it's about finding the best solutions together.

And, you know what's great about this realization? It often leads to more innovative and user-friendly software because developers are not stuck in their own echo chamber. So, here's to the journey of growth and learning, and to building software that truly makes a positive impact on people's lives! 🚀✨

評比平均分數:Useful (3)
In reply to Dominique Bauer

Re: In ordering question type- need to heighlight the wrong answers

Sudhir Singhal發表於
Thanks, Dominique!
You always provide me with the needed solutions with your expertise.
I got a lot of ideas and inspiration from your creative work given on our website: dynamiccourseware.org
In reply to Sudhir Singhal

Re: In ordering question type- need to heighlight the wrong answers

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

I tend to agree with Brett, Chris and Gordon---and disagree with the OP's wanting to display correct/incorrect answers when the grading type is set to 'all or nothing'.

The logic behind an 'all or nothing' grading type is precisely that the whole of the answer is to be displayed as correct or incorrect. If the feedback were to show individual correctness/incorrectness, then it would go against the 'all or nothing' logic.

I'm amazed at the list of grading options for this question type:

All or nothing
Absolute position
Relative to correct position
Relative to the next item (excluding last)
Relative to the next item (including last)
Relative to both the previous and next items
Relative to ALL the previous and next items
Longest ordered subset
Longest contiguous subset

It seems to me that some of those options defy logic and I'd be curious to know if they are actually used in real-world situations. By real-world I mean not ordering a set of A to F letters, but items such as dates, phrases, procedures, etc. Any examples welcome!

評比平均分數:Useful (1)