[QTI] responseProcessing for single fill in the blank question

Niall Barr niall at nbsoftware.com
Tue Mar 4 19:53:01 GMT 2008


Hi Uma,

Your first item just has one minor issue - </correctResponse> should be 
immediately after </value> so that mapping is inside responseDeclaraton 
but not correctResponse. I had to edit the schema declarations to keep 
the XMLSpy editor happy. The version below works fine with APIS (screen 
shot link below.) I think the same modification should fix your second 
item as well.

Niall

<?xml version="1.0" encoding="UTF-8"?>
<assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1" 
<http://www.imsglobal.org/xsd/imsqti_v2p1> 
xmlns:lip="http://www.imsglobal.org/xsd/imslip_v1p0" 
<http://www.imsglobal.org/xsd/imslip_v1p0> 
xmlns:m="http://www.w3.org/1998/Math/MathML" 
<http://www.w3.org/1998/Math/MathML> 
xmlns:xi="http://www.w3.org/2001/XInclude" 
<http://www.w3.org/2001/XInclude> 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
<http://www.w3.org/2001/XMLSchema-instance> 
xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1
imsqti_v2p1.xsd"  identifier="19_29" title="co - Completion" 
adaptive="false" timeDependent="false" >
   <responseDeclaration identifier="RESPONSE" cardinality="single" 
baseType="string">
      <correctResponse>
         <value>heat of reaction</value>
       </correctResponse>
        <mapping defaultValue="0">
            <mapEntry mapKey="heat of reaction" mappedValue="3"/>
            <mapEntry mapKey="the heat of reaction" mappedValue="3"/>
            <mapEntry mapKey="heat of a reaction" mappedValue="3"/>
            <mapEntry mapKey="the heat of a reaction" mappedValue="3"/>
         </mapping>
   </responseDeclaration>
   <outcomeDeclaration identifier="SCORE" cardinality="single" 
baseType="integer">
      <defaultValue>
         <value>0</value>
      </defaultValue>
   </outcomeDeclaration>
   <itemBody>
      <p>The energy released or absorbed in a chemical reaction is 
called ____________________.<br/>
         <textEntryInteraction responseIdentifier="RESPONSE" 
expectedLength="60"/>
      </p>
   </itemBody>
   <responseProcessing 
template="http://www.imsglobal.org/question/qti_v2p1/rptemplates/map_response" 
<http://www.imsglobal.org/question/qti_v2p1/rptemplates/map_response>/>
</assessmentItem>

Here it is rendered and with an answer checked in APIStestHost.

http://www.niallbarr.me.uk/qtitmp/apis-screenshot.jpg


Uma Abhyankar wrote:
> Hello All, 
>
> I have following QTI 2.1 xml written for a single fill in the blank kind of question.
> There could be multiple variants of a given answer and any one can be correct.
>
> For grading such a response, I used the following responseDeclaration and
> responseProcessing part. (similar to multiple response/answers type of QTI question, 
> choice_multiple.xml. However in this case any one answer is correct)
>
> After re-thinking, I am not sure, if it looks fine? I am now doubtful whether the
> responseDeclaration should be different?
>
> Part I : Single fill in the blank with multiple variants of the same answer.
> ---------
> <?xml version="1.0" encoding="iso-8859-1"?>
> <assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1"
>                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>                 xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 imsqti_v2p1.xsd"
>                 identifier="19_29"
>                 title="co - Completion"
>                 adaptive="false"
>                 timeDependent="false">
>    <responseDeclaration identifier="RESPONSE" cardinality="single" baseType="string">
>       <correctResponse>
>          <value>heat of reaction</value>
>          <mapping defaultValue="0">
>             <mapEntry mapKey="heat of reaction" mappedValue="3"/>
>             <mapEntry mapKey="the heat of reaction" mappedValue="3"/>
>             <mapEntry mapKey="heat of a reaction" mappedValue="3"/>
>             <mapEntry mapKey="the heat of a reaction" mappedValue="3"/>
>          </mapping>
>       </correctResponse>
>    </responseDeclaration>
>    <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="integer">
>       <defaultValue>
>          <value>0</value>
>       </defaultValue>
>    </outcomeDeclaration>
>    <itemBody>
>       <p>The energy released or absorbed in a chemical reaction is called ____________________.<br/>
>          <textEntryInteraction responseIdentifier="RESPONSE" expectedLength="60"/>
>       </p>
>    </itemBody>
>    <responseProcessing template="http://www.imsglobal.org/question/qti_v2p1/rptemplates/map_response"/>
> </assessmentItem>
>
> Part II : Single fill in the blank with single variant of the answer. (The mapping in responseDeclaration is
> --------    used to be consistent with Part I)
>
> <?xml version="1.0" encoding="iso-8859-1"?>
> <assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1"
>                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>                 xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 imsqti_v2p1.xsd"
>                 identifier="20_30"
>                 title="co - Completion"
>                 adaptive="false"
>                 timeDependent="false">
>    <responseDeclaration identifier="RESPONSE" cardinality="single" baseType="string">
>       <correctResponse>
>          <value>equilibrium</value>
>          <mapping defaultValue="0">
>             <mapEntry mapKey="equilibrium" mappedValue="3"/>
>          </mapping>
>       </correctResponse>
>    </responseDeclaration>
>    <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="integer">
>       <defaultValue>
>          <value>0</value>
>       </defaultValue>
>    </outcomeDeclaration>
>    <itemBody>
>       <p>Any chemical system that has two opposing reactions occurring at equal rates is in a state of ____________________.<br/>
>          <textEntryInteraction responseIdentifier="RESPONSE" expectedLength="60"/>
>       </p>
>    </itemBody>
>  <responseProcessing template="http://www.imsglobal.org/question/qti_v2p1/rptemplates/map_response"/>
> </assessmentItem>
>
> Please do review both Parts and give your valuable inputs as to what should be the correct way
> to write the responseDeclaration and responseProcessing parts?
>
> -Thanks and Regards 
> Uma 
>
>  
>
>
>       Explore your hobbies and interests. Go to http://in.promos.yahoo.com/groups
>
> _______________________________________________
> IMS-QTI mailing list
> IMS-QTI at lists.ucles.org.uk
> http://lists.ucles.org.uk/lists/listinfo/ims-qti
>
>
>   




More information about the IMS-QTI mailing list