<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus QML//EN" "http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_qml.dtd">
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:q="http://cnx.rice.edu/qml/1.0" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="m10139">
    
    <name>QML 1.0 Examples</name>
    
    <metadata>
  <md:version>2.9</md:version>
  <md:created>2001/06/27</md:created>
  <md:revised>2002/09/11 00:00:00.009 GMT-5</md:revised>
  <md:authorlist>
      <md:author id="bartmess">
      <md:firstname>Elizabeth</md:firstname>
      
      <md:surname>Bartmess</md:surname>
      <md:email>bartmess@alumni.rice.edu</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist>
    <md:maintainer id="bartmess">
      <md:firstname>Elizabeth</md:firstname>
      
      <md:surname>Bartmess</md:surname>
      <md:email>bartmess@alumni.rice.edu</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  <md:keywordlist>
    <md:keyword>examples</md:keyword>
    <md:keyword>qml</md:keyword>
    <md:keyword>questions markup language</md:keyword>
  </md:keywordlist>

  <md:abstract>Examples for Questions Markup Language 1.0.</md:abstract>
</metadata>

    <content> 

      <section id="single-choice">
	<name>Single-response</name>

	<exercise id="single-choice1">

	  <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>Indeed, bananas are a fruit.</q:feedback>
	    </q:answer>
	    
	    <q:answer id="vegetable1">
	      <q:response>A vegetable.</q:response>
	      <q:feedback>Bananas are not a vegetable.</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>
	</exercise>

	<section id="single-code">
	  <name/>
	  <para id="single-p1">
	    Here is the QML used to create the single-response example:
	  </para>
	  <code type="block"> <![CDATA[
	  <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>]]>
	  </code>   
	</section>
      </section>
      
      <section id="fullmultiple">
	<name>Multiple-response</name>
	<exercise id="multiple-response1">
	  <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>
	</exercise>

	<section id="multiple-code">
	  <name/>
	  <para id="multiple-p1">
	    Here is the QML used to create the multiple-response example:
	    
	  </para>
	  <code type="block"> <![CDATA[
	  <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>]]>
	  </code>   
	</section>
      </section>
      
      <section id="fullordered">
	<name>Ordered-response</name>
	<exercise id="full-1">
	  <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>
	</exercise>
	<section id="ordered-code">
	  <name/>
	  <para id="ordered-p1">
	    Here is the QML used to create the ordered-response example:
	    
	  </para>
	  <code type="block"> <![CDATA[
	  <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>]]>
	  </code>   
	</section>
      </section>

      <section id="fulltext">
	<name>Text-response</name>
	<exercise id="text-1">
	  <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>
	</exercise>

        <section id="text-code">
	  <name/>
	  <para id="text-p1">
	    Here is the QML used to create the text-response example:
	    
	  </para>
	  <code type="block"> <![CDATA[
	  <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>]]>
	  </code>   
	</section>
      </section>
      
    </content>
  </document>
