Quiz: sumgrades & grade fields?

Quiz: sumgrades & grade fields?

av Jeff Rahman -
Antall svar: 2
Hello,

I am trying to learn all about the quiz activity module code. Does anyone know what the "sumgrades" and "grade" fields are for on the "Quiz" table?

On a related matter, what is "sumgrade" on a quiz_attempt table? The whole concept of a "sum" throws me off. Shouldn't each attempt just save the grade? But it looks as it the Quiz adds them in for each attempt.

Confused...

Thank you for your help.

Jeff


Gjennomsnittlig vurdering: -
Som svar til Jeff Rahman

Re: Quiz: sumgrades & grade fields?

av Tim Hunt -
Bilde av Core developers Bilde av Documentation writers Bilde av Particularly helpful Moodlers Bilde av Peer reviewers Bilde av Plugin developers
Well, first of all, have you found Development:Question_database_structure and Development:Quiz_database_structure?

But to answer your immediate question, a quiz is a number of different questions, and the grade for the quiz is the sum of the grades for each question (possibly multiplied by a weighting factor and then) added together, and then the final quiz grade may be re-scaled to be out of a different total.
Gjennomsnittlig vurdering:Useful (1)
Som svar til Tim Hunt

Re: Quiz: sumgrades & grade fields?

av Jeff Rahman -
Thanks Tim! This is what I needed.

Yes, I had those docs (in fact they are printed out and taped to my wall). I thought the quiz would collect the grades, but it doesn't. Each question handles scoring since they can be submitted independently of the entire quiz. I couldn't quite trace the code or figure out from the docs what was going on, so I "raised my hand" and asked. smiler


Jeff