Calculated Question Grading Error

Calculated Question Grading Error

Deb Burdick-Hinton
Vastuste arv 22
Greetings Moodlers...I have had some strange behavior with the Quiz module lately...maybe I should blame the full moon???

Take a look at this screen shot. I created a calculated question. The student answered 1.59, which was correct and the feedback indicated the correct answer was 1.59 but still scored the student 0/2 pts. I checked to make sure the student did not put in any extra spaces or syntax. I edited the question and sure enough 1.59 is listed as a correct answer. Thank goodness for manual over ride, which is used immediately but you can see by this screen shot that the automatic graded scored this as 0 pts.  What is Up? Any idea???

Thanks for your input!!!!
Manus CalcQuestionError.jpg
Keskmine hinnang: -
Vastuses Deb Burdick-Hinton

Re: Calculated Question Grading Error

Dr S Bhatia
Let me put it this way Debra
I don't think this is a calculated question at all.
I think this is a numerical question.
Since there is a vast difference between the two, I think what you can do is show us the screenshot of the 'edit question' view and then may be we can rack our brains.
also check out the quiz settings.
Regards
Vastuses Dr S Bhatia

Re: Calculated Question Grading Error

Deb Burdick-Hinton
Edit Question Screen Shot #2
Manus calcQ2.jpg
Vastuses Deb Burdick-Hinton

Re: Calculated Question Grading Error

Dr S Bhatia
it's a bug

it's a bug

it's a bug
big grin

Ok, I have discovered what is happening.

Your
formula is 6.375/{a}
your {a} are various values

Since you had mentioned: correct answer should have '2' decimal figures, the dataset has calculated the answers only upto 2 decimal figures...thus 1.59 is one of the answers.

The bug is: when you fill in the answer in the question, it is not limiting itself to 2 decimals.
so try filling the follwing answers:
1.59---> incorrect
1.593---> incorrect
1.5937---> incorrect
1.59375---> Correct

Surprise!! surprise!!

Want more surprise?
Here you go===> this behaviour does not change even if you change the setting of 2 decimals to 3 significant figures.

Therefore, the bug is=> the decimal/significant figure  option is affecting only the dataset for wildcard replacement but fails to be applied when answers filled in are matched with possible answers.

File a bug report Debra.
And sorry for being so presumptuous to call it a numerical question.
Manus try.JPG
Vastuses Dr S Bhatia

Re: Calculated Question Grading Error

Dr S Bhatia
To take it further

if you click on 'fill with correct', it fills 1.59 only (taking it from dataset)
but if you click 'submit' then, it says 'incorrect'
Manus try2.JPG
Vastuses Dr S Bhatia

Re: Calculated Question Grading Error

Dr S Bhatia

HOWEVER

once i set the settings as shown below, the preview started accepting 1.59 as correct.
Manus try3.JPG
Vastuses Dr S Bhatia

Re: Calculated Question Grading Error

Dr S Bhatia
so if you set the tolerance as shown above, it works

MORAL: DEVELOP A LITTLE BIT OF TOLERANCE silmapilgutus
Manus try4.JPG
Vastuses Dr S Bhatia

Re: Calculated Question Grading Error

Dr S Bhatia
I have filed the bug for you at MDL-6879

Please vote there to give it attention
Vastuses Dr S Bhatia

Re: Calculated Question Grading Error

Deb Burdick-Hinton
Thank you! I had hoped I was just making a mistake. Bummer that it is a bug but I like your comment to have a little "tolerance". I added my vote.

Your fix did work, but I made an adjustment and left it at 2 decimal places instead of 5 (which also worked when I regraded the attempts) because the problem asked the students to round to the nearest "hundredth" and the correct answers are released after each attempt to I do not want a number with 5 decimals displayed as correct. I am also uncomfortable with allowing the tolerance since this would mark incorrect answers correct but I will just manually monitor this questions and your fix is a great alternative.

Sure appreciate the quick response and filing the bug report for me.
Vastuses Deb Burdick-Hinton

Foorumipostitus on eemaldatud

Selle foorumi postituse sisu on eemaldatud ja sellele ei pääse enam juurde.
Vastuses Kustutatud kasutaja

Foorumipostitus on eemaldatud

Selle foorumi postituse sisu on eemaldatud ja sellele ei pääse enam juurde.
Vastuses Kustutatud kasutaja

Re: Calculated Question Grading Error

Dr S Bhatia
Sorry to say so Pierre but your point is not clear to me .
you may have to elaborate.

All i know is that settings page gives option to be set for a certain no of decimals/sig figures and it also calculates correct answers in dataset using that parameter.

but when the student was answering this, the decimal parameter was not taken into account. This i feel is a bug.

actually this comes to light only when your answers are having several post decimal figures. if you want to say- divide 50/4, the answer is 12.50 and this will be marked correct anyway. but when you say divide 6.758493 by 3 (round off to 4 sig figures) and the answer is 2.252831, then your reply SHOULD be 2.253 but without the tolerance parameter, the moodle will accept only 2.252831 as right. This behaviour must be clarified in the help file or somewhere.
Vastuses Dr S Bhatia

Re: Calculated Question Grading Error

Deb Burdick-Hinton
Thanks for the detailed response Pierre. I definitely did not have the correct understanding of tolerance but I am with the good Dr in thinking that this is still a bug, but am not totally clear on all the details of your response. It is an interesting problem to analyze, however.
Vastuses Deb Burdick-Hinton

Foorumipostitus on eemaldatud

Selle foorumi postituse sisu on eemaldatud ja sellele ei pääse enam juurde.
Vastuses Kustutatud kasutaja

Re: Calculated Question Grading Error

Randy Dykstra

Hi, Pierre - I just started having this problem.  Sorry for dragging up the ?long dead? past.

Wouldn't it make more sense if the code were to calculate the MIN and MAX using the rounded value rather than the true calculated value?

Eg If 6.758493 by 3 (round off to 3 decimal places) and the answer is 2.252831, then your reply SHOULD be 2.253 if the tolerance is 0.  Any tolerance should be added to this rounded answer, so if your tolerance is nominal at 0.0001, Moodle should accept 2.2529 to 2.2531.

Is this a good solution to the problem you were having before?

Vastuses Randy Dykstra

Foorumipostitus on eemaldatud

Selle foorumi postituse sisu on eemaldatud ja sellele ei pääse enam juurde.
Vastuses Deb Burdick-Hinton

Re: Calculated Question Grading Error

Dr S Bhatia
Anytime Debra . Or as oswald says ''...glad to be of help''smile (my TV viewing is restricted to cartoon channels and Pogo because thats what my kids have grounded me to naeratus)
Vastuses Deb Burdick-Hinton

Foorumipostitus on eemaldatud

Selle foorumi postituse sisu on eemaldatud ja sellele ei pääse enam juurde.
Vastuses Kustutatud kasutaja

Re: Calculated Question Grading procedure

Dr S Bhatia
Now that's  a solution naeratus

But how does an illiterate like me APPLY it?

But you sure must have taken a lot of trouble. Thanks.

It'll be worth our while if you could also tell us in lay language where to insert the above code silmapilgutus

(Please dont think i am taking you for a ride. i am a clinical doctor and i learn computer as and when i face situations)

regards
Vastuses Kustutatud kasutaja

Foorumipostitus on eemaldatud

Selle foorumi postituse sisu on eemaldatud ja sellele ei pääse enam juurde.
Vastuses Kustutatud kasutaja

Foorumipostitus on eemaldatud

Selle foorumi postituse sisu on eemaldatud ja sellele ei pääse enam juurde.