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 : C

Explanation

Controller - Software Code that controls the interactions between the Model and View.

Answer : C

Explanation

Both of the above statements are correct.

Answer : C

Explanation

These objects include #application, #session, #request, #attr and #parameters and refer to the corresponding servlet scopes.

Answer : B

Explanation

The @result annotations have the name that correspond to the outcome of the execute method. They also contain a location as to which view should be served corresponding to return value from execute().

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 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 assigns a value to a variable in a specified scope?

A - set tag

B - text tag

C - url tag

D - push tag

Answer : A

Explanation

The set tag assigns a value to a variable in a specified scope. It is useful when you wish to assign a variable to a complex expression and then simply reference that variable each time rather than the complex expression. The scopes available are application, session, request, page and action.

Q 10 - With Struts applications, there is a lot more going on behind the scenes than with normal Java-based Web applications.

A - true

B - false

Answer : A

Explanation

With Struts applications, there is a lot more going on behind the scenes than with normal Java-based Web applications.


struts_questions_answers.htm

Advertisements