<?xml version="1.0" encoding="UTF-8"?>
<ocil xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.mitre.org/ocil/1.0 ocil.xsd" xmlns="http://www.mitre.org/ocil/1.0">
  <generator>
    <schema_version>1.0</schema_version>
    <timestamp>2008-04-03T12:06:31</timestamp>
    <author organization="MITRE">Cleo Casipe</author>
  </generator>
  <document>
    <title>General MITRE OCIL Example</title>
    <description>A sample file for OCIL</description>
    <description>This file provides examples of multiple (contrived) constructions using the OCIL
      schema.</description>
    <notice>Has been updated to comply with version 1.0 of the schema</notice>
  </document>

  <questionnaire id="ocil:mitre.org:questionnaire:1">
    <title>Backseat Driver questionnaire</title>
    <actions negate="false" operation="AND">
      <test_action_ref priority="HIGH" negate="false">ocil:mitre.org:testaction:1</test_action_ref>
    </actions>
  </questionnaire>

  <questionnaire id="ocil:mitre.org:questionnaire:2">
    <title>Multiple Choice Questions</title>
    <actions negate="false" operation="AND">
      <test_action_ref priority="HIGH" negate="false">ocil:mitre.org:testaction:16</test_action_ref>
      <test_action_ref priority="HIGH" negate="false">ocil:mitre.org:testaction:18</test_action_ref>
      <test_action_ref priority="HIGH" negate="false">ocil:mitre.org:testaction:20</test_action_ref>
    </actions>
  </questionnaire>

  <questionnaire id="ocil:mitre.org:questionnaire:3">
    <title>Numeric Questions</title>
    <actions negate="false" operation="AND">
      <test_action_ref priority="HIGH" negate="false">ocil:mitre.org:testaction:22</test_action_ref>
    </actions>
  </questionnaire>

  <questionnaire id="ocil:mitre.org:questionnaire:4">
    <title>String Questions</title>
    <actions negate="false" operation="AND">
      <test_action_ref priority="HIGH" negate="false">ocil:mitre.org:testaction:23</test_action_ref>
    </actions>
  </questionnaire>


  <boolean_question_test_action question_ref="ocil:mitre.org:question:1"
    id="ocil:mitre.org:testaction:1">
    <when_true>
      <result>FAIL</result>
    </when_true>
    <when_false>
      <test_action_ref negate="false">ocil:mitre.org:testaction:2</test_action_ref>
    </when_false>
  </boolean_question_test_action>
  <boolean_question_test_action question_ref="ocil:mitre.org:question:2"
    id="ocil:mitre.org:testaction:2">
    <when_true>
      <result>FAIL</result>
    </when_true>
    <when_false>
      <test_action_ref negate="false">ocil:mitre.org:testaction:3</test_action_ref>
    </when_false>
  </boolean_question_test_action>
  <boolean_question_test_action question_ref="ocil:mitre.org:question:3"
    id="ocil:mitre.org:testaction:3">
    <when_true>
      <test_action_ref negate="false">ocil:mitre.org:testaction:4</test_action_ref>
    </when_true>
    <when_false>
      <result>FAIL</result>
    </when_false>
  </boolean_question_test_action>
  <boolean_question_test_action question_ref="ocil:mitre.org:question:4"
    id="ocil:mitre.org:testaction:4">
    <when_true>
      <result>FAIL</result>
    </when_true>
    <when_false>
      <test_action_ref negate="false">ocil:mitre.org:testaction:5</test_action_ref>
    </when_false>
  </boolean_question_test_action>
  <boolean_question_test_action question_ref="ocil:mitre.org:question:5"
    id="ocil:mitre.org:testaction:5">
    <when_true>
      <result>FAIL</result>
    </when_true>
    <when_false>
      <test_action_ref negate="false">ocil:mitre.org:testaction:6</test_action_ref>
    </when_false>
  </boolean_question_test_action>
  <boolean_question_test_action question_ref="ocil:mitre.org:question:6"
    id="ocil:mitre.org:testaction:6">
    <when_true>
      <test_action_ref negate="false">ocil:mitre.org:testaction:7</test_action_ref>
    </when_true>
    <when_false>
      <result>FAIL</result>
    </when_false>
  </boolean_question_test_action>
  <boolean_question_test_action question_ref="ocil:mitre.org:question:7"
    id="ocil:mitre.org:testaction:7">
    <when_true>
      <test_action_ref negate="false">ocil:mitre.org:testaction:8</test_action_ref>
    </when_true>
    <when_false>
      <result>FAIL</result>
    </when_false>
  </boolean_question_test_action>
  <boolean_question_test_action question_ref="ocil:mitre.org:question:8"
    id="ocil:mitre.org:testaction:8">
    <when_true>
      <result>FAIL</result>
    </when_true>
    <when_false>
      <test_action_ref negate="false">ocil:mitre.org:testaction:9</test_action_ref>
    </when_false>
  </boolean_question_test_action>
  <boolean_question_test_action question_ref="ocil:mitre.org:question:9"
    id="ocil:mitre.org:testaction:9">
    <when_true>
      <test_action_ref negate="false">ocil:mitre.org:testaction:10</test_action_ref>
    </when_true>
    <when_false>
      <result>FAIL</result>
    </when_false>
  </boolean_question_test_action>
  <boolean_question_test_action question_ref="ocil:mitre.org:question:10"
    id="ocil:mitre.org:testaction:10">
    <when_true>
      <test_action_ref negate="false">ocil:mitre.org:testaction:11</test_action_ref>
    </when_true>
    <when_false>
      <result>FAIL</result>
    </when_false>
  </boolean_question_test_action>
  <boolean_question_test_action question_ref="ocil:mitre.org:question:11"
    id="ocil:mitre.org:testaction:11">
    <when_true>
      <test_action_ref negate="false">ocil:mitre.org:testaction:12</test_action_ref>
    </when_true>
    <when_false>
      <result>FAIL</result>
    </when_false>
  </boolean_question_test_action>
  <boolean_question_test_action question_ref="ocil:mitre.org:question:12"
    id="ocil:mitre.org:testaction:12">
    <when_true>
      <result>FAIL</result>
    </when_true>
    <when_false>
      <test_action_ref negate="false">ocil:mitre.org:testaction:13</test_action_ref>
    </when_false>
  </boolean_question_test_action>
  <boolean_question_test_action question_ref="ocil:mitre.org:question:13"
    id="ocil:mitre.org:testaction:13">
    <when_true>
      <result>FAIL</result>
    </when_true>
    <when_false>
      <test_action_ref negate="false">ocil:mitre.org:testaction:14</test_action_ref>
    </when_false>
  </boolean_question_test_action>
  <boolean_question_test_action question_ref="ocil:mitre.org:question:14"
    id="ocil:mitre.org:testaction:14">
    <when_true>
      <test_action_ref negate="false">ocil:mitre.org:testaction:15</test_action_ref>
    </when_true>
    <when_false>
      <result>FAIL</result>
    </when_false>
  </boolean_question_test_action>
  <boolean_question_test_action question_ref="ocil:mitre.org:question:15"
    id="ocil:mitre.org:testaction:15">
    <when_true>
      <result>FAIL</result>
    </when_true>
    <when_false>
      <result>PASS</result>
    </when_false>
  </boolean_question_test_action>
  <choice_question_test_action question_ref="ocil:mitre.org:question:16"
    id="ocil:mitre.org:testaction:16">
    <when_choice>
      <test_action_ref>ocil:mitre.org:testaction:17</test_action_ref>
      <choice_ref>ocil:mitre.org:choice:1</choice_ref>
    </when_choice>
    <when_choice>
      <result>FAIL</result>
      <choice_ref>ocil:mitre.org:choice:2</choice_ref>
      <choice_ref>ocil:mitre.org:choice:3</choice_ref>
      <choice_ref>ocil:mitre.org:choice:4</choice_ref>
    </when_choice>
  </choice_question_test_action>
  <choice_question_test_action question_ref="ocil:mitre.org:question:17"
    id="ocil:mitre.org:testaction:17">
    <when_choice>
      <result>FAIL</result>
      <choice_ref>ocil:mitre.org:choice:5</choice_ref>
      <choice_ref>ocil:mitre.org:choice:6</choice_ref>
      <choice_ref>ocil:mitre.org:choice:7</choice_ref>
    </when_choice>
    <when_choice>
      <result>PASS</result>
      <choice_ref>ocil:mitre.org:choice:8</choice_ref>
    </when_choice>
  </choice_question_test_action>
  <choice_question_test_action question_ref="ocil:mitre.org:question:18"
    id="ocil:mitre.org:testaction:18">
    <when_choice>
      <result>FAIL</result>
      <choice_ref>ocil:mitre.org:choice:9</choice_ref>
      <choice_ref>ocil:mitre.org:choice:10</choice_ref>
      <choice_ref>ocil:mitre.org:choice:12</choice_ref>
    </when_choice>
    <when_choice>
      <test_action_ref>ocil:mitre.org:testaction:19</test_action_ref>
      <choice_ref>ocil:mitre.org:choice:11</choice_ref>
    </when_choice>
  </choice_question_test_action>
  <choice_question_test_action question_ref="ocil:mitre.org:question:19"
    id="ocil:mitre.org:testaction:19">
    <when_choice>
      <result>FAIL</result>
      <choice_ref>ocil:mitre.org:choice:13</choice_ref>
      <choice_ref>ocil:mitre.org:choice:14</choice_ref>
      <choice_ref>ocil:mitre.org:choice:16</choice_ref>
    </when_choice>
    <when_choice>
      <result>PASS</result>
      <choice_ref>ocil:mitre.org:choice:15</choice_ref>
    </when_choice>
  </choice_question_test_action>
  <choice_question_test_action question_ref="ocil:mitre.org:question:20"
    id="ocil:mitre.org:testaction:20">
    <when_choice>
      <test_action_ref>ocil:mitre.org:testaction:21</test_action_ref>
      <choice_ref>ocil:mitre.org:choice:17</choice_ref>
    </when_choice>
    <when_choice>
      <result>FAIL</result>
      <choice_ref>ocil:mitre.org:choice:18</choice_ref>
      <choice_ref>ocil:mitre.org:choice:19</choice_ref>
      <choice_ref>ocil:mitre.org:choice:20</choice_ref>
      <choice_ref>ocil:mitre.org:choice:21</choice_ref>
    </when_choice>
  </choice_question_test_action>
  <choice_question_test_action question_ref="ocil:mitre.org:question:21"
    id="ocil:mitre.org:testaction:21">
    <when_choice>
      <result>PASS</result>
      <choice_ref>ocil:mitre.org:choice:22</choice_ref>
    </when_choice>
    <when_choice>
      <result>FAIL</result>
      <choice_ref>ocil:mitre.org:choice:23</choice_ref>
      <choice_ref>ocil:mitre.org:choice:24</choice_ref>
      <choice_ref>ocil:mitre.org:choice:25</choice_ref>
    </when_choice>
  </choice_question_test_action>
  <numeric_question_test_action question_ref="ocil:mitre.org:question:22"
    id="ocil:mitre.org:testaction:22">
    <when_equals>
      <result>PASS</result>
      <value>5</value>
    </when_equals>
    <when_range>
      <result>FAIL</result>
      <range>
        <min>0</min>
        <max>10</max>
      </range>
    </when_range>
    <when_range>
      <result>FAIL</result>
      <range>
        <min>101</min>
      </range>
    </when_range>

    <when_range>
      <result>PASS</result>
      <range>
        <min>11</min>
        <max>100</max>
      </range>
    </when_range>
  </numeric_question_test_action>
  <string_question_test_action question_ref="ocil:mitre.org:question:23"
    id="ocil:mitre.org:testaction:23">
    <when_pattern>
      <result>PASS</result>
      <pattern>pattern 1</pattern>
    </when_pattern>
    <when_pattern>
      <result>FAIL</result>
      <pattern>pattern 2</pattern>
    </when_pattern>
  </string_question_test_action>

  <boolean_question id="ocil:mitre.org:question:1" model="MODEL_TRUE_FALSE">
    <question_text>It is safe to wear your seatbelt behind your back or under your arm when riding a
      vehicle.</question_text>
  </boolean_question>
  <boolean_question id="ocil:mitre.org:question:2" model="MODEL_TRUE_FALSE">
    <question_text>Being a backseat driver means it is okay to be noisy or distracting to the driver
      as long as you are giving them safety tips.</question_text>
  </boolean_question>
  <boolean_question id="ocil:mitre.org:question:3" model="MODEL_TRUE_FALSE">
    <question_text>When riding the bus, it is important to stay in your seat for the whole trip.
      Even when the bus is not moving.</question_text>
  </boolean_question>
  <boolean_question id="ocil:mitre.org:question:4" model="MODEL_TRUE_FALSE">
    <question_text>It is safe to walk behind a bus if you think the bus driver sees
    you.</question_text>
  </boolean_question>
  <boolean_question id="ocil:mitre.org:question:5" model="MODEL_TRUE_FALSE">
    <question_text>When driving through a work zone, it is legal to drive faster than the posted
      speed limit as long as there are no workers in the zone.</question_text>
  </boolean_question>
  <boolean_question id="ocil:mitre.org:question:6" model="MODEL_TRUE_FALSE">
    <question_text>the best response for a "Work Zone Ahewad" sign is to brake and be prepared to
      stop.</question_text>
  </boolean_question>
  <boolean_question id="ocil:mitre.org:question:7" model="MODEL_TRUE_FALSE">
    <question_text>Kids can wear a seatbelt once they are 80 pounds or 58 inches
    tall.</question_text>
  </boolean_question>
  <boolean_question id="ocil:mitre.org:question:8" model="MODEL_TRUE_FALSE">
    <question_text>It is okay to read a map or directions while driving because driver inattention
      rarely causes vehicle crashes.</question_text>
  </boolean_question>
  <boolean_question id="ocil:mitre.org:question:9" model="MODEL_TRUE_FALSE">
    <question_text>In a work zone, orange is the color of the signs, barrels, cones, and worker
      clothing.</question_text>
  </boolean_question>
  <boolean_question id="ocil:mitre.org:question:10" model="MODEL_TRUE_FALSE">
    <question_text>About 36,000 crashes occur in Maine each year, killing 200 people and injuring
      15,000!</question_text>
  </boolean_question>
  <boolean_question id="ocil:mitre.org:question:11" model="MODEL_TRUE_FALSE">
    <question_text>One way you can be a helpful Backseat Driver is to offer to be in charge of
      changing a CD or answering the cell phone. That way the driver can stay focused on the
    road.</question_text>
  </boolean_question>
  <boolean_question id="ocil:mitre.org:question:12" model="MODEL_TRUE_FALSE">
    <question_text>It is safe to drive right behind or to pass a plow or maintenance
    vehicle.</question_text>
  </boolean_question>
  <boolean_question id="ocil:mitre.org:question:13" model="MODEL_TRUE_FALSE">
    <question_text>Hydroplaning is a name for the motion of windshield wipers on a vehicle's
      windshield.</question_text>
  </boolean_question>
  <boolean_question id="ocil:mitre.org:question:14" model="MODEL_TRUE_FALSE">
    <question_text>In Maine, it's the law to have our headlights on when your wipers are
    on.</question_text>
  </boolean_question>
  <boolean_question id="ocil:mitre.org:question:15" model="MODEL_TRUE_FALSE">
    <question_text>In the United States, drivers are becoming safer overall. For instance, the
      numbers of deaths due to aggresive driving has gone down since the early
    1990s.</question_text>
  </boolean_question>
  <choice_question id="ocil:mitre.org:question:16">
    <question_text>Which of the following is one of the matjor approaches to psychology?</question_text>
    <choice id="ocil:mitre.org:choice:1">Psychoanalysis</choice>
    <choice_group_ref>ocil:mitre.org:choicegroup:1</choice_group_ref>
    <choice id="ocil:mitre.org:choice:2">Structuralism</choice>
    <choice id="ocil:mitre.org:choice:3">Psychiatry</choice>
    <choice_group_ref>ocil:mitre.org:choicegroup:2</choice_group_ref>
    <choice id="ocil:mitre.org:choice:4">New Age Movement</choice>
  </choice_question>
  <choice_question default_answer_ref="ocil:mitre.org:choice:5" id="ocil:mitre.org:question:17">
    <question_text>Sensation, perception, and memory are of particular interest to which group of
      contemporary psychologists?</question_text>
    <choice id="ocil:mitre.org:choice:5">Psychoanalysts</choice>
    <choice id="ocil:mitre.org:choice:6">Behaviorists</choice>
    <choice id="ocil:mitre.org:choice:7">Humanistic Psychologists</choice>
    <choice id="ocil:mitre.org:choice:8">Cognitive Psychologists</choice>
  </choice_question>
  <choice_question default_answer_ref="ocil:mitre.org:choice:9" id="ocil:mitre.org:question:18">
    <question_text>Using operational definitions answers which question?</question_text>
    <choice id="ocil:mitre.org:choice:9">Who</choice>
    <choice id="ocil:mitre.org:choice:10">Why</choice>
    <choice id="ocil:mitre.org:choice:11">What</choice>
    <choice id="ocil:mitre.org:choice:12">How</choice>
  </choice_question>
  <choice_question default_answer_ref="ocil:mitre.org:choice:13" id="ocil:mitre.org:question:19">
    <question_text>Why did John B. Watson reject the structuralist study of mental events?</question_text>
    <choice id="ocil:mitre.org:choice:13">He believed the structuralism relied too heavily on
      scientific methods</choice>
    <choice id="ocil:mitre.org:choice:14">He rejected the concept that psychologists should study
      observable behavior.</choice>
    <choice id="ocil:mitre.org:choice:15">He believed that scientists should focus on what is
      objectively observable.</choice>
    <choice id="ocil:mitre.org:choice:16">He actually embraced both structuralism and
    functionalism.</choice>
  </choice_question>
  <choice_question default_answer_ref="ocil:mitre.org:choice:17" id="ocil:mitre.org:question:20">
    <question_text>Explaining a student's poor performance on an exam to the unfair difficulty level
      of the questions refers to what kind of cause?</question_text>
    <choice id="ocil:mitre.org:choice:17">Immediate, external cause</choice>
    <choice id="ocil:mitre.org:choice:18">Immediate, internal cause</choice>
    <choice id="ocil:mitre.org:choice:19">Development cause</choice>
    <choice id="ocil:mitre.org:choice:20">Necessary and sufficient cause</choice>
    <choice id="ocil:mitre.org:choice:21">Weak cause</choice>
  </choice_question>
  <choice_question default_answer_ref="ocil:mitre.org:choice:22" id="ocil:mitre.org:question:21">
    <question_text>A researcher shows erotic films to one group of subjects and violent films to
      another group of subjects. The researcher then assesses the cooperativeness of each group of
      subjects. The independent variable in this study is</question_text>
    <choice id="ocil:mitre.org:choice:22">The level of cooperativeness</choice>
    <choice id="ocil:mitre.org:choice:23">The type of film seen</choice>
    <choice id="ocil:mitre.org:choice:24">The level of sexual arousal in subjects</choice>
    <choice id="ocil:mitre.org:choice:25">The level of agressiveness in subjects</choice>
  </choice_question>
  <numeric_question id="ocil:mitre.org:question:22">
    <question_text>How many servers do you have?</question_text>
  </numeric_question>
  <string_question id="ocil:mitre.org:question:23">
    <question_text>What is your role?</question_text>
  </string_question>

  <choice_group id="ocil:mitre.org:choicegroup:1">
    <choice id="ocil:mitre.org:choice:26">Door number 1</choice>
    <choice id="ocil:mitre.org:choice:27">Door number 2</choice>
    <choice id="ocil:mitre.org:choice:28">Door number 3</choice>
  </choice_group>

  <choice_group id="ocil:mitre.org:choicegroup:2">
    <choice id="ocil:mitre.org:choice:29">Door number 4</choice>
    <choice id="ocil:mitre.org:choice:30">Door number 5</choice>
    <choice id="ocil:mitre.org:choice:31">Door number 6</choice>
  </choice_group>

</ocil>
