Web Services and Java Web Technologies

Quiz covering web service standards (SOAP, WSDL, UDDI) and Java web development (JSP, Servlets, HTTP methods)

20 Questions Published

Questions

Question 1 True/False

Managed servers host the application components and resources which are also deployed and managed as part of the domain.

  1. True
  2. False
Question 2 True/False

A domain can have ONLY one cluster.

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

When using a RequestDispatcher, the use of which method can often lead to an IllegalStateException

  1. read
  2. write
  3. flush
  4. getOutputStream
Question 4 Multiple Choice (Single Answer)

Which HTTP method is used to show the client what the server is receiving?

  1. HEAD
  2. GET
  3. POST
  4. TRACE
  5. RETURN
Question 5 Multiple Choice (Multiple Answers)

Which statement about jspInit() are true?

  1. It has access to a ServletConfig
  2. It has access to a ServletContext
  3. It is only called once
  4. It can be overridden
Question 6 Multiple Choice (Multiple Answers)

Which directives specify an HTTP response that will be of type "image/svg"?(Choose all that apply)

  1. <%@ page type="image/svg" %>
  2. <%@ page mimeType="image/svg" %>
  3. <%@ page language="image/svg" %>
  4. <%@ page contentType="image/svg" %>
Question 7 Multiple Choice (Single Answer)

In an HTML Page with a rich graphical layout, which JSP Standard action can be used to import an image file into the JSP page?

  1. <jsp:image page="logo.png" />
  2. <jsp:image file="logo.png" />
  3. <jsp:include page="logo.png" />
  4. <jsp:include file="logo.png" />
  5. This cannot be done using a JSP Standard action.
Question 8 Multiple Choice (Single Answer)

How would you set a header named "CONTENT-LENGTH" in the HttpServletResonse object?

  1. response.setHeader(CONTENT-LENGTH,"numBytes");
  2. response.setHeader("CONTENT-LENGTH","numBytes");
  3. response.setStatus(1024);
  4. response.setHeader("CONTENT-LENGTH",1024);
Question 9 True/False

WebService is defined as programmable web application logic accessible via standard web protocols.

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

Web Services advantage are:

  1. a. Connect independent, heterogeneous systems
  2. b. Loosely-coupled, message based systems
  3. c. Open protocols on the wire
  4. d. All Of the above
Question 11 Multiple Choice (Single Answer)

SOAP is based on which language

  1. a. Java
  2. b. .Net
  3. c. XML
  4. d. A & B
Question 12 Multiple Choice (Single Answer)

SOA stands for :

  1. a. Simple Oriented Architecture
  2. b. Service Oriented Architecture
  3. c. Simple Object Access
  4. d. Service Object Access
Question 13 Multiple Choice (Single Answer)

SOAP stands for :

  1. a. Service Oriented Architecture Protocol
  2. b. Service Oriented Architecture Program
  3. c. Simple Object Access Protocol
  4. d. Service Object Access Project
Question 14 Multiple Choice (Single Answer)

WSDL stand for:

  1. a. Web Service Description Language
  2. b. Web Source for Description Language
  3. c. Web Service Detection Language
  4. d. Web Service Destructive Language
Question 15 Multiple Choice (Single Answer)

Directory where Web-Service are published used which protocol for consistency across :

  1. a. WSDL
  2. b. Web Services Directory
  3. c. UDDI
  4. d. All of the above
Question 16 Multiple Choice (Single Answer)

UDDI stand for:

  1. a. Universal Description, Discovery, and Integration
  2. b. Universal Directory for Database and Integration
  3. c. Universal Directory for Discovery and Internationalization
  4. d. Unit Description, Discovery, and Integration
Question 17 Multiple Choice (Single Answer)

WSDL standard are define by:

  1. a. IEEE
  2. b. W3C
  3. c. WSDL
  4. d. All Of the above
Question 18 True/False

DISCO files are used for for publishing the available web Services

  1. True
  2. False
Question 19 True/False

Web Services Listener is used for forwarding the received request to a component that implements the required business logic

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

SOAP Specification Defines :

  1. a. The Soap Message Format
  2. b. How to send message and receive response
  3. c. Data Encoding
  4. d. A & B only
  5. e. All Of the above