Struts2 Online Quiz


Advertisements


Following quiz provides Multiple Choice Questions (MCQs) related to Struts2 Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Answer : D

Explanation

All of the above steps are part of the life cycle of a request in Struct2 application.

Answer : C

Explanation

Both of the above statements are correct.

Answer : A

Explanation

There are various temporary objects which are created during execution of a page. For example the current iteration value for a collection being looped over in a JSP tag.

Q 4 - What types of validators are available in xml based validation in struts2?

A - expression validator

B - int validator

C - regex validator

D - All of the above.

Answer : D

Explanation

All of the above validators are available in xml based validation in struts2.

Answer : C

Explanation

This is used to decorate the execute() method. The Action method also takes in a value which is the URL on which the action is invoked.

Answer : D

Explanation

This validator checks that a String field is of the right length. It assumes that the field is a String. If neither minLength nor maxLength is set, nothing will be done.

Q 8 - Which of the following tag generates an iterator based on the val attribute supplied?

A - generator tag

B - iterator tags

C - merge tag

D - append tag

Answer : A

Explanation

These generator tag generates an iterator based on the val attribute supplied.

Q 9 - Struts uses the DOJO framework for the AJAX tag implementation.

A - true

B - false

Answer : A

Explanation

Struts uses the DOJO framework for the AJAX tag implementation.

Q 10 - Tag markups in Struts2 can be tweaked using Freemarker templates.

A - true

B - false

Answer : A

Explanation

Tag markups in Struts2 can be tweaked using Freemarker templates. This does not require JSP or java knowledge. Basic HTML, XML and CSS knowledge is enough to modify the tags.


struts_questions_answers.htm

Advertisements