Modify the default grading code to make it easier to present answers nicely

The Maple graded question type set up has an answer box, that gets stored as $ANSWER, and then grading code that compares $ANSWER to $RESPONSE. The value of $ANSWER is also what is displayed to the student. It is not uncommon to want to display something different to the student to the actual code for the answer (eg. the MathML version of the required matrix, rather than the Maple code for it).

It is possible to do this, but requires you to correctly change $ANSWER in the grading code to the actual answer. This would be easier to achieve if the default grading code was instead:

ANS:=$ANSWER;

evalb((ANS)-($RESPONSE)=0);

(Similar changes for $RESPONSE would also make it easier when you need to reformat the student's response before grading.)

  • Jessica Banks
  • Jun 12 2020
  • Already Exists
  • Attach files
  • Jessica Banks commented
    17 Jun 06:18

    You know full well that this does not already exist. This is not a request for new functionality, it is about improving the user experience, something that is currently being repeatedly ignored. I do not know of any programming language where this would take more than 10 minutes to implement, and it would save me significant amounts of time. There are multiple places in Mobius where it is technically possible to do something but it takes much longer than it should.

  • Admin
    Boris Pavlovic commented
    16 Jun 18:21

    Hi Jessica,

    Thank you for your submission. I have marked this as "Already Exists" as all of the functionality you are looking for is already present within this question type. $RESPONSE and $ANSWER can be used as values for variables for further manipulation. Often I don't even use $ANSWER in my grading code because I use it purely for display purposes.

    I think future new question types, and our question templates (July 2020 release) that showcase some of the above techniques will be helpful in this regard!