Thanks to visit codestin.com
Credit goes to www.tutorialspoint.com

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

Answer : C

Explanation

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

Q 3 - Which interceptor is responsible for file upload support?

A - FileUpload

B - File

C - Upload

D - None of the above.

Answer : A

Explanation

File uploading in Struts is possible through a pre-defined interceptor called FileUpload interceptor which is available through the org.apache.struts2.interceptor.

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

Explanation

This annotation sets the KeyProperty for type conversion. The KeyProperty annotation must be applied at field or method level.

Q 9 - Which of the following tag will allow you to format a Date in a quick and easy way?

A - date tag

B - param tag

C - property tag

D - push tag

Answer : A

Explanation

The date tag will allow you to format a Date in a quick and easy way.

Answer : C

Explanation

Both of the above statements are correct.

struts_questions_answers.htm
Advertisements