Wiris

Documentation / WirisQuizzes

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • WirisQuizzes

      • LearningLemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • VPAT for the electronic documentation

                • MathFlow

                  • BF FAQ

                    • Miscellaneous

                      • Wiris Integrations

                        • Home
                        • WirisQuizzes
                        • Validation Options
                        • Grading functions
                        • Grading functions

                        Custom marks

                        Reading time: 1min

                        We'll show a simple example of a grading function with several outputs. The idea will be to award more marks for every level of correctness in the answer.

                        We want to ask the following question in basic arithmetic:

                        With partial credit awarded for each correct property of the student's answer. Say these are young children, and we consider the most challenging part to correctly give a number whose remainder is 2 when divided by 7. We'll award 0.4 marks for that and 0.3 for each of the other properties. Additionally, we only want to give half marks for the rest of the properties if the answer falls in the first one (the purpose of decrease_mark).

                        Observe that to make a more extended grading function with multiple conditionals and calculations; we must enclose it with the begin..end statements and use return to define the function's output.

                        The question is completed now. Make sure to tick the "grading function" option in the Validation options section as described earlier, and give any particular correct value in the Correct Answer blank. We can see that both of these responses are correct:


                        We've used a relatively simple question as an example, but we can already see that grading functions can be made to have a very customized and complex design.

                         

                         

                         

                        Was this article helpful?

                        Give feedback about this article

                        Related Articles

                        • Why MathML 3?
                        • MathML makes elementary math accessible
                        • MathML 3

                        Empowering STEM education

                        MathType

                        • Office Tools
                        • LMS
                        • XML
                        • HTML

                        WirisQuizzes

                        Learning Lemur

                        Integrations

                        Solutions

                        • Education
                        • Publishing houses – platforms and interactive
                        • Publishing houses – Print and digital
                        • Technical writers

                        Pricing

                        Downloads

                        Blog

                        • Success stories

                        About us

                        • Careers
                        • Partnership

                        Contact Us

                        Contact Sales

                        European union (European Regional Development Fund) and 1EdTech (TrustEd Apps Certified)
                        • Cookie Policy
                        • Terms of Use
                        • Privacy Policy / GDPR
                        • Student Data Privacy
                        • Compliance
                        • Cookie Settings

                        © Wiris 2026

                        Expand