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

By default, the Developer runs using which Java Virtual Machine (JVM)?

  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

Which of the following built-in Integration Server services is primarily used for exception handling?

  1. pub.flow:catchException

  2. pub.flow:catchError

  3. pub.schema:validatePipeline

  4. pub.flow:getLastError


Correct Option: D

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) pub.flow:catchException - This option is incorrect because the pub.flow:catchException service is primarily used to catch and handle exceptions thrown by other services or steps in the flow.

Option B) pub.flow:catchError - This option is incorrect because the pub.flow:catchError service is primarily used to catch and handle errors thrown by other services or steps in the flow.

Option C) pub.schema:validatePipeline - This option is incorrect because the pub.schema:validatePipeline service is primarily used to validate the structure and content of a pipeline against a defined schema.

Option D) pub.flow:getLastError - This option is correct because the pub.flow:getLastError service is primarily used to retrieve the details of the last error that occurred during the flow execution. It is commonly used for exception handling and error reporting.

The correct answer is D. This option is correct because the pub.flow:getLastError service is primarily used for exception handling.

The built-in service pub.flow:setResponse can be used to perform all of the following EXCEPT:

  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

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) Change the content type of the output returned to the client of a service invoke - This option is correct. The pub.flow:setResponse service can be used to change the content type of the output returned to the client. It allows you to set the content type header of the response message.

Option B) Return an XML message in response to an XML HTTP POST request - This option is correct. The pub.flow:setResponse service can be used to return an XML message in response to an XML HTTP POST request. It allows you to set the response body content as an XML message.

Option C) Display an HTML message in a browser - This option is correct. The pub.flow:setResponse service can be used to display an HTML message in a browser. It allows you to set the response body content as an HTML message.

Option D) Return a text document that has been previously formatted with an output template - This option is incorrect. The pub.flow:setResponse service cannot be used to return a text document that has been previously formatted with an output template. It is primarily used to set the response content type and body.

The correct answer is D. This option is incorrect because the pub.flow:setResponse service cannot be used to return a text document that has been previously formatted with an output template.

Standard webMethods FLOW operations can do which of the following:

  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

A .access file is used by webMethods Integration Server to do which of the following?

  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

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) Control access to a Flow service - This option is incorrect. A .access file is not used to control access to a specific Flow service. Access to Flow services is typically controlled through Integration Server's built-in security mechanisms like ACLs (Access Control Lists) and user roles.

Option B) Store encrypted Access Control Lists (ACLs) - This option is incorrect. While ACLs can be used to control access to resources in webMethods Integration Server, .access files are not used to store encrypted ACLs.

Option C) Restrict access to DSP, HTML, and XML files - This option is correct. A .access file is used by webMethods Integration Server to restrict access to DSP (Dynamic Server Pages), HTML, and XML files. It allows you to define rules and permissions for accessing these files, such as allowing or denying access based on IP address, user roles, or other criteria.

Option D) Control Administrator access to the Integration Server - This option is incorrect. The .access file is not used to control Administrator access to the Integration Server. Administrator access is typically managed through the webMethods Integration Server Administrator Console and user roles.

The correct answer is C) Restrict access to DSP, HTML, and XML files. This option is correct because a .access file is used by webMethods Integration Server to define rules and permissions for accessing these types of files.

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

Which one of the following happens FIRST when data is sent to the webMethods Integration Server using HTTP POST?

  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

Select ALL that are in scope of coding & unit testing for an ETL job

  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

AI Explanation

To answer this question, let's go through each option to understand if it is in scope for coding and unit testing for an ETL (Extract, Transform, Load) job:

Option A) Validation of all negative scenarios like handling of incorrect data type - This option is in scope for coding and unit testing. As part of coding, you would need to implement validation checks to handle incorrect data types and test them during unit testing.

Option B) Testing the boundaries of each field to find any limitations - This option is also in scope for coding and unit testing. It is important to test the boundaries of each field to ensure that the ETL job can handle different data values and does not encounter any limitations.

Option C) Job not to be aborted at any cause - all abort scenarios must be handled in the code - While it is important to handle any abort scenarios in the code, it is not specifically related to unit testing. This option falls more under the category of error handling and should be considered during the development process, but it may not be directly tested during unit testing.

Option D) Cleansing of obvious data for any anomalies (even if it's not specified in requirements) - Although data cleansing is an important aspect of an ETL job, it is not directly related to coding and unit testing. Data cleansing usually involves pre-processing steps that are performed before the ETL job, and it may not be tested during unit testing.

Based on the above explanations, the correct answers are options A and B. These options are in scope for coding and unit testing as they involve handling incorrect data types and testing field boundaries.

Therefore, the correct answer is A, B.

Which following Product Reports are used in Webstation?

  1. 1 Pg Client Print

  2. Detailed Client Print

  3. Detailed Office Print

  4. Office Print


Correct Option: A,B,C

public class AQuestion{ private int i = giveMeJ(); private int j = 10; private int giveMeJ(){ return j; } public static void main(String args[]){ System.out.println((new AQuestion()).i); }}

  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

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

  1. JSP File

  2. Plain text file

  3. SERVLET

  4. All of the above


Correct Option: D

AI Explanation

To answer this question, you need to understand the purpose of the JSP include action.

The JSP include action is used to include the content of another resource (such as a JSP file, a plain text file, or a servlet) into the current JSP page. This allows you to reuse code or include dynamic content from other sources.

Let's go through each option to understand why it is correct or incorrect:

Option A) JSP File - This option is correct because the JSP include action can include the output from another JSP file. By using the include action, the content of the included JSP file is inserted into the current JSP page during the compilation phase.

Option B) Plain text file - This option is correct because the JSP include action can include the output from a plain text file. The content of the included text file is treated as static text and is included in the response sent to the client.

Option C) SERVLET - This option is correct because the JSP include action can include the output from a servlet. By including a servlet, you can execute dynamic code and include the resulting output in the JSP page.

Option D) All of the above - This option is correct because the JSP include action can include the output from a JSP file, a plain text file, or a servlet.

The correct answer is D) All of the above. This option is correct because the JSP include action can include the output from a JSP file, a plain text file, or a servlet.

action can pass parameters to the page which it is including. How does the next page obtain the value of these parameters?

  1. Using the action

  2. Using the action

  3. Use the request.getParameter() method

  4. Use the response.getParameter() method


Correct Option: C

What is wrong with the following code? } else { } %>

  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

What is wrong with the following code?

  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

In both and the attributes can take JSP expressions as values, for example

  1. True

  2. False


Correct Option: A

To synchronise an HTML form with a JavaBean you would add which of the following statements


Correct Option: C

In which file do we define a servlet mapping ?

  1. web.xml

  2. servlet.mappings

  3. servlet.xml

  4. Servlet.java


Correct Option: A

Servlets and JavaServer Pages have become so popular that they are now supported directly or with third-party plug-ins by most major Web servers and application servers?

  1. True

  2. False

  3. Can't say

  4. None of these


Correct Option: A

All servlets must implement the Servlet interface of package?

  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

A get request gets information from a client. A post request posts data to a client?

  1. True

  2. False

  3. Not always

  4. None of these


Correct Option: B
- Hide questions