﻿<?xml version="1.0" encoding="utf-8"?>
<assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1  http://www.imsglobal.org/xsd/qti/qtiv2p1/imsqti_v2p1.xsd" identifier="fitb_exercise_20090" title="1229" adaptive="false" timeDependent="false">
  <!--RESPONSE DECLARATIONS-->
  <responseDeclaration identifier="RESPONSE_1" cardinality="single" baseType="string">
    <mapping defaultValue="0.0">
      <mapEntry mapKey="Ci si stanca se si lavora allo stesso modo per anni" mappedValue="1.0" caseSensitive="false" />
    </mapping>
  </responseDeclaration>
  <responseDeclaration identifier="RESPONSE_2" cardinality="single" baseType="string">
    <mapping defaultValue="0.0">
      <mapEntry mapKey="Se fa brutto tempo si preferisce restare a casa" mappedValue="1.0" caseSensitive="false" />
    </mapping>
  </responseDeclaration>
  <responseDeclaration identifier="RESPONSE_3" cardinality="single" baseType="string">
    <mapping defaultValue="0.0">
      <mapEntry mapKey="Se si va a piedi in centro si fa più in fretta" mappedValue="1.0" caseSensitive="false" />
    </mapping>
  </responseDeclaration>
  <responseDeclaration identifier="RESPONSE_4" cardinality="single" baseType="string">
    <mapping defaultValue="0.0">
      <mapEntry mapKey="Se si esce con Giulio ci si diverte sicuramente" mappedValue="1.0" caseSensitive="false" />
    </mapping>
  </responseDeclaration>
  <responseDeclaration identifier="RESPONSE_5" cardinality="single" baseType="string">
    <mapping defaultValue="0.0">
      <mapEntry mapKey="Se non ci si vuole annoiare si deve andare in quella discoteca" mappedValue="1.0" caseSensitive="false" />
    </mapping>
  </responseDeclaration>
  <!--OUTCOME DECLARATIONS-->
  <outcomeDeclaration identifier="NGAPS" cardinality="single" baseType="float">
    <defaultValue>
      <value>5</value>
    </defaultValue>
  </outcomeDeclaration>
  <outcomeDeclaration identifier="RIGHT" cardinality="single" baseType="float" />
  <outcomeDeclaration identifier="SCORE" cardinality="single" baseType="float" />
  <outcomeDeclaration identifier="MAXSCORE" cardinality="single" baseType="float">
    <defaultValue>
      <value>1</value>
    </defaultValue>
  </outcomeDeclaration>
  <outcomeDeclaration identifier="FEEDBACK" cardinality="single" baseType="identifier" />
  <!--ITEM BODY-->
  <itemBody>
    <div>
      <p>
        <strong>Esercizio: trasformare le seguenti frasi secondo il modello:</strong>
      </p>
      <p>
        <strong>a. Uno viaggia in aereo per arrivare prima.</strong>
      </p>
      <p>
        <strong>b. Si viaggia in aereo per arrivare prima.</strong>
      </p>
    </div>
    <div>
      <p>
        <strong>1a. Uno si stanca, se lavora allo stesso modo per anni.</strong>
      </p>
      <p>
        <strong>1b. <textEntryInteraction responseIdentifier="RESPONSE_1" expectedLength="51" />.</strong>
      </p>
      <p>
        <strong>2a. Se fa brutto tempo, uno preferisce restare a casa.</strong>
      </p>
      <p>
        <strong>2b. <textEntryInteraction responseIdentifier="RESPONSE_2" expectedLength="47" />.</strong>
      </p>
      <p>
        <strong>3a. Se uno va a piedi in centro, fa più in fretta.</strong>
      </p>
      <p>
        <strong>3b. <textEntryInteraction responseIdentifier="RESPONSE_3" expectedLength="46" />.</strong>
      </p>
      <p>
        <strong>4a. Se uno esce con Giulio, si diverte sicuramente.</strong>
      </p>
      <p>
        <strong>4b. <textEntryInteraction responseIdentifier="RESPONSE_4" expectedLength="47" />.</strong>
      </p>
      <p>
        <strong>5a. Se uno non vuole annoiarsi, deve andare in quella discoteca.</strong>
      </p>
      <p>
        <strong>5b. <textEntryInteraction responseIdentifier="RESPONSE_5" expectedLength="62" />.</strong>
      </p>
    </div>
  </itemBody>
  <!--RESPONSE PROCESSING-->
  <responseProcessing>
    <!-- RESPONSE_1 -->
    <responseCondition>
      <responseIf>
        <not>
          <isNull>
            <variable identifier="RESPONSE_1" />
          </isNull>
        </not>
        <setOutcomeValue identifier="RIGHT">
          <sum>
            <variable identifier="RIGHT" />
            <mapResponse identifier="RESPONSE_1" />
          </sum>
        </setOutcomeValue>
      </responseIf>
    </responseCondition>
    <!-- RESPONSE_2 -->
    <responseCondition>
      <responseIf>
        <not>
          <isNull>
            <variable identifier="RESPONSE_2" />
          </isNull>
        </not>
        <setOutcomeValue identifier="RIGHT">
          <sum>
            <variable identifier="RIGHT" />
            <mapResponse identifier="RESPONSE_2" />
          </sum>
        </setOutcomeValue>
      </responseIf>
    </responseCondition>
    <!-- RESPONSE_3 -->
    <responseCondition>
      <responseIf>
        <not>
          <isNull>
            <variable identifier="RESPONSE_3" />
          </isNull>
        </not>
        <setOutcomeValue identifier="RIGHT">
          <sum>
            <variable identifier="RIGHT" />
            <mapResponse identifier="RESPONSE_3" />
          </sum>
        </setOutcomeValue>
      </responseIf>
    </responseCondition>
    <!-- RESPONSE_4 -->
    <responseCondition>
      <responseIf>
        <not>
          <isNull>
            <variable identifier="RESPONSE_4" />
          </isNull>
        </not>
        <setOutcomeValue identifier="RIGHT">
          <sum>
            <variable identifier="RIGHT" />
            <mapResponse identifier="RESPONSE_4" />
          </sum>
        </setOutcomeValue>
      </responseIf>
    </responseCondition>
    <!-- RESPONSE_5 -->
    <responseCondition>
      <responseIf>
        <not>
          <isNull>
            <variable identifier="RESPONSE_5" />
          </isNull>
        </not>
        <setOutcomeValue identifier="RIGHT">
          <sum>
            <variable identifier="RIGHT" />
            <mapResponse identifier="RESPONSE_5" />
          </sum>
        </setOutcomeValue>
      </responseIf>
    </responseCondition>
    <!-- CALCULATE SCORE -->
    <setOutcomeValue identifier="SCORE">
      <divide>
        <variable identifier="RIGHT" />
        <variable identifier="NGAPS" />
      </divide>
    </setOutcomeValue>
    <!-- FEEDBACK -->
    <responseCondition>
      <responseIf>
        <equal>
          <variable identifier="SCORE" />
          <variable identifier="MAXSCORE" />
        </equal>
        <setOutcomeValue identifier="FEEDBACK">
          <baseValue baseType="identifier">correct</baseValue>
        </setOutcomeValue>
      </responseIf>
      <responseElse>
        <setOutcomeValue identifier="FEEDBACK">
          <baseValue baseType="identifier">incorrect</baseValue>
        </setOutcomeValue>
      </responseElse>
    </responseCondition>
  </responseProcessing>
  <!--MODAL FEEDBACK-->
  <modalFeedback identifier="correct" outcomeIdentifier="FEEDBACK" showHide="show" title="Correct">
    <div>All questions are answered correctly!</div>
  </modalFeedback>
  <modalFeedback identifier="incorrect" outcomeIdentifier="FEEDBACK" showHide="show" title="Incorrect">
    <div>
      <p>Not all questions are answered correctly!!</p>
      <p>Try again.</p>
    </div>
  </modalFeedback>
</assessmentItem>