Messages écrits par Joseph Rézeau

Avatar Core developers Avatar Plugin developers Avatar Testers Avatar Translators

Hello,

In the course of making my regexp question type more use-friendly to the authoring teacher, I want to display all the alternative answers generated by a regexp expression - in the preview question pop-up window.

However, the question preview module and the quiz preview module share the same routine to print out the question(s), and I do not want those alternative answers to get displayed in quiz preview mode.

In my \question\questiontype\...\questiontype.php file I need a way to detect whether we are in "single question preview" or in "quiz preview" mode. So far I have used the following method.

In single question preview pop-up window, $state->attempt is always equal to zero, while it seems to be always greater than zero in the "quiz preview" window.

Can someone (Tim?) confirm that this is a reliable way to test my environment, or suggest a more reliable method?

Thanks,

Joseph

Moyenne des évaluations  -
Avatar Core developers Avatar Plugin developers Avatar Testers Avatar Translators

Hi James,

When you say "when I specify a larger font - even as low as 12 point, the spacing (leading) is too small, making my text crunch down on itself..." where exactly do you do this? in the HTML WISIWYG editor? in one of your actual theme's CSS files?

Joseph

Avatar Développeurs Avatar Développeurs de plugins Avatar Testeurs Avatar Traducteurs
Benoit > Ma question est donc la suivante : pensez vous que moodle soit utilisable à l'étape actuelle sans interactivité entre les apprenants avec pour seules fonctions l'accès individuel à des ressources de formation et un contact individuel avec le tuteur ?

Oh oui c'est possible. C'est même l'utilisation la plus courante dans une institution que je connais bien et dont je tairai le nom...wink

Il suffit de concevoir les cours uniquement comme des "dépotoirs" de ressources type PDF ou DOC, de n'ouvrir aucun forum de discussion, aucun exercice interactif, et le tour est joué.dead

Joseph

Avatar Core developers Avatar Plugin developers Avatar Testers Avatar Translators
Hi Gisela, have you tried the following:
Choice 1: blue
Grade: 33.33%
Feedback: correct

Choice 2: dark
Grade: -50%
Feedback: wrong

Choice 3: red
Grade: 33.33%
Feedback: correct

Choice 4: yellow
Grade: 33.33%
Feedback: correct

Choice 5: light
Grade: -50%
Feedback: wrong

The grade for each correct answer should be 33.33% so that a student gets the maximum score 100% when selection all 3 correct answers and none of the incorrect ones.
Then you can set the negative grade for the wrong answers according to taste: set it at -100% each if you think that selecting at least one incorrect answer is a serious mistake, or -50% each if you think that it needs selecting 2 incorrect answers to over-ride selection of all 3 correct answers.
Best way in fact is to try out a series of combinations to see what happens. But I insist that since you have 3 correct answers they must be graded 33.33% each.
Joseph