Order Interaction (QTI)
In an order interaction the candidate’s task is to reorder the choices, the order in which the choices are displayed initially is significant.
By default the candidate’s task is to order all of the choices but a subset of the choices can be requested using the maxChoices and minChoices attributes. When specified the candidate must select a subset of the choices and impose an ordering on them.
If a default value is specified for the response variable associated with an order interaction then its value should be used to override the order of the choices specified here.
By its nature, an order interaction may be difficult to render in an unanswered state, especially in the default case where all choices are to be ordered. Implementors should be aware of the issues concerning the use of default values described in the section on Response Variables.
The orderInteraction must be bound to a response variable with a baseType of identifier and ordered cardinality only. The relevant classes are:
Data Model

Example

<assessmentItem xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p2 http://www.imsglobal.org/xsd/qti/qtiv2p2/imsqti_v2p2p2.xsd" identifier="order" title="Grand Prix of Bahrain" adaptive="false" timeDependent="false">
<responseDeclaration identifier="RESPONSE" cardinality="ordered" baseType="identifier">
<correctResponse>
<value>DriverC</value>
<value>DriverA</value>
<value>DriverB</value>
</correctResponse>
</responseDeclaration>
<outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float"/>
<itemBody>
<orderInteraction responseIdentifier="RESPONSE" shuffle="true">
<prompt>
The following F1 drivers finished on the podium in the first ever Grand Prix of Bahrain. Can you rearrange them into the correct finishing order?
</prompt>
<simpleChoice identifier="DriverA">Rubens Barrichello</simpleChoice>
<simpleChoice identifier="DriverB">Jenson Button</simpleChoice>
<simpleChoice identifier="DriverC" fixed="true">Michael Schumacher</simpleChoice>
</orderInteraction>
</itemBody>
<responseProcessing template="http://www.imsglobal.org/question/qti_v2p2/rptemplates/match_correct"/>
</assessmentItem>
Answers are shuffled but we make sure to never display the correct order by fixing the wrong position for Schumacher.
Match correct means we get 1 for a completely correct score, 0 otherwise.