From 687132600193baf2ffc33f35cd09ffa731652efe Mon Sep 17 00:00:00 2001 From: Arjun Singh Date: Thu, 19 Jul 2012 12:41:28 -0700 Subject: [PATCH] Adding information and an example for ChoiceResponse --- common/lib/capa/capa/responsetypes.py | 41 +++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/common/lib/capa/capa/responsetypes.py b/common/lib/capa/capa/responsetypes.py index 1b205978af..a8137a7eb7 100644 --- a/common/lib/capa/capa/responsetypes.py +++ b/common/lib/capa/capa/responsetypes.py @@ -268,6 +268,47 @@ class LoncapaResponse(object): #----------------------------------------------------------------------------- class ChoiceResponse(LoncapaResponse): + ''' + This Response type is used when the student chooses from a discrete set of + choices. Currently, to be marked correct, all "correct" choices must be + supplied by the student, and no extraneous choices may be included. + + This response type allows for two inputtypes: radiogroups and checkbox + groups. radiogroups are used when the student should select a single answer, + and checkbox groups are used when the student may supply 0+ answers. + Note: it is suggested to include a "None of the above" choice when no + answer is correct for a checkboxgroup inputtype; this ensures that a student + must actively mark something to get credit. + + If two choices are marked as correct with a radiogroup, the student will + have no way to get the answer right. + + TODO: Allow for marking choices as 'optional' and 'required', which would + not penalize a student for including optional answers and would also allow + for questions in which the student can supply one out of a set of correct + answers.This would also allow for survey-style questions in which all + answers are correct. + + Example: + + + + + This is a wrong answer. + + + This is the right answer. + + + This is another wrong answer. + + + + + In the above example, radiogroup can be replaced with checkboxgroup to allow + the student to select more than one choice. + + ''' response_tag = 'choiceresponse' max_inputfields = 1