Summary: Examples for Questions Markup Language 1.0.
Here is the QML used to create the single-response example:
<q:item id="item1" type="single-response">
<q:question>
Are bananas a fruit or a vegetable?
</q:question>
<q:answer id="fruit1">
<q:response>A fruit.</q:response>
<q:feedback>Correct!</q:feedback>
</q:answer>
<q:answer id="vegetable1">
<q:response>A vegetable.</q:response>
<q:feedback>Incorrect.</q:feedback>
</q:answer>
<q:hint>Bananas grow on trees.</q:hint>
<q:hint>Fruits grow on trees.</q:hint>
<q:feedback>Bananas are a fruit.</q:feedback>
<q:key answer="fruit1" />
</q:item>
Here is the QML used to create the multiple-response example:
<q:item id="item2" type="multiple-response">
<q:question>
Bananas are (pick two):
</q:question>
<q:answer id="fruit2">
<q:response>A fruit.</q:response>
<q:feedback>Yes, bananas are a fruit.</q:feedback>
</q:answer>
<q:answer id="vegetable2">
<q:response>A vegetable.</q:response>
<q:feedback>Bananas are not a vegetable.</q:feedback>
</q:answer>
<q:answer id="yellow">
<q:response>Yellow.</q:response>
<q:feedback>Yes, bananas are yellow.</q:feedback>
</q:answer>
<q:hint>Bananas grow on trees.</q:hint>
<q:hint>Bananas are the same color as lemons.</q:hint>
<q:feedback>Bananas are a yellow fruit.</q:feedback>
<q:key answer="fruit2,yellow" />
</q:item>
Here is the QML used to create the ordered-response example:
<q:item id="item3" type="ordered-response">
<q:question>
In order to boil water, you need to do the following
(please select in the correct order):
</q:question>
<q:answer id="stove">
<q:response>Put the pot on the stove.</q:response>
<q:feedback>You put the pot on the stove second.</q:feedback>
</q:answer>
<q:answer id="pot">
<q:response>Put water in the pot.</q:response>
<q:feedback>You put the water in the pot first.</q:feedback>
</q:answer>
<q:answer id="boil">
<q:response>Wait until you see bubbles in the water.</q:response>
<q:feedback>You wait for the bubbles third.</q:feedback>
</q:answer>
<q:hint>The pot won't boil till there's water in it.</q:hint>
<q:feedback>First you put water in the pot, then you put the
pot on the stove, then you wait for the bubbles.</q:feedback>
<q:key answer="pot,stove,boil" />
</q:item>
Here is the QML used to create the text-response example:
<q:item id="item4" type="text-response">
<q:question>
What are some common tests of executive function?
</q:question>
<q:answer>
<q:feedback correct="no">Incorrect.</q:feedback>
<q:feedback correct="yes">Correct.</q:feedback>
</q:answer>
<q:hint>Think about square states and towers.</q:hint>
<q:feedback>Some common tests of executive function are the
Wisconsin Card Sort Test and the Tower of Hanoi.</q:feedback>
<q:key>Wisconsin Card Sort Test, Tower of Hanoi</q:key>
</q:item>