0
Alien head

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

Can there be multiple inside ?

  1. may be

  2. can't be

  3. None of the above

  4. no


Correct Option: A

Which is not subclass of DispatchAction class?

  1. MappingDispatchAction

  2. MethodDispatchAction

  3. EventDispatchAction

  4. LookUpDispatchAction


Correct Option: B

Is ActionForm serializable ?

  1. true

  2. false

  3. both 1 and 2

  4. None of the above


Correct Option: A

Reset () method of ActionForm returns?

  1. ActionErrors

  2. ActionError

  3. void

  4. ActionMapping


Correct Option: C

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

How to use ReuestDispatcher to redirect URL ?

  1. None of the above


Correct Option: B

What is return type of execute () method?

  1. void

  2. String

  3. ActionForward

  4. ActionMapping


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

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

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

From a MVC perspective, Struts provides the

  1. Model

  2. View

  3. Controller

  4. None of Above


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

What is struts?

  1. A Technology

  2. A Frameworks

  3. A Java Development Tool Kit

  4. A Language.


Correct Option: B

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

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

  1. Object class

  2. Action Servlet

  3. Http Servlet

  4. None Of the above


Correct Option: A

Which one is correct?

  1. .

  2. None


Correct Option: A

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

In Struts 1.1, you can change how Struts populates a form by

  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

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

Can there be multiple tag inside tag in tiles-defs.xml?

  1. yes

  2. no

  3. None of the above

  4. It Depends.


Correct Option: A
+ View questions