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.

Q 3 - What are the Struts2 configuration properties that control file uploading process?

A - struts.multipart.maxSize

B - struts.multipart.parser

C - struts.multipart.saveDir

D - All of the above.

Answer : D

Explanation

All of the above are Struts2 configuration properties that control file uploading process.

Q 4 - In which of the following internationalization (i18n) support is present in Struts 2?

A - The UI Tags.

B - Messages and Errors.

C - Within action classes.

D - All of the above.

Answer : D

Explanation

Struts2 provides localization ie. internationalization (i18n) support through resource bundles, interceptors and tag libraries in all of the above places.

Q 5 - Which of the following theme represents minimal theme with no "bells and whistles".?

A - simple theme

B - xhtml theme

C - css_xhtml theme

D - complex theme.

Answer : A

Explanation

simple theme - A minimal theme with no "bells and whistles". For example, the textfield tag renders the HTML tag without a label, validation, error reporting, or any other formatting or functionality.

Answer : D

Explanation

This validation annotation checks that a numeric field has a value within a specified range. If neither min nor max is set, nothing will be done.

Answer : C

Explanation

This annotation can be used for custom validators. Use the ValidationParameter annotation to supply additional params.

Answer : A

Explanation

This annotation annotation is used for class and application wide conversion rules. The TypeConversion annotation can be applied at property and method level.

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 - Struts2 offers integrated profiling to debug and profile the application.

A - false

B - true

Answer : B

Explanation

Struts2 offers integrated profiling to debug and profile the application. In addition to this, Struts also offers integrated debugging with the help of built in debugging tools.


struts_questions_answers.htm

Advertisements