.. role:: xml(code)
:language: xml
.. _multipleChoice:
multipleChoice
==============
.. code-block:: xml
...
Multiple choice questions contains different alternatives where one or more can
be correct. They are answered by marking the correct alternatives and then
submitting. The content of the alternatives can be text, math or elements such
as figures.
.. code-block:: xml
Pick the correct alternatives below.
The first choice
The second choice
The third choice
The fourth choice
The following tags can be used inside a **multipleChoice** block.
.. only:: latex
.. tabularcolumns:: |p{0.15\linewidth}|p{0.40\linewidth}|p{0.35\linewidth}|
.. rst-class:: tight-table
.. list-table::
:header-rows: 1
:widths: 20 10 70
* - Tag
- Attributes
- Description
* - ````
-
- Question text.
* - ````
- ``key`` [string]
- unique id (within question)
``correct`` ["true"]
- marks this alternative as correct.
- An alternative for the answer.
* - ````
-
- Shows a hint if the student answers incorrectly.
* - ````
-
- Specifies how many tries a student can make per duration of
time. The time is specified as ``number/unit`` where unit is
``s`` (second) or ``h`` (hour). For example ``3/h``
permits three tries per hour. See `rates
`_
for the detailed syntax description.
Examples
--------
Basic (with math)
^^^^^^^^^^^^^^^^^^
.. code-block:: xml
How many people live of planet earth?
$ 9 \times 10^9 $
$ 9\times 10^{10} $
$ 9\times 10^{11} $