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

Explanation

Model - The lowest level of the pattern which is responsible for maintaining data.

Answer : C

Explanation

Both of the above statements are correct.

Answer : D

Explanation

All of the above options are correct.

Q 5 - Which class of struts is responsible to converts data types from string?

A - StrutsTypeConverter

B - StringTypeConverter

C - Both of the above.

D - None of the above.

Answer : A

Explanation

StrutsTypeConverter class tells Struts how to convert Environment to a String and vice versa by overriding two methods convertFromString() and convertToString().

Answer : C

Explanation

This validation annotation checks that a String field is not empty (i.e. non-null with a length > 0).

Q 8 - Which of the following tag will iterate over a value?

A - if and else tags.

B - iterator tags

C - merge tag

D - append tag

Answer : B

Explanation

These iterator will iterate over a value. An iterable value can be any of: java.util.Collection, java.util.Iterator. While iterating over an iterator, you can use Sort tag to sort the result or SubSet tag to to get a sub set of the list or array.

Q 9 - Which of the following tag is used to push value on stack for simplified usage?

A - date tag

B - param tag

C - property tag

D - push tag

Answer : D

Explanation

The push tag is used to push value on stack for simplified usage.

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