<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE quiz SYSTEM "ttxml.dtd">
<quiz>

<enterSeed />

<shuffle>

  <question>
    <text>
      <p>Consder the following segment of JavaScript code.</p>
<pre><![CDATA[
for (var i=1; i<3; i++)
  print (i);
print("done");

]]></pre>
    <p>Which of the following will be the output?</p>
</text>

  <multipleChoice>
    <choice answer="true"><pre><![CDATA[
1
2
done
]]></pre></choice>

    <choice><pre><![CDATA[
1
2
3
done
]]></pre></choice>

    <choice><pre><![CDATA[
1
3
done
]]></pre></choice>

    <choice><pre><![CDATA[
1
done
]]></pre></choice>

    <choice><pre><![CDATA[
3
done
]]></pre></choice>
  </multipleChoice>
  
</question>


  <question>
    <text>
      <p>Consder the following segment of JavaScript code.</p>
<pre><![CDATA[
for (var i=4; i>1; i--)
  print (i);
print("done");

]]></pre>
    <p>Which of the following will be the output?</p>
</text>

  <multipleChoice>
    <choice answer="true"><pre><![CDATA[
4
3
2
done
]]></pre></choice>

    <choice><pre><![CDATA[
4
3
2
1
done
]]></pre></choice>
    <choice><pre><![CDATA[
4
1
done
]]></pre></choice>
    <choice><pre><![CDATA[
4
done
]]></pre></choice>
    <choice><pre><![CDATA[
1
done
]]></pre></choice>
  </multipleChoice>
  
 </question>

</shuffle>
<shuffle>


  <question>
    <text>
      <p>Consder the following segment of JavaScript code.</p>
<pre><![CDATA[
for (var i=1; i<5; i+=2)
  print (i);
print("done");

]]></pre>
    <p>Which of the following will be the output?</p>
</text>

  <multipleChoice>
    <choice answer="true"><pre><![CDATA[
1
3
done
]]></pre></choice>

    <choice><pre><![CDATA[
1
2
3
4
5
done
]]></pre></choice>
    <choice><pre><![CDATA[
1
2
4
done
]]></pre></choice>
    <choice><pre><![CDATA[
1
5
2
done
]]></pre></choice>
    <choice><pre><![CDATA[
3
done
]]></pre></choice>
  </multipleChoice>
  
 </question>



  <question>
    <text>
      <p>Consder the following segment of JavaScript code.</p>
<pre><![CDATA[
output=""
for (var i=0; i<=2; i++)
  output += (i + " ");
print(output);
print("done");
]]></pre>
    <p>Which of the following will be the output?</p>
</text>

  <multipleChoice>
    <choice answer="true"><pre><![CDATA[
0 1 2
done
]]></pre></choice>

    <choice><pre><![CDATA[
0
1
2
done
]]></pre></choice>
    <choice><pre><![CDATA[
0 1
done
]]></pre></choice>
    <choice><pre><![CDATA[
0
2
done
]]></pre></choice>
    <choice><pre><![CDATA[
0 2
done
]]></pre></choice>
  </multipleChoice>
  
 </question>


</shuffle>

</quiz>





