programming languages Online Quiz - 243

Description: programming languages Online Quiz - 243
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

Which of the following files is the correct name and location of deployment descriptor of a web application. Assume that the web application is rooted at \doc-root. Select the one correct answer

  1. \doc-root\dd.xml

  2. \doc-root\web.xml

  3. \doc-root\WEB-INF\web.xml

  4. \doc-root\WEB_INF\dd.xml

Correct Option: C

Which element of the servlet element in the deployment descriptor is used to specify the parameters for the ServletConfig object. Select the one correct answer.

  1. servlet-config

  2. init-param

  3. load-on-startup

  4. filter

Correct Option: B

What the JES will do?

  1. Checks for errors

  2. Schedules the job

  3. Manages the output processing of the job.

  4. All the above

  5. None of the above

Correct Option: D
  1. The order of elements in deployment descriptor is not important. The elements can follow any order.

  2. The elements of deployment descriptor are case insensitive.

  3. The servlet-mapping element, if defined, must be included within the servlet element.

  4. The web-app element must include the servlet element.

Correct Option: A

Which one denotes the end of the JOB?

  1. //

  2. //*

  3. /*

  4. END

  5. NONE

Correct Option: A

The exception-type element specifies an exception type and is used to handle exceptions generated from a servlet. Which element of the deployment descriptor includes the exception-type as a sub-element. Select the one correct answer.

  1. error-page

  2. servlet

  3. exception

  4. error-handling

Correct Option: A

What is the Normal DISP position for temporary files?

  1. OLD

  2. PASS

  3. MOD

  4. SHR

Correct Option: B
  1. mypackage.MyException /error.jsp

  2. mypackage.MyException /error.jsp

  3. mypackage.MyException /error.jsp

  4. mypackage.MyException

Correct Option: B

Which of these are the correct fragment within the web-app element of deployment descriptor. Select the two correct answer.

  1. 404 /error.jsp

  2. mypackage.MyException 404 /error.jsp

  3. mypackage.MyException 404

  4. mypackage.MyException /error.jsp

Correct Option: A,D

Continuation of the previous line should begin in the column

  1. 3

  2. Anywhere between 5 to 17

  3. Anywhere between 4 to 16

  4. Anywhere between 1 to 17

  5. No constraints

Correct Option: C

With in a context-param element of deployment descriptor, which of the following element is required?

  1. param-name

  2. name

  3. init-param

  4. servlet-name

Correct Option: A
  1. Step will not execute

  2. Step will abend

  3. Step will execute

  4. S0C7

Correct Option: A

What gets printed when the following expression is evaluated? Select the one correct answer. ${(1==2) ? 4 : 5}

  1. 1

  2. 2

  3. 4

  4. 5

Correct Option: D

What gets printed when the following expression is evaluated? Select the one correct answer. ${4 div 5}

  1. 0

  2. 0.8

  3. 1

  4. -1

Correct Option: B

What is program used to compile the COBOL program?


  2. IEWL



Correct Option: D

What is the effect of executing the following JSP statement, assuming a class with name Employee exists in classes package.

  1. The code does not compile as there is no property attribute of setProperty tag.

  2. The code does not compile as property attribute cannot take * as a value.

  3. The code sets value of all properties of employee bean to "*".

  4. The code sets the values of all properties of employee bean to matrching parameters in request object.

Correct Option: D
- Hide questions