STACK - Problem with random exercise

STACK - Problem with random exercise

by Martin Kreh -
Number of replies: 3

In a test, I have the question to compute

{@a@} \(-\) {@b@} \(+\) {@c@}

where

a:rand_range(11111,98765)
b:rand_range(11111,98765)
c:rand_range(11111,98765)

In the past, this worked well when giving as TAns a-b+c. But since some days the following happens:

When students input the correct answer, this will be evaluated as incorrect. If students input a-b+c (just the letters), this will be evaulated as correct.

Can someone tell if I have to change something?

Thanks in advance,

Martin

Average of ratings: -
In reply to Martin Kreh

Re: STACK - Problem with random exercise

by Christopher Sangwin -
Picture of Particularly helpful Moodlers Picture of Plugin developers

Martin,

If you check the docs for input options you will notice students are always able to type in single variable letter names.  Now we have a parser, this behaviour is set to change.  For you, you can "forbid" a,b,c in the forbidden words.

Chris


In reply to Christopher Sangwin

Re: STACK - Problem with random exercise

by Martin Kreh -

Thanks for your answer. This solves the one of the problems. But still, when a student gives the correct number as solution, this will be evaluated as incorrect.

In reply to Martin Kreh

Re: STACK - Problem with random exercise

by Christopher Sangwin -
Picture of Particularly helpful Moodlers Picture of Plugin developers

Ok Martin,

You will have to send me the question to look at.  C.J.Sangwin@ed.ac.uk

Chris