Skip to main content

Select & Order 1

<?xml version="1.0" encoding="UTF-8"?>
<question type="PATTERN" duplicates="0">

  <text>
    <p>This select &amp;amp; order question allows each item to be used only once and has one target box. It also uses the hovertip module to show tooltips.</p>
    <p>Select and order the needed steps. This example question contains only one target box.</p>
  </text>

  <!--
  Descriptions are displayed when the user selects an option.
  -->
  <option identifier="a">
    <choice>Step A.</choice>
   
    <description name="a">
      <b>Step A:</b><br />
      A description of step A
    </description>
  </option>

  <option identifier="b">
    <choice>Step B.</choice>
  </option>

  <option identifier="c">
    <choice>Step C.</choice>
    <description name="c">
      <b>Step C:</b><br />
      A description of step C
    </description>
  </option>

  <option identifier="d">
    <choice>Step D.</choice>
    <description name="d">
      <b>Step D:</b><br />
      A description of step D
    </description>
  </option>

  <option identifier="e">
    <choice>Step E.</choice>
    <description name="e">
      <b>Step E:</b><br />
      A description of step E
    </description>
  </option>

  <option identifier="f">
    <choice>Step F.</choice>
    <description name="f">
      <b>Step F:</b><br />
      A description of step F
    </description>
  </option>

<hint mintries="1">You need more than one step.</hint>
<hint mintries="2" maxtries="2">You only need three steps.</hint>
<hint mintries="3">You need steps BCD.</hint>

  <!--
    The "answer" is a string with the names of the selected options.
    the pattern is a regular expression that is matched against this answer.
  -->
  <sequence correct="1">
    <pattern>^bcd$</pattern>
    <feedback>Correct. You only need steps B, C and D.
    </feedback>
  </sequence>

  <sequence correct="0">
    <pattern>^[^b]*c.*$</pattern>
    <feedback>You can not do step C unless you first do step B.</feedback>
  </sequence>

  <sequence correct="0">
    <pattern>.*</pattern>
    <feedback mintries="1">Nope, that't not correct. Try again.</feedback>
  </sequence>

</question>