CIT597 Quiz 5
Fall, 2002
Name_________________________________________
  1. What is the name of the class whose objects describe classes? __________________________

  2. What is the name of the most popular Web server? __________________________

  3. HTTP requests go by default to which port number? __________________________

  4. Why are servlets more efficient than CGI scripts?


  5. Which can hold more information, a GET or a POST request? __________________________

  6. In general terms (don't write any code), how does the doPost method create and return a response to the request?





  7. Name one difference between an Enumeration and an Iterator.


  8. If s is a String containing only digits, and n is an int variable, write one line of code to convert s to an int and assign the result to n.


  9. What do each of the following acronyms stand for?

    1. CGI

    2. HTTP

  10. List the three parts of an HTTP message.

    1.  

    2.  

    3.  

  11. Where are cookies created? __________________________

    Where are they stored? __________________________

    What program can put a cookie in an email? __________________________

    Cookies are not a security threat, but they can be a(n) __________________________ threat.

  12. True or false:

    _____ Given any object, a Java program can determine what messages it can respond to.

    _____ A Java array may have zero length.

    _____ A cookie can maintain information longer than a single session.

    _____ The Session Tracking API uses cookies.