JSP and SOAP Web Technologies

Quiz covering Java Server Pages (JSP) fundamentals including directives, actions, scopes, and error handling, plus SOAP/XML Web Services concepts including encoding rules, RPC-style operations, and WS-Routing.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Note: To express routes, WS-Routing defines a new SOAP header named "path", and, within that header (Question 16-19 are based on this note) Which element is used for specifying Ultimate receiver

  1. “from”
  2. “to”
  3. “fwd”
  4. “rev”
Question 2 Multiple Choice (Single Answer)

Note: To express routes, WS-Routing defines a new SOAP header named "path", and, within that header (Question based on this note)Which element is used for containing the reverse message path

  1. “from”
  2. “to”
  3. “fwd”
  4. “rev”
Question 3 Multiple Choice (Single Answer)

Note: To express routes, WS-Routing defines a new SOAP header named "path", and, within that header (Question based on this note) Which element is used for containing the forward message path

  1. “from”
  2. “to”
  3. “fwd”
  4. “rev”
Question 4 True/False

soapenv:Header is an optional child element of soapenv:Envelope ( TRUE/FALSE)

  1. True
  2. False
Question 5 Multiple Choice (Single Answer)

Which attribute SOAP defines that can be placed on a header element and if set to “1” meaning that the receipient must understand this header or send back a soapenv:Fault indicating that it does not understand the header

  1. <soapenv:mustUnderstand >
  2. <soap:Body>
  3. <soap:Envelope>
  4. <soapenv:Envelope>
Question 6 True/False

The Header section of SOAP is where application specific custom data can be sent. (TRUE/FALSE)

  1. True
  2. False
Question 7 True/False

SOAP talks about accessing objects and invoking methods remotely as in a Remote Procedure Call . (TRUE/FALSE)

  1. True
  2. False
Question 8 Multiple Choice (Single Answer)

When using RPC-style SOAP, specification defines exactly the matter contained in

  1. <soapenv:Body>
  2. <soapenv:Header>
  3. <soapenv:Head>
  4. <soapenv:Tail>
Question 9 Multiple Choice (Single Answer)

In Section 5 of the SOAP specification, the encoding rules defines how

  1. Objects should be serialized.
  2. Structures should be serialized.
  3. Arrays should be serialized.
  4. Object graphs should be serialized.
  5. All of the above.
Question 10 Multiple Choice (Single Answer)

With literal format, the client and service deal with the data in terms of

  1. XML documents
  2. Objects and structures
  3. Both
  4. None of the Above
Question 11 Multiple Choice (Single Answer)

Global XML Web Services Architecture builds on today’s XML Web services baseline specification of

  1. SOAP
  2. WSDL
  3. UDDI
  4. All of the above
Question 12 Multiple Choice (Single Answer)

Which tag in the jsp is used to define the error page

  1. error-page
  2. exception-type
  3. location
  4. None of the above
Question 13 True/False

JSP technology is extensible

  1. True
  2. False
Question 14 Multiple Choice (Multiple Answers)

Java Server Pages specification includes

  1. JSP standard directives.
  2. JSP standard actions.
  3. Script language declarations, scriplets and expressions.
  4. A portable tag extension mechanism.
Question 15 True/False

The < % return; % > simply aborts the processing of JSP

  1. True
  2. False
Question 16 Multiple Choice (Single Answer)

Which of the following statements is true regarding the scope of ‘page’ in JSP.

  1. Objects with page scope are accessible only within the page where they are created
  2. • References to objects with page scope are stored in the pagecontext object
  3. All references to such an object shall be released after the response is sent back to the client from the JSP page or the request is forwarded somewhere else.
  4. All of the above.
Question 17 Multiple Choice (Single Answer)

Which codeline must be set before any of the lines that use the PrintWriter

  1. setContentType()
  2. setPrintType()
  3. setWriter()
  4. setContentWriter()
Question 18 True/False

The response.sendRedirect("……..”); is the response implicit object to redirect the browser to the different resource

  1. True
  2. False
Question 19 Multiple Choice (Single Answer)

Which of the following can the JSP include action include output from ?

  1. Another JSP
  2. Plain text file
  3. Servlet
  4. CGI Program
  5. All of the above
Question 20 Multiple Choice (Single Answer)
  1. The jsp:include/ action can pass parameters to the page which it is including. How does this second page obtain the value of these parameters?
  1. Using the <jsp:readParam/> action
  2. Using the <jsp:getParam/> action
  3. Use the request.getParameter() method
  4. Use the response.getParameter() method