SHORTANSWER items in a cloze-type question in a quiz - Case intensiv
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
Re: SHORTANSWER items in a cloze-type question in a quiz - Case intensiv
what about setting in /questiontypes/multianswer/questiontypie.php
in line 482
from: $wrapped->usecase = 0;
to: $wrapped->usecase = 1;
????????
Would it work or destroy?
Re: SHORTANSWER items in a cloze-type question in a quiz - Case intensiv
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