<?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="choiceMultiple" title="Composition of Water" adaptive="false" timeDependent="false">
    <responseDeclaration identifier="RESPONSE" cardinality="multiple" baseType="identifier">
        <correctResponse>
            <value>H</value>
            <value>O</value>
        </correctResponse>
        <mapping lowerBound="0" upperBound="2" defaultValue="-2">
            <mapEntry mapKey="H" mappedValue="1"/>
            <mapEntry mapKey="O" mappedValue="1"/>
            <mapEntry mapKey="Cl" mappedValue="-1"/>
        </mapping>
    </responseDeclaration>
    <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="integer"/>
    <itemBody>
        <choiceInteraction responseIdentifier="RESPONSE" shuffle="true" maxChoices="0">
            <prompt>Which of the following elements are used to form water?</prompt>
            <simpleChoice identifier="H" fixed="false">Hydrogen</simpleChoice>
            <simpleChoice identifier="He" fixed="false">Helium</simpleChoice>
            <simpleChoice identifier="C" fixed="false">Carbon</simpleChoice>
            <simpleChoice identifier="O" fixed="false">Oxygen</simpleChoice>
            <simpleChoice identifier="N" fixed="false">Nitrogen</simpleChoice>
            <simpleChoice identifier="Cl" fixed="false">Chlorine</simpleChoice>
        </choiceInteraction>
    </itemBody>
    <responseProcessing>
        <responseCondition>
            <responseIf>
                <isNull>
                    <variable identifier="RESPONSE"/>
                </isNull>
                <setOutcomeValue identifier="SCORE">
                    <baseValue baseType="integer">0</baseValue>
                </setOutcomeValue>
            </responseIf>
            <responseElse>
                <setOutcomeValue identifier="SCORE">
                    <mapResponse identifier="RESPONSE"/>
                </setOutcomeValue> 
            </responseElse>
        </responseCondition>
    </responseProcessing>
</assessmentItem>
