Struts2 Online Quiz



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

Q 1 - Which of the following feature is present in Struts 2?

A - POJO forms and POJO actions

B - Tag support

C - AJAX support

D - All of the above.

Answer : D

Explanation

All of the above features are supported in Struts 2.

Answer : D

Explanation

All of the above options are correct.

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

A - date validator

B - double validator

C - email validator

D - All of the above.

Answer : D

Explanation

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

Q 5 - Which of the following theme provides all the basics that the simple theme provides and adds several features like standard two-column CSS-based layout?

A - simple theme

B - xhtml theme

C - css_xhtml theme

D - complex theme.

Answer : C

Explanation

css_xhtml theme - This theme provides all the basics that the simple theme provides and adds several features like standard two-column CSS-based layout, using for the HTML Struts Tags, Labels for each of the HTML Struts Tags, placed according to the CSS stylesheet.

Answer : D

Explanation

This is a marker annotation for type conversions at Type level. The Conversion annotation must be applied at Type level.

Q 8 - Which of the following tag takes two or more lists as parameters and merge them all together?

A - if and else tags.

B - iterator tags

C - merge tag

D - append tag

Answer : C

Explanation

These merge tag take two or more lists as parameters and merge them all together.

Q 9 - Which of the following tag can be used to parameterize other tags?

A - date tag

B - param tag

C - property tag

D - push tag

Answer : B

Explanation

The param tag can be used to parameterize other tags.

Q 10 - Struts2 has a great support for multiple view options.

A - false

B - true

Answer : B

Explanation

Struts2 has a great support for multiple view options (JSP, Freemarker, Velocity and XSLT).

struts_questions_answers.htm
Advertisements