0

web technology Online Quiz - 159

Description: web technology Online Quiz - 159
Number of Questions: 20
Created by:
Tags: web technology
Attempted 0/20 Correct 0 Score 0
  1. The JVM specified by the system CLASSPATH

  2. The JVM downloaded from the Integration Server

  3. The JVM bundled with the Developer

  4. The JVM selected during product installation


Correct Option: C
  1. pub.flow:catchException

  2. pub.flow:catchError

  3. pub.schema:validatePipeline

  4. pub.flow:getLastError


Correct Option: D
  1. Change the content type of the output returned to the client of a service invoke

  2. Return an XML message in response to an XML HTTP POST request

  3. Display an HTML message in a browser

  4. Return a text document that has been previously formatted with an output template


Correct Option: D
  1. Multiply floating point numbers

  2. Retry a service that didn't work the first time

  3. Perform custom exception handling

  4. Persist null variables within the pipeline


Correct Option: A
  1. Control access to a Flow service

  2. Store encrypted Access Control Lists (ACLs)

  3. Restrict access to DSP, HTML and XML files

  4. Control Administrator access to the Integration Server


Correct Option: C

A Java NullPointerException was thrown while tracing a Flow service using the webMethods IS Developer. What is the most likely reason?

  1. A required input was not set or mapped and so did not exist at run-time

  2. The "switch" variable of a Branch operation in the Flow was NULL at run-

  3. The Flow executed an Exit operation with the "signal failure" option

  4. A Loop operation in the Flow service has no input array defined


Correct Option: A
  1. An IData pipeline object is instantiated

  2. A content-handler is invoked

  3. A session is created

  4. The client posting the data is authenticated


Correct Option: D
  1. Validation of all negative scenarios like handling of incorrect data type

  2. Testing the boundaries of each field to find any limitations

  3. Job not to be aborted at any cause - all abort scenarios must be handled in the code

  4. Cleansing of obvious data for any anomalies (even if its not specified in requirements)

  5. None of the above


Correct Option: A,B
  1. 1 Pg Client Print

  2. Detailed Client Print

  3. Detailed Office Print

  4. Office Print


Correct Option: A,B,C
  1. Compiler error complaining about access restriction of private variables of AQuestion

  2. Compiler error complaining about forward referencing

  3. No Compilation error - The output is 0;

  4. No Compilation error - The output is 10;


Correct Option: A,B,C,D
  1. Using the action

  2. Using the action

  3. Use the request.getParameter() method

  4. Use the response.getParameter() method


Correct Option: C
  1. Unmatched bracket in for statement

  2. Flush attribute must be false

  3. Keyword 'file' should be used instead of 'page' in the action

  4. Actions cannot be used within scriptlet blocks


Correct Option: D
  1. Cookie class can not take parameters in it's constructor

  2. The request object is used for creating cookies

  3. Although no error will be reported the use of the action means that the response object can't be used to create cookies

  4. The action must be placed inside the script block


Correct Option: C
  1. web.xml

  2. servlet.mappings

  3. servlet.xml

  4. Servlet.java


Correct Option: A
  1. java.servlet

  2. javax.servlet

  3. .servlet

  4. All are same


Correct Option: B
Explanation:

To solve this question, the user needs to know about the Java Servlets API and its interface.

The correct answer is:

B. javax.servlet

Explanation:

All the servlets must implement the Servlet interface of the javax.servlet package. The javax.servlet package contains a number of interfaces and classes that define the contracts between a servlet class and the runtime environment provided for an instance of such a class by a conforming servlet container. The javax.servlet package provides the base classes for defining HTTP servlets. Thus option B is correct.

Option A is incorrect because there is no package named java.servlet.

Option C is incorrect because the option is incomplete and doesn't provide the package name.

Option D is incorrect because there is only one correct option, and that is option B.

Therefore, the answer is: B. javax.servlet

- Hide questions