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

  <pickOneQuestion>


 <question>
 <text>
 <p>JavaScript is</p>
 </text>

  <multipleChoice shuffleChoices="false">
    <choice answer="true">a client side scripting language</choice>
    <choice>a server side scripting language</choice>
  </multipleChoice>
  
 </question>

 <question>
 <text>
 <p>PHP is</p>
 </text>

  <multipleChoice shuffleChoices="false">
    <choice>a client side scripting language</choice>
    <choice answer="true">a server side scripting language</choice>
  </multipleChoice>
  
 </question>


 <question>
 <text>
 <p>For web pages written in PHP, which of these is true? When you do a "view source" in the web browser:</p>
 </text>

  <multipleChoice shuffleChoices="false">
    <choice>you <em>can</em> see the PHP code</choice>
    <choice answer="true">you <em>cannot</em> see the PHP code</choice>
  </multipleChoice>
  
 </question>


 <question>
 <text>
 <p>For web pages written in JavaScript, which of these is true? When you do a "view source" in the web browser:</p>
 </text>

  <multipleChoice shuffleChoices="false">
    <choice answer="true">you <em>can</em> see the JavaScript code</choice>
    <choice>you <em>cannot</em> see the JavaScript code</choice>
  </multipleChoice>
  
 </question>

 <question>
 <text>
 <p>Which is a true statement about PHP?</p>
 </text>

  <multipleChoice>
    <choice answer="true">names of variables start with a dollar sign (e.g. <code>$numStudents</code>)</choice>
    <choice>names of functions start with a dollar sign, e.g. (<code>$areaOfCircle()</code>)</choice>
    <choice>names of variables end with a dollar sign (e.g. <code>numStudents$</code>)</choice>
    <choice>names of functions end with a dollar sign (e.g. <code>areaOfCircle$()</code>)</choice>


  </multipleChoice>
  
 </question>

 <question>
 <text>
 <p>Select the choice that correctly completes this statement about PHP: When placing PHP code in a file, either by itself, or together with HTML, segments of PHP code go inside a part of the file that:</p>
 </text>

  <multipleChoice>
   <choice answer="true">
         starts with <code><![CDATA[<?php ]]></code> 
         and ends with <code><![CDATA[?> ]]></code>
   </choice>
   <choice>starts with <code><![CDATA[<php>]]></code> 
         and ends with <code><![CDATA[</php>]]></code>
   </choice>
   <choice>
          starts with <code><![CDATA[<script type="text/php">]]></code>
        and ends with <code><![CDATA[</script>]]></code>
   </choice>
  </multipleChoice>
  
 </question>


 <question>
 <text>
 <p>Select the choice that correctly completes this statement about JavaScript: When placing JavaScript code inside an HTML file, segments of JavaScript code go inside a part of the file that:</p>
 </text>

  <multipleChoice>
   <choice>
         starts with <code><![CDATA[<?javascript ]]></code> 
         and ends with <code><![CDATA[?> ]]></code>
   </choice>
   <choice>starts with <code><![CDATA[<javascript>]]></code> 
         and ends with <code><![CDATA[</javascript>]]></code>
   </choice>
   <choice answer="true">
          starts with <code><![CDATA[<script type="text/javascript">]]></code>
        and ends with <code><![CDATA[</script>]]></code>
   </choice>
  </multipleChoice>
  
 </question>


 <question>
 <text><p>
   Which statement is true?</p>
 </text>

  <multipleChoice>
   <choice>
   You can define functions in JavaScript, but not in PHP.
   </choice>
   <choice>
   You can define functions in PHP, but not in JavaScript.
   </choice>
   <choice answer="true">
   You can define functions in both PHP and JavaScript.
   </choice>
  </multipleChoice>
  
 </question>

 
 <question>
 <text><p>Which of these languages runs in your local browser?</p>
 </text>

  <multipleChoice>
   <choice>PHP</choice>
   <choice answer="true">JavaScript</choice>
  </multipleChoice>
  
 </question>

 <question>
 <text><p>Is CSS a client side or server side technology?</p>
 </text>

  <multipleChoice>
   <choice>server side</choice>
   <choice answer="true">client side</choice>
  </multipleChoice>
  
 </question>

 <question>
 <text><p>Is HTML a client side or server side technology?</p>
 </text>

  <multipleChoice>
   <choice>server side</choice>
   <choice answer="true">client side</choice>
  </multipleChoice>
  
 </question>

 </pickOneQuestion>
</quiz>











