SHORTANSWER items in a cloze-type question in a quiz - Case intensiv

SHORTANSWER items in a cloze-type question in a quiz - Case intensiv

by Stefan Eberhard -
Number of replies: 2
Hi

Is there or will there be any easy possibility to make SHORTANSWER items in a cloze-type question in a quiz case intensiv.

I know Josephs workaround with the database, but for some languages it is very important to have an easy way.

Perhaps a modified php, which generally sets usecas to 1 in  mdl_quiz_shortanswer

Stefan

Average of ratings: -
In reply to Stefan Eberhard

Re: SHORTANSWER items in a cloze-type question in a quiz - Case intensiv

by Stefan Eberhard -

what about setting in /questiontypes/multianswer/questiontypie.php

in line 482

from:             $wrapped->usecase = 0;

to:   $wrapped->usecase = 1;

????????

Would it work or destroy?

In reply to Stefan Eberhard

Re: SHORTANSWER items in a cloze-type question in a quiz - Case intensiv

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

Yes, Stefan,

If you are ready to hack your Moodle installation, what you suggest would work very well and would not destroy anything.

With $wrapped->usecase = 1; the following Cloze question, SHORTANSWER sub-question:

Capital of France, please? {:SHORTANSWER:paris#capital letter missing~=Paris#Correct}

would give the result shown on screen shot below.

Another possibility is to install my new regexp question type, available for Moodle 1.6 in the Moodle modules and plugins. You would use the "normal" SHORTANSWER question type for "case insensitive" and the REGEXP question type which by default is "case sensitive". Plus, of course, all the other benefits of powerful regexp analysis.

Joseph

Attachment image1.jpg