Answers Back to schedule page
Prev  Next
Quiz Number 10

SWE 432, Fall 2008
November 10
 

  1. Why do web applications need to use "cookies"? (your answer should be as specific and short as possible.)


  2. For each question, write the most appropriate answer.
    1. Session tracking refers to:
      A. Keeping user state B. Logging which pages are accessed
      C. Checking for multiple page
      accesses by a user
      D. Monitoring for security violations

    2. Session tracking is done by:
      A. Cookies B. Hidden form fields
      C. Servlet API classes D. All of A, B, and C

    3. On the web, cookies are:
      A. Relational databases B. Simple strings
      C. Configuration files for the OS D. Flour and sugar and flavorings

    4. HttpSession stores session information in:
      A. The client's file system B. The server's file system
      C. A cookie D. A session object in memory

  3. Answer each of the following with either a T=true, F=false):
    1.      Servlet methods are synchronized.
    2.      We cannot directly put primitive type variables into the session object.
    3.      Two browsers using the same web app from the same computer will share the same session.


  4. For the URI "http://www.myapps.com:8080/buymore/beer?flavor:Tsingtao", write the:
    1. scheme:
    2. domain name:
    3. port:
    4. path:
    5. parameters: