QTI Format
The QTI (Question and Test Interoperability) format is an XML-based format used for sharing question items and assessments between different systems.
However, here's an example of what a simple multiple-choice question in QTI format might look like:
<assessmentItem>
<responseDeclaration identifier="response" cardinality="single" baseType="identifier">
<correctResponse>
<value>choice_b</value>
</correctResponse>
</responseDeclaration>
<itemBody>
<choiceInteraction responseIdentifier="response" shuffle="true">
<prompt>Select the correct answer:</prompt>
<simpleChoice identifier="choice_a">London</simpleChoice>
<simpleChoice identifier="choice_b">Paris</simpleChoice>
<simpleChoice identifier="choice_c">Berlin</simpleChoice>
</choiceInteraction>
</itemBody>
<outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float">
<defaultValue>
<value>0</value>
</defaultValue>
</outcomeDeclaration>
</assessmentItem>
In the QTI representation, the assessmentItem
element represents the entire question, with child elements defining the response declaration, item body, and outcome declaration.
The responseDeclaration
element defines the response variable for the question, with an identifier
attribute of "response". The correctResponse
element specifies the correct answer using the value element with the identifier of the correct choice ("choice_b").
The itemBody
element contains the choiceInteraction
element, which represents the multiple-choice question. The prompt element
is used to provide the question stem. The answer choices are represented by simpleChoice
elements with unique identifiers ("choice_a", "choice_b", "choice_c").
Finally, the outcomeDeclaration
element defines the scoring for the question, with an identifier of "SCORE" and a defaultValue
element specifying an initial value of 0.