Quiz Back to schedule page
Prev  Next
Quiz Number 9 Answers

SWE 432, Fall 2008
November 3
 

  1. What servlet method does the servlet container call when a request is made to the servlet?
    service(), which calls doGet(), doPost(), or another "do" method
  2. If the following Java statement appears in a servlet, who will own the file when it is created?
    FileWriter outfile = new FileWriter ("/home/offutt/Data/info-file");
    Tomcat – or at least, the user who last restarted Tomcat
  3. Which of the following issues should we check for during deployment testing? Answer with either a T=true, F=false):
    1.   T   We should test it just as real users would access it.
    2.   F   Correctness of the algorithms.
    3.   T   File names and path names.
    4.   T   Upper case dependencises.
    5.   F   Whether the correct variable names are used or not.
    6.   T   Versions of compiler and runtime systems.