Change default for "penalty for each incorrect try" setting

Change default for "penalty for each incorrect try" setting

by Melissa Benson -
Number of replies: 6

Am I able to change the default for the "penalty for each incorrect try"? It's set to 33.3 percent but I want to change it to 0%.

Attachment 82814_35642_0.png
Average of ratings: -
In reply to Melissa Benson

Re: Change default for "penalty for each incorrect try" setting

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Why not?

PLease note that if you set the penalty to 0 (zero), then the Adaptive mode is equivalent to the Adaptative mode (no penalties) for that question.

Joseph

In reply to Joseph Rézeau

Re: Change default for "penalty for each incorrect try" setting

by Melissa Benson -

I can't find where the default setting is in the admin setting! :/

In reply to Melissa Benson

Re: Change default for "penalty for each incorrect try" setting

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

As Joseph says, why would you want to use this? Which question behaviour(s) are you using?

At the moment the only way to change this default is in code. Providing an admin UI for this would be covered by MDL-36308, but I don't think anyone has any plans to work on that.

In reply to Tim Hunt

Re: Change default for "penalty for each incorrect try" setting

by Melissa Benson -

Not quite sure. Apparently one of my teachers always changes it to 0. I'm not usually making quizzes so I took his word for it...I'll see what he's trying to accomplish.


Well, it looks like they use this for questions to allow for multiple tries..

In reply to Melissa Benson

Re: Change default for "penalty for each incorrect try" setting

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I would be very interested to know how they are using 'Interactive with multiple tries' with zero penalty, if that is indeed what they are doing, and how students respond to that.

This is the line of code you would need to change in order to change the default: https://github.com/moodle/moodle/blob/1446e02f69a76a4ec6128fc15e1bf7dc95a8f2f5/question/type/edit_question_form.php#L429

In the mean time, you can got for the tracker issue I mentioned.


Average of ratings: Useful (1)
In reply to Tim Hunt

Re: Change default for "penalty for each incorrect try" setting

by Samuel Witzig -

@ Melissa:

We had the same issue at our university: Our lecturers usually take the 0.0 Penalty (the 33.3% is hardly ever used). We therefore changed one row in the code in <<Path to Moodle>>/question/type/edit_question_form.php (see also Tim's changes in Git)


from

$mform->setDefault('penalty', 0.3333333);


to

$mform->setDefault('penalty', 0.0)

@ Tim:

> I would be very interested to know how they are using 'Interactive with multiple tries' with zero penalty, if that is indeed what they are doing, and how students respond to that.

Most quizzes at our university are used the way I described: When students need to train in quizzes, our lecturers usually don't want to give them penalties when students can do multiple tries.


Average of ratings: Useful (1)