Quiz Back to schedule page
Prev  Next
Quiz Number 11 Answers

SWE 432, Fall 2008
November 17
 

  1. Answer each of the following with either a T=true, F=false:
    1.   F   A problem with JSPs is that they have to be compiled every time they're used.
    2.   T   JSPs can use Java Beans to store and retrieve data.
    3.   T   JSPs can interact with Java servlets.
    4.   F   JSPs should include as many Java statements as possible.
    5.   F   JSPs are compiled directly to .class files.
    6.   F   The command <jsp:forward page="X.jsp"> will cause "X.jsp" to be loaded into the current page at the location of the command.
  2. Choose the correct scope from [ Page | Request | Session | Application ] to complete each of the following statements.
    1. Data objects are shared with other requests from the same client and browser in a time period with scope                          .
      session
    2. Data objects are shared with software components that the recieving JSP uses or calls before sending back a response with scope                          .
      request
    3. Data objects are shared within all sessions in the servlet context with scope                          .
      application
    4. Data objects are shared within the same web page with scope                          .
      page