# Connexions

You are here: Home » Content » QML 1.0 examples

### Recently Viewed

This feature requires Javascript to be enabled.

# QML 1.0 examples

Module by: Elizabeth Bartmess, Connexions. E-mail the authors

Summary: Examples for Questions Markup Language 1.0.

## Single-response

### Problem 1

Are bananas a fruit or a vegetable?
A fruit.
A vegetable.
Bananas grow on trees.
Fruits grow on trees.

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:response>A fruit.</q:response>
<q:feedback>Correct!</q:feedback>

<q:response>A vegetable.</q:response>
<q:feedback>Incorrect.</q:feedback>

<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:item>


## Multiple-response

### Problem 2

Bananas are (pick two):
A fruit.
A vegetable.
Yellow.
Bananas grow on trees.
Bananas are the same color as lemons.

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:response>A fruit.</q:response>
<q:feedback>Yes, bananas are a fruit.</q:feedback>

<q:response>A vegetable.</q:response>
<q:feedback>Bananas are not a vegetable.</q:feedback>

<q:response>Yellow.</q:response>
<q:feedback>Yes, bananas are yellow.</q:feedback>

<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:item>


## Ordered-response

### Problem 3

In order to boil water, you need to do the following (please select in the correct order):
Put the pot on the stove.
Put water in the pot.
Wait until you see bubbles in the water.
The pot won't boil till there's water in it.

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:response>Put the pot on the stove.</q:response>
<q:feedback>You put the pot on the stove second.</q:feedback>

<q:response>Put water in the pot.</q:response>
<q:feedback>You put the water in the pot first.</q:feedback>

<q:response>Wait until you see bubbles in the water.</q:response>
<q:feedback>You wait for the bubbles third.</q:feedback>

<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:item>


## Text-response

### Problem 4

What are some common tests of executive function?
Think about square states and towers.

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:feedback correct="no">Incorrect.</q:feedback>
<q:feedback correct="yes">Correct.</q:feedback>

<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>


## Content actions

PDF | EPUB (?)

### What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

#### Definition of a lens

##### Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

##### What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

##### Who can create a lens?

Any individual member, a community, or a respected organization.

##### What are tags?

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks