[QTI] General response processing
Helmut Schottmüller
helmut.schottmueller at mac.com
Fri Dec 14 16:36:32 GMT 2007
Hi Niall / Steve,
thanks a lot!
Best regards,
Helmut
Am 14.12.2007 um 14:50 schrieb Niall Barr:
> Hi,
>
> You don't need the <equal> element.
>
> <match>
> <variable identifier="RESPONSE"/>
> <equal>
> <baseValue baseType="identifier">ChoiceC</
> baseValue>
> </equal>
> </match>
>
> should be
>
> <match>
> <variable identifier="RESPONSE"/>
> <baseValue baseType="identifier">ChoiceC</baseValue>
> </match>
>
> Variable and baseValue both resolve to identifier variables, and the
> <match> tests for identical values.
>
>
>
> Niall.
>
> Helmut Schottmüller wrote:
>> Hi folks,
>>
>> I am a bit stuck with the general response processing for my QTI
>> 2.1 items. I have huge problems to pick out the correct expression
>> for use with a single choice question.
>> When I take the QTI flight luggage example and I want to add a more
>> general resonse processing, what exactly do I have to do?
>> I don't want the standard processing with 1 point for choice A and
>> 0 points for the rest.
>> I want 1 point for choice A (the correct response), -1 point for
>> choice C and 0 points for the rest.
>>
>> My problem is: How do I choose the other choices in the
>> responseCondition. In my modified example I used the "equal"
>> expression (hoping it is somehow similar to the varequal expression
>> in QTI 1.2). Is this correct or can someone give me the correct
>> choice for my response processing.
>>
>> Best regards,
>>
>> Helmut
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <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="choice"
>> title="Unattended Luggage" adaptive="false" timeDependent="false">
>> <responseDeclaration identifier="RESPONSE" cardinality="single"
>> baseType="identifier">
>> <correctResponse>
>> <value>ChoiceA</value>
>> </correctResponse>
>> </responseDeclaration>
>> <outcomeDeclaration identifier="SCORE" cardinality="single"
>> baseType="integer">
>> <defaultValue>
>> <value>0</value>
>> </defaultValue>
>> </outcomeDeclaration>
>> <itemBody>
>> <p>Look at the text in the picture.</p>
>> <p>
>> <img src="images/sign.png" alt="NEVER LEAVE LUGGAGE
>> UNATTENDED"/>
>> </p>
>> <choiceInteraction responseIdentifier="RESPONSE"
>> shuffle="false" maxChoices="1">
>> <prompt>What does it say?</prompt>
>> <simpleChoice identifier="ChoiceA">You must stay with
>> your luggage at all times.</simpleChoice>
>> <simpleChoice identifier="ChoiceB">Do not let someone
>> else look after your luggage.</simpleChoice>
>> <simpleChoice identifier="ChoiceC">Remember your luggage
>> when you leave.</simpleChoice>
>> </choiceInteraction>
>> </itemBody>
>> <responseProcessing>
>> <responseCondition>
>> <responseIf>
>> <match>
>> <variable identifier="RESPONSE"/>
>> <correct identifier="RESPONSE"/>
>> </match>
>> <setOutcomeValue identifier="SCORE">
>> <baseValue baseType="integer">1</baseValue>
>> </setOutcomeValue>
>> </responseIf>
>> <responseElseIf>
>> <match>
>> <variable identifier="RESPONSE"/>
>> <equal>
>> <baseValue baseType="identifier">ChoiceC</
>> baseValue>
>> </equal>
>> </match>
>> <setOutcomeValue identifier="SCORE">
>> <baseValue baseType="integer">-1</baseValue>
>> </setOutcomeValue>
>> </responseElseIf>
>> <responseElse>
>> <setOutcomeValue identifier="SCORE">
>> <baseValue baseType="integer">0</baseValue>
>> </setOutcomeValue>
>> </responseElse>
>> </responseCondition>
>> </responseProcessing>
>> </assessmentItem>
>>
>>
>> _______________________________________________
>> IMS-QTI mailing list
>> IMS-QTI at lists.ucles.org.uk
>> http://lists.ucles.org.uk/lists/listinfo/ims-qti
>>
>>
>
>
> _______________________________________________
> 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