Skip to main content

Select & Order 1

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

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

  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

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

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

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

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

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

<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">
    <feedback>Correct. You only need steps B, C and D.

  <sequence correct="0">
    <feedback>You can not do step C unless you first do step B.</feedback>

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