File:  [LON-CAPA] / doc / homework / analyze_structure
Revision 1.2: download - view: text, annotated - select for diffs
Wed Aug 22 10:16:50 2007 UTC (14 years, 9 months ago) by foxr
Branches: MAIN
CVS tags: version_2_9_X, version_2_9_99_0, version_2_9_1, version_2_9_0, version_2_8_X, version_2_8_99_1, version_2_8_99_0, version_2_8_2, version_2_8_1, version_2_8_0, version_2_7_X, version_2_7_99_1, version_2_7_99_0, version_2_7_1, version_2_7_0, version_2_6_X, version_2_6_99_1, version_2_6_99_0, version_2_6_3, version_2_6_2, version_2_6_1, version_2_6_0, version_2_5_99_1, version_2_5_99_0, version_2_12_X, version_2_11_X, version_2_11_4_uiuc, version_2_11_4_msu, version_2_11_4, version_2_11_3_uiuc, version_2_11_3_msu, version_2_11_3, version_2_11_2_uiuc, version_2_11_2_msu, version_2_11_2_educog, version_2_11_2, version_2_11_1, version_2_11_0_RC3, version_2_11_0_RC2, version_2_11_0_RC1, version_2_11_0, version_2_10_X, version_2_10_1, version_2_10_0_RC2, version_2_10_0_RC1, version_2_10_0, loncapaMITrelate_1, language_hyphenation_merge, language_hyphenation, bz6209-base, bz6209, HEAD, GCI_3, GCI_2, GCI_1, BZ4492-merge, BZ4492-feature_horizontal_radioresponse, BZ4492-feature_Support_horizontal_radioresponse, BZ4492-Support_horizontal_radioresponse
Add docs for $prefix.bubble_lines element of the analysis hash.

parts - array of identifiers for responses that have registered
        themselves in order that they occur in the problem.
	The identifiers have the format

   $part_id.$response_id
       
        and they will prefix all other keys that are associated with the 
        associated response


For the rest of the keys $prefix will be a entry from the above parts array

    - $prefix.answercomputed - will be set to 1 if it's been detected
                               that the correct answer is calculated (and
                               then likely to vary on a per student basis)
                               or statically set (and thus likely the same
                               for each student)

   - $prefix.bubble_lines    - Number of lines of bubbles in a scantron
                               sheet required for this response.  This is used
                               to know exactly what it means to multiply bubble
                               or to not have bubbles for a response in exam
                               mode taken on scantron sheets.

<numerical/formularesponse>

    - $prefix.type - either 'numericalresponse or 'formularesponse'

    - $prefix.incorrect - array of the values that are in the incorrect
                          attribute for a numericalresponse 


    For each of these, the value is a hash, with keys that are the
    value of the name attribute of the associated <answer>, the value
    of that is an array for each component of the answer

    For example

     $analyze{"$prefix.answer"}{$name}[1]

    is the second component of the ansser $name for the response $prefix


        - $prefix.answer   - the correct answer
        - $prefix.unit     - the unit for the correct answer
        - $prefix.ans_high - for ranged answers the highest allowed answer
        - $prefix.ans_low  - for ranged answers the lowest allowed answer
        - $prefix.format   - the format specification for displaying the
                             correct answer


<stringresponse>

    - $prefix.type - will be 'stringresponse'

    For each of these, the value is a hash, with keys that are the
    value of the name attribute of the associated <answer>, the value of
    that is an array for each component of the answer

    For example

      $analyze{"$prefix.answer"}{$name}[1]

    is the second component of the answser $name for the response $prefix

        - $prefix.answer   - the correct answer
        - $prefix.str_type - the type of answer (either 'mc' 'cs' 'ci' 're')




<image/match/option/radiobutton/rank response>

    - $prefix.foils - a list of all names seen from the <foil>s name attribute
    - $prefix.shown - a list of all <foil> names that were actually shown to
                     this user (in the order that they were displayed to them)

    - $prefix.concepts - (only appears if <conceptgroup> is used) 
                     a list of all the concept attributes for each
                     <conceptgroup>s that appears 

    For each of the possible <conceptgroup> concepts from the
    $prefix.concepts array there is a

        - $prefix.concept.$concept - the array of <foil> names associated 
                                     with $concept

    For each of the possible <foil> names from the $prefix.foils array
    there is a

        - $prefix.foil.value.$name - the correct value for this <foil> (from
                                     the <foil>'s value attribute)

        - $prefix.foil.text.$name - the text that was displayed to the student
                                    as the text for this foil

    For <rank/radiobutton/option/match response> there is also

        - $prefix.foil.location.$name - the value of the location
                                        attribute for the
                                        value tag (expected to be
                                        either 'top',
                                       'bottom', or 'random' if blank,
                                       assumed to be 'random' 



<imageresponse>
    - $prefix.foil.image.$name - the url of the image that is displayed
                                 to the user

    - $prefix.foil.area.$name - the area of the image that is set as correct


<matchresponse>

    - $prefix.items - array of the names of the <item>s 

<optionresponse>

    - $prefix.options - array of all possible selectable options 
                        (from the <foilgroup>)

<radiobuttonresponse>

    - $prefix.options - array of all possible selectable options 
                        (which will always be 'true' and 'false')


<rankresponse>

    - $prefix.tol - the tolerance to apply when checking if two <foil>s
                    are equivalent or not



FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>