Java Programming, 3rd Edition Chapter 12 Book Work / Page 1 of 2

Multiple Choice Instructions: Write the letter of the correct response on your paper.

  1. A ______Web page is a Web page that is created as needed and usually customized upon each use.

a. static

b. custom
c. flexible
d. dynamic

  1. JSP files are Web pages with one or more sections of Java code, called a(n) ______embedded within the HTML.

a. JavaLet

b. Java let
c. scriptlet

d. ScriptLet

  1. Which of the following indicates the beginning and end of a Web document?

a. <beg> </end>
b. <html> </html>
c. <start> </finish>

d. <go> </stop>

  1. Which of the following indicates the beginning and end of a section of bold text?

a. <bold> </bold>
b. <fontbold> </fontbold>
c. <b> </b>

d. <bol> </bol>

  1. The ______method is the default HTTP method for sending data.

a. Get
b. Send
c. Grab
d. Action

  1. A(n) ______is a list of methods, called leading, to the exception and typically is seen when an exception is not handled.

a. stack trace
b. exception list
c. execution list
d. method trace

  1. A(n) ______models the user session and is created by the servlet container when the browser makes its first request to a site.

a. protocol object
b. session object

c. tracking object

d. attribute object

  1. A(n) ______service is an application component service made available on a Web server for use by other Web-connected programs.

a. HTML

b. HTTP
c. Web
d. XML

  1. A(n) ______is a set of characters separated from other tokens by one or more delimiters; that is, data fields.

a. tag
b. token
c. textarea
d. declaration

  1. A(n) ______is a logical connection address on the server for a particular application.

a. access
b. interface
c. localhost
d. port

True/False Instructions: Write T if the statement is true or F if the statement is false on your paper.

T / F / 1. Client-side refers to a standard approach to solving a particular programming problem.
T / F / 2. If you create HTML documents with a GUI Web page editor, the HTML tags often are created for you.
T / F / 3. URL rewriting consists of a name associated with an object bound to the session.
T / F / 4. The servlet API does not use cookies to store the session ID.
T / F / 5. To forward a request involves sending the current request and response objects so that the receiving resource can act upon them.
T / F / 6. A format that is comma-delimited is a programming technique similar to HTML.
T / F / 7. The synchronized keyword provides thread-safe code by locking access to an object within a method or block of code.
T / F / 8. Deadlock is a condition where two locks each are waiting on the other to release before execution can continue.
T / F / 9. A deployment descriptor is an HTTP file that is used to configure a Web application.
T / F / 10. Servlets without a specific entry in the deployment descriptor are known as floating servlets.

Short Answer Instructions: Write the best answer on your paper.

  1. ______refers to processing that uses resources available only on the client.
  1. ______refers to processing that uses resources on the server.
  2. The letters HTTP stand for ______.
  3. JavaScript is ______; that is, it uses built-in objects.
  1. JavaScript is a(n) ______language, meaning that you do not have to declare the datatype of a variable.
  2. In HTML a(n) ______associates an event with the JavaScript code that is performedwhen the event occurs.
  3. Once an appropriate driver is loaded, a(n) ______must be established to thedatabase.
  1. To ______a request is to cause the browser to send a new request to a differentresource.
  2. The letters XML stand for ______.
  3. A(n) ______is a character used to separate data fields, particularly in a stream oftextual data.