๐Ÿงช Struts MCQ Quiz Hub

Struts Mcq Question Set 1

Choose a topic to test your knowledge and improve your Struts skills

Abbreviate the term POJO?





โœ… Correct Answer: 1

Struts supports which of these model components?





โœ… Correct Answer: 4

Spring framework provides an difficult way to manage the dependency, It cannot be easily integrated with struts 2 framework.





โœ… Correct Answer: 2

Which validates the given string with the specified regular expression,it can be used in password, security key etc.?





โœ… Correct Answer: 1

Which type of validation we must implement the Validateable interface (or extend ActionSupport class) and provide the implementation of validate method?





โœ… Correct Answer: 3

Abbreviate the term OGNL?





โœ… Correct Answer: 2

Which is used to make asynchronous request i.e. it doesn't block the user and it sends only required field data to the server side not all, So it makes the performance fast?





โœ… Correct Answer: 1

We need to write the controller code self, If we change the controller code, we need to recompile the class and redeploy the application this is a disadvantage of which MVC Architecture?





โœ… Correct Answer: 2

Struts combines which of these in to a unified Framework?





โœ… Correct Answer: 4

Interceptor can change the flow of the application by returning the string.





โœ… Correct Answer: 1

Which configuration files are used in Struts?





โœ… Correct Answer: 3

The workflow interceptor is used to get information about the error messages defined in the action class.





โœ… Correct Answer: 1

What is used to display the intermediate result in an interceptor?





โœ… Correct Answer: 3

Which pattern is the struts framework based?





โœ… Correct Answer: 1

Which interface must be implemented by the Action class to store the information in the session scope?





โœ… Correct Answer: 1

Which servlet does the struts framework use?





โœ… Correct Answer: 3

Which way will the architecture and flow of struts 2 application will go to understand the struts flow?





โœ… Correct Answer: 3

The values configured in struts.properties file will override the default values configured in default.properties which is contained in the struts2-core-x.y.z.jar distribution.





โœ… Correct Answer: 2

A valueStack is a simply stack that contains application specific object is _____ .





โœ… Correct Answer: 3

In which configuration file is there a link between the View and Model components in the Web Client but you would not have to touch these settings for 99.99% of your projects?





โœ… Correct Answer: 1

POJO means you are not forced to implement any interface or extend any class.





โœ… Correct Answer: 1

How many core components does the Model-View-Controller pattern in Struts2 have?





โœ… Correct Answer: 2

The struts 2 framework is used to develop MVC-based web application





โœ… Correct Answer: 1

The i18n interceptor provides multi-lingual support for your application





โœ… Correct Answer: 1

What is responsible in MVC for managing the data of the application which responds to the request from the view as well as to the instructions from the controller to update itself?





โœ… Correct Answer: 2

In which technology Struts 2 provides various types of tags such as UI tags, Data tags, control tags etc. to ease the development of struts 2 application?





โœ… Correct Answer: 3

Which of the following is correct about FreeMaker result type?





โœ… Correct Answer: 2

Which technology can be used at View Layer in Struts?





โœ… Correct Answer: 3

In which configuration file is a link between the View and Model components in the Web Client but you would not have to touch these settings for 99.99% of your projects?





โœ… Correct Answer: 1

ActionServlet, RequestProcessor and Action classes are the components of





โœ… Correct Answer: 3

How to override default configuration of struts 2





โœ… Correct Answer: 2

Which of the following delegates the request handling to the RequestProcessor instance?





โœ… Correct Answer: 1

What is the role of ActionContextCleanUp class in struts 2?





โœ… Correct Answer: 1

Which of the following methods is overridden by Action class?





โœ… Correct Answer: 3

reset() method signature in ActionForm?





โœ… Correct Answer: 2

Which of the following tag is used to render a I18n text message?





โœ… Correct Answer: 3

The Struts Framework is a standard for developing well-architected Web applications, it has the following features?





โœ… Correct Answer: 4

Which method is necessary for Action class?





โœ… Correct Answer: 4

In interceptor which is used to display the intermediate result?





โœ… Correct Answer: 3

Which of the following tags in struts-config.xml file defines the availability of necessary Struts JSP custom tag libraries?





โœ… Correct Answer: 3

What is defeult result type?





โœ… Correct Answer: 2

In Struts, how can we access Java beans and their properties?





โœ… Correct Answer: 2

In the Action interface which constant indicates that action execution is successful but no result should be shown to the user?





โœ… Correct Answer: 4

Struts framework is based on





โœ… Correct Answer: 1