[LON-CAPA-users] Custom vs. Numeric Responses
st.bisitz at ostfalia.de
st.bisitz at ostfalia.de
Tue Feb 28 17:44:38 EST 2012
> However, what I’m not getting with numeric response which I do with customresponse,
> is the ability to echo the student’s answer back to them by setting “displayanswer”
> to be equal to their submission.
This is fine for correct answers by the students but would be a bad idea for
- no student's answer and the problem is after answer open date -> nothing is shown as correct answer
- incorrect student's answer and the problem is after answer open date -> incorrect anser is shown to be the correct one
So, better don't use it like that.
> I’d like to [...] display the student’s answer back to them in numericresponse.
You could use the aftersolved block combined with &submission().
This would display the programmed correct answer from the response block and additionally display the student's answer (likely a text block starting with "Your answer was: ...")
Hope this helps,
On 2012-02-28 21:37:58, Mills, Douglas G wrote:
> Hi All,
> I just want to be sure I’m not overlooking something... I want to work with student-inputted values so expect to use a customresponse for that. However, I’d also like to verify that they’re using the correct number of significant figures, which is trivial with the numericresponse type. The numericresponse works for my purposes in that I know that the student input values in this case should be 50 +/- 2 so setting the tolerance to 4% takes care of it. However, what I’m not getting with numeric response which I do with customresponse, is the ability to echo the student’s answer back to them by setting “displayanswer” to be equal to their submission.
> Bottom Line: I’d like to either check significant figures in my customresponse OR display the student’s answer back to them in numericresponse.
> I have been working on checking number of sig figs in PERL for the customresponse and am getting close, but related question there — is there a way when returning SIG_FAIL to specify whether there are too many or too few significant figures? Seems to by default report “too few” and I don’t know how to specify it should report “too many”.
> Thank so all in advance.
> Douglas Mills
> Director of Instructional Technologies
> Department of Chemistry
> University of Illinois
> dmills at illinois.edu
> (217) 244-5739
> LON-CAPA-users mailing list
> LON-CAPA-users at mail.lon-capa.org
More information about the LON-CAPA-users