0

programming languages Online Quiz - 222

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

If you have created a custom ActionMapping subclass with the property "service", you can initialize the value to "selectRecord" using

  1. None of Above


Correct Option: B
  1. Overriding the populate method of the ActionForm

  2. Overriding the processPopulate method of the Request Processor

  3. Overriding the populateBean method of the ActionMapping

  4. All of Above


Correct Option: B

We can create how many struts config file in an struts application?

  1. Only One

  2. Only Two

  3. Zero

  4. As many we needed


Correct Option: C

Which one is correct?

  1. .

  2. None


Correct Option: A

Org.apache.struts.action.Action class extends?

  1. Object class

  2. Action Servlet

  3. Http Servlet

  4. None Of the above


Correct Option: A

ReuestProcessor is based on following design pattern?

  1. Command Design Pattern

  2. Template Method Design Pattern

  3. Prototype Design Pattern

  4. Singleton Design Pattern


Correct Option: B

What is struts?

  1. A Technology

  2. A Frameworks

  3. A Java Development Tool Kit

  4. A Language.


Correct Option: B

Each Struts Action element is uniquely identified by its

  1. Input attribute

  2. Name attribute

  3. Page attribute

  4. Path attribute


Correct Option: D

The name of the Application Resources file is set by the servlet init-param named

  1. application

  2. resources

  3. ApplicationResources

  4. Messages


Correct Option: A

The tag is:

  1. Always converts HTML markup to entity equivalents, like <

  2. Never converts HTML markup to entity equivalents

  3. Converts markup when filter=true

  4. Converts markup when markup=false


Correct Option: C

To localize Tiles, you can

  1. Create separate configuration files for each locale

  2. Specify an locale for a definition

  3. Either A or B

  4. None of Above


Correct Option: A

What is return type of execute () method?

  1. void

  2. String

  3. ActionForward

  4. ActionMapping


Correct Option: C

How to use ReuestDispatcher to redirect URL ?

  1. None of the above


Correct Option: B

If validate="true" in struts-config.xml action tag then what is the sequence of execution?

  1. Validate () method of ActionForm, if error return to error.jsp

  2. Validate () method of ActionForm, execute () of Action, if error return to jsp mentioned in input tag.

  3. Validate () method of ActionForm, if error return to jsp mentioned in input tag.

  4. None of the above


Correct Option: C

Reset () method of ActionForm returns?

  1. ActionErrors

  2. ActionError

  3. void

  4. ActionMapping


Correct Option: C

Is ActionForm serializable ?

  1. true

  2. false

  3. both 1 and 2

  4. None of the above


Correct Option: A

Which is not subclass of DispatchAction class?

  1. MappingDispatchAction

  2. MethodDispatchAction

  3. EventDispatchAction

  4. LookUpDispatchAction


Correct Option: B

Can there be multiple inside ?

  1. may be

  2. can't be

  3. None of the above

  4. no


Correct Option: A
- Hide questions