respect the quiz_format_grade() and quiz_format_question_grade() options in config.