I wrote a question, it's right answer can be written in a lot of ways, but all the right answer contains the same "needed_word": I would need a wildcard * so I could write the right answer in the following way: *needed_word*.
The excellence would be to have the chance to extabilish that the answer is right if it contains ALL the following words: "...", but I suppose this would request major changes into the script.
Moreover, a very frequent problem is the following: I would write a comment for every answer that is not matching with any of the ones I have foreseen.
Anybody can help me?
One thing I would find useful as well is to record what the students are actually typing in to short answer questions. This information could build up a "catalogue" of common wrong answers so they could be "trapped" and sent off to an appropriate page. Obviously that would a little time to collect.
http://media.humboldt.edu/~cded/
enables the teacher to set a 0 (0r -#) grade for an answer. The jump can then be sent anywhere in the lesson without affecting the grade, so one could make a catchall page and send all wrong answers there.
Of course the 'next page' link from the catchall page would be hard, I suppose one could make a branch table with the catchall message for a group of questions, give wrong answers a 0 score and send them there, and make similar pages for other groups of questions, so the jumps out of the catchall pages could go back into the question group or elsewhere.
Can you make the change to the eregi() function and remove the "== 0" bit as well and give it a quick test? If it looks reasonable it's probably best handled as an(other) option on short answer questions. Regualr expressions would only be called for occasionally. (And they have a steep learning curve with the level bit at the top always beyond me I'm afraid.)
* == 0 or more characters
It's in CVS, please see if functions as you expect it to, thanks.
Question: What the opposite to Short?
Answer 1: Long
Response 1:
Jump to: Next page
Answer 2: Tall
Response 2: Yes, I suppose so
Jump to: Next Page
Answer 3: *
Response 3: Don't be silly
Jump To: Same page
In fact having the answers in a different order (the wild card as Answer 2 and "Tall" as answer 3) appears to work OK too.
Hi Ray,
Just thought I'd catch your attention while you're here - I hope you don't mind that.
I'm not sure if you have noticed these threads recently regarding an issue with the dialogue module:
http://moodle.org/mod/forum/discuss.php?d=5826&parent=36142
http://moodle.org/mod/forum/discuss.php?d=8392
And in the bugtracker:
http://moodle.org/bugs/bug.php?op=show&bugid=1429&pos=2
If you were aware of them and just had other priorities then please forget about it, I am so grateful for your generous contributions to the moodle community and don't want to take up too much of your time.
However, if you have any feedback or even a bug fix for this issue it would be great! I may not use the dialogue module next semester because of this, preferring to rely on email to make sure I don't miss any communication from my students.
By the way, everything you have done here is first class, including the dialogue module!
Thanks in advance,
Tim.
Thanks.
Tried this out and it works!
Cheers
Ray L
Example:
Question: What is the best website?
1: *
don't be silly
2 moodle.*
you have good thought but the answer is not totally right
3
moodle.org
right
Inverting the order I get always: "don't be silly".
It would be more logical the inverse, but no problem: the important thing is that the order doesn't change in next versions. So if a changement is to be done, please , make it at once, otherwise let it work so for eternity...
Bye
Luciano
I've just submitted a new version of the lesson.php file into CVS which handles the short answers in the order that they appear on the page. Each answer is compared with the student's input and once a match is found the comparisons are stopped and the corresponding response is shown. This means the "catch-all" wrong answer (the single *) now goes at the end. Which I think is a more logical position.
If possible, could you have a look at this new version (It will on the Module download page tomorrow). Please let me know if this now behaves correctly with your sophisticated set of answers.
Thanks, Ray
Ray
Must I use 1.5 version of lesson module? But can I install it on 1.4 moodle?
Luciano
Luciano
Apparently the ' * ' catch all wrong answers function never made it to Moodle 1.5. But it works in 1.5.2 and 1.5.3.
Unfortunately our admin is not willing to update from 1.5...
All the best,
Joseph
Hello,
Writing this a year and a half after Ray's excellent suggestion of allowing access to regular expressions in short answers in both the lesson and the quiz modules, I am surprised nothing has been done in the latest versions of Moodle in this direction. Or am I wrong?
I do need the power of regular expressions for enhanced response analysis. I can not make the changes myself, not being an admin of our institution's site and our admin only agrees to use regular distributions, no hacks.
What can I do?
Joseph
I know that at one point the wild card feature was not working correctly. So, using a more current version of the lesson module would be advisable.
No other regular expression syntax is supported as of now.
Cheers,
Mark
Hope you forgive me, but I have a question. You look to work OK with moodle so I thought I could have the oportunity of making a question.
¿What are lessons for?
I opend the module and I was especting to be able to organize a class, but it starts wuith a questionaire... I can´t get it...
Please, what do you use Lessons for?
From very far (Chile)
Juan Pablo