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


  <question>
    <text>
      <p>Consder the following segment of JavaScript code.</p>
<pre>
function sum(a,b) {
  return a + b;
}
</pre>
    <p>Which of the following terms accurately 
    describes this segment of code?</p>
    </text>

  <multipleChoice>
    <choice answer="true">function definition</choice>
    <choice>function call</choice>
    <choice>method</choice>
    <choice>property</choice>
    <choice>element</choice>
  </multipleChoice>
  
 </question>


  <question>
    <text>
      <p>Consder the following segment of JavaScript code.</p>
<pre>
function cToF(cTemp) { return cTemp * 1.8 + 32; }
</pre>
    <p>Which of the following terms accurately 
    describes this segment of code?</p>
    </text>

  <multipleChoice>
    <choice answer="true">function definition</choice>
    <choice>function call</choice>
    <choice>method</choice>
    <choice>property</choice>
    <choice>element</choice>
  </multipleChoice>
  
 </question>


  <question>
    <text>
      <p>Consder the following segment of JavaScript code.</p>
<pre>
function areaOfPizza(diameter) { 
   radius = diameter / 2;
   area = Math.PI * radius * radius;
   return area;
} // end function areaOfPizza
</pre>
    <p>Which of the following terms accurately 
    describes this segment of code?</p>
    </text>

  <multipleChoice>
    <choice answer="true">function definition</choice>
    <choice>function call</choice>
    <choice>method</choice>
    <choice>property</choice>
    <choice>element</choice>
  </multipleChoice>
  
 </question>

  <question>
    <text>
      <p>Consder the following segment of JavaScript code.</p>
<pre>
function areaOfPizza(diameter) { 
   radius = diameter / 2;
   area = Math.PI * radius * radius;
   return area;
} // end function areaOfPizza
</pre>
    <p>Which of the following terms accurately 
    describes the role of <code>diameter</code> as it appears
    on the first line of this code segment?</p>
    </text>

  <multipleChoice>
    <choice answer="true">formal parameter</choice>
    <choice>actual parameter</choice>
    <choice>method</choice>
    <choice>property</choice>
    <choice>element</choice>
  </multipleChoice>
  
 </question>

  <question>
    <text>
      <p>Consder the following segment of JavaScript code.</p>
<pre>
function areaOfPizza(diameter) { 
   radius = diameter / 2;
   area = Math.PI * radius * radius;
   return area;
} // end function areaOfPizza
</pre>
    <p>Which of the following terms accurately 
    describes the role of <code>radius = diameter / 2;</code> as it appears
    on the second line of this code segment?</p>
    </text>

  <multipleChoice>
    <choice>event handler</choice>
    <choice>property</choice>
    <choice>method</choice>
    <choice>function call</choice>
    <choice answer="true">assignment statement</choice>
  </multipleChoice>
  
 </question>

  <question>
    <text>
      <p>Consder the following segment of JavaScript code.</p>
<pre>
function areaOfPizza(diameter) { 
   radius = diameter / 2;
   area = Math.PI * radius * radius;
   return area;
} // end function areaOfPizza
</pre>
    <p>Which of the following terms accurately 
    describes the role of <code>PI</code> as it appears
    on the third line of this code segment?</p>
    </text>

  <multipleChoice>
    <choice answer="true">property of <code>Math</code> object</choice>
    <choice>method of <code>Math</code> object</choice>
    <choice>function call</choice>
    <choice>element</choice>
    <choice>attribute</choice>
  </multipleChoice>
  
 </question>


  <question>
    <text>
      <p>Consder the following segment of JavaScript code.</p>
<pre>
areaOfPizza(12);
</pre>
    <p>Which of the following terms accurately 
    describes this segment of code?</p>
    </text>

  <multipleChoice>
    <choice >function definition</choice>
    <choice answer="true">function call</choice>
    <choice>method</choice>
    <choice>property</choice>
    <choice>element</choice>
  </multipleChoice>
  
 </question>

  <question>
    <text>
      <p>Consder the following segment of JavaScript code.</p>
<pre>
sum(1,3);
</pre>
    <p>Which of the following terms accurately 
    describes this segment of code?</p>
    </text>

  <multipleChoice>
    <choice >function definition</choice>
    <choice answer="true">function call</choice>
    <choice>method</choice>
    <choice>property</choice>
    <choice>element</choice>
  </multipleChoice>
  
 </question>


  <question>
    <text>
      <p>Consder the following segment of JavaScript code.</p>
<pre>
areaOfPizza(12);
</pre>
    <p>Which of the following terms accurately 
    describes the <code>12</code>?</p>
    </text>

  <multipleChoice>
    <choice >formal parameter</choice>
    <choice answer="true">actual parameter</choice>
    <choice>method</choice>
    <choice>property</choice>
    <choice>element</choice>
  </multipleChoice>

 </question>

  <question>
    <text>
      <p>Consder the following segment of JavaScript code.</p>
<pre>
sum(1,3);
</pre>
    <p>Which of the following terms accurately 
    describes the <code>1</code> and the <code>3</code>?</p>
    </text>

  <multipleChoice>
    <choice >formal parameters</choice>
    <choice answer="true">actual parameters</choice>
    <choice>methods</choice>
    <choice>properties</choice>
    <choice>elements</choice>
  </multipleChoice>
  
 </question>



  <question>
    <text>
      <p>Consder the following segment of JavaScript code.</p>
<pre>
cToF(-10);
</pre>
    <p>Which of the following terms accurately 
    describes this segment of code?</p>
    </text>

  <multipleChoice>
    <choice >function definition</choice>
    <choice answer="true">function call</choice>
    <choice>method</choice>
    <choice>property</choice>
    <choice>element</choice>
  </multipleChoice>
  
 </question>



  <question>
    <text>
      <p>Consder the following segment of JavaScript code.</p>
<pre>
cToF(-10);
</pre>
    <p>Which of the following terms accurately 
    describes the <code>-10</code>?</p>
    </text>

  <multipleChoice>
    <choice >formal parameter</choice>
    <choice answer="true">actual parameter</choice>
    <choice>method</choice>
    <choice>property</choice>
    <choice>element</choice>
  </multipleChoice>

 </question>




</quiz>





