Hi All,
I have a little issue with the Short-Answer question in the quiz... i was running with 1.8.3, but because of the security holes i upgraded to 1.8.4. All was well until i tried to retrieve the results from a quiz. All the short answer questions my students responded to lost some data at the end. The thing is, with the info that was kept the character amount was not consistent.
Any ideas on what happened or how i can retrieve the data?
Problem with Short-Answer question in Quiz
Number of replies: 5Re: Problem with Short-Answer question in Quiz
That is really strange, because there were no significant changes to the shortanswer question type between those two versions. Can you be more specific about exactly what you are seeing?
Re: Problem with Short-Answer question in Quiz
Hi Tim, I may have been misleading when i mentioned the 1.8 moodle version, I created the questions in 1.8.3 and tried to retrieve the data using 1.8.4 i didn't try to retrieve the data with 1.8.3. So i cannot say for sure that the 1.8.3 version worked properly.
Below are some actual responses:-
The course co ordinator rendered little ...
Find another etutor aprt from Mr. ...
The etutors should be examined to ensure ...
I believe that in the future students ...
There is a need for etutors who are ...
I am unable to see what was typed after ...
Regards
Below are some actual responses:-
The course co ordinator rendered little ...
Find another etutor aprt from Mr. ...
The etutors should be examined to ensure ...
I believe that in the future students ...
There is a need for etutors who are ...
I am unable to see what was typed after ...
Regards
Re: Problem with Short-Answer question in Quiz
Ah, if you are using the detailed responses report, then it does truncate answers. If you look in get_actual responses, or one of the methods like that, in question/type/questiontype.php, then you will see where it truncates the answer, and it is then easy to remove that bit of code.
Re: Problem with Short-Answer question in Quiz
Hi Tim,
The exact place where maximum length of actual student's response to be displayed in detailed responses report is in file question/type/questiontype.php, lines 520-524 (in moodle 1.8.4).
Bizarrely, max length is default defined in the $lmax variable as 40, but that variable is not used in the next line, where max length is set to 45.
Joseph
function get_actual_response($question, $state) { // change length to truncate responses here if you want $lmax = 40; if (!empty($state->responses)) { $responses[] = shorten_text(stripslashes($state->responses['']), 45);
Re: Problem with Short-Answer question in Quiz
Thanks guys...
You were really helpful.
You were really helpful.