I believe it is a mistake to have the fields quiz_question_answer.points and quiz_result.score set to TINYINT.

I am currently putting together some question types that require fractional scores. For example, consider the case of a problem with multiple correct answers where we want to give a fraction of a point if the quiz-taker picks some, but not all of the right answers. (Implementing this with whole points adds unnecessary complexity to weighting the scores when we mix various question types.)

Fractional result scores will also allow implementing a guessing penalty (as used, for example, on the SAT), where a fraction of a point is subtracted for incorrect answers.

So I suggest changing these fields to DECIMAL, or perhaps FLOAT.

Comments

gilcot’s picture

you are right and i've just noticed that i'm using DEC for that field in my testing DB...
i'll submit patch if everybody agree with that suggestion.
thanks

falcon’s picture

Version: 6.x-2.x-dev » 6.x-5.x-dev

Cleaning up the issue list. This one should still be considered I think.

djdevin’s picture

Component: Code » Code - Quiz core
Issue summary: View changes
Status: Active » Closed (outdated)

This issue is being closed because it was filed against a version that is no longer supported. If the issue still persists in the latest version of Quiz, please open a new issue.