Struts/Struts Mcq Question Set 1 Sample Test,Sample questions

Question:
	
Struts framework is based on

1.Servlet.JSP and Java

2.Servlet,.HTML and Java

3. Servlet JSP, XML and Java

4.Applet, XML and Java


Question:
  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?

1. Various Result support

2.Integration Support

3.Various Tag support

4.Theme and Template Support


Question:
  Which configuration files are used in Struts?

1. ApplcationResources.properties

2.struts-config.xml

3. All the above

4.none of the above


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

1.4

2.5

3.6

4.3


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

1.Row Library

2.Tag Library

3. Column Library

4.Table Library


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

1. Success

2. Login

3. Input

4.None of the mentioned


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

1.True

2.False

3.all of the above

4.None of the mentioned


Question:
 Struts combines which of these in to a unified Framework?

1.Java Servlets

2.Java Server pages

3.Custom tags and Message Resources

4. All mentioned above


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

1. True

2. False

3.all of the above

4.None of the mentioned


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

1.Open Source

2. Model View Controller

3.Implement the JSP Model 2 Architecture

4.All Mentioned above


Question:
 Which method is necessary for Action class?

1.valuator()

2.reset()

3.findForward()

4.execute()


Question:
 Which pattern is the struts framework based?

1. MVC2 Pattern

2.Bridge Pattern

3.MVC 1 Pattern

4.none of the above


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

1. By Input Validation

2.By Ajax Validation

3.By Custom Validation

4.none of the above


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

1. Action objects

2.Model object

3. Both A & B

4. None of the above


Question:
Abbreviate the term OGNL?

1.Object-Goal Navigation Language

2.Object- Graph Navigation Language

3.Oriented-Graph Navigation Language

4.none of the above


Question:
Abbreviate the term POJO?

1.Plain Old Java Object

2. Performance Old Java Object

3.Performance Optimize Java Object

4.none of the above


Question:
ActionServlet, RequestProcessor and Action classes are the components of

1. View

2.Model

3.Controller

4. Deployment


Question:
How to override default configuration of struts 2

1. Use struts.properties

2.Use custom file name and register it

3. Both a and b

4.None of the mentioned


Question:
In interceptor which is used to display the intermediate result?

1.Params Interceptor

2.Custom Interceptor

3.ExecAndWait Interceptor

4.Prepare Interceptor


Question:
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?

1.The struts-config.xml file

2.The struts.xml file

3.The web.xml file

4.The struts.properties file


Question:
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?

1. The struts-config.xml file

2.The struts.xml file

3. The web.xml file

4. The struts.properties file


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

1.True

2.False

3.all of the above

4.None of the mentioned


Question:
reset() method signature in ActionForm?

1.public void reset(ActionMapping mapping, HttpServletRequest request)

2.public ActionErrors reset(ActionMapping mapping, HttpServletRequest request)

3.public ActionError reset(ActionMapping mapping, HttpServletRequest request)

4.none of the above


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

1.True

2.False

3.all of the above

4.None of the mentioned


Question:
Struts supports which of these model components?

1.JavaBeans

2.EJB

3.CORBA

4.All Mentioned above


Question:
The i18n interceptor provides multi-lingual support for your application

1. True

2. False

3.all of the above

4.None of the mentioned


Question:
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.

1. True

2.False

3.all of the above

4.None of the mentioned


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

1.True

2.False

3.all of the above

4.None of the mentioned


Question:
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?

1.MVC 1 Architecture

2.MVC 2 Architecture

3. All of the above

4.none of the above


Question:
What is defeult result type?

1. dispatcher

2.FreeMaker

3. redirect

4. None of the above


Question:
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?

1. View

2.Model

3.Controller

4.none of the above


Question:
What is the role of ActionContextCleanUp class in struts 2?

1.Handles special clean up task when filters need access to an initialized struts framework

2.Works like garbage collector in java

3.All of these

4. none of the mentioned


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

1.Params Interceptor

2.Custom Interceptor

3.ExecAndWait Interceptor

4. Prepare Interceptor


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

1.SessionAware Interface

2.ServletContextAware Interface

3.Both A & B

4.none of the above


Question:
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?

1.AJAX Support

2. Integration Support

3. Various Tag Support

4.Theme and Template Support


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

1.ActionServlet

2.Action class

3.Deployment descriptor

4.none of the above


Question:
Which of the following is correct about FreeMaker result type?

1.It is used to forward to a servlet, JSP, HTML page, and so on, on the server. It uses the RequestDispatcher.forward() method

2. It is used to generate output using predefined templates

3.It calls the standard response.sendRedirect() method, causing the browser to create a new request to the given location

4. None of the above


Question:
Which of the following methods is overridden by Action class?

1.run()

2.destroy()

3.execute()

4.service()


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

1.set tag

2.text tag

3.url tag

4.push tag


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

1.jsp-lib

2. struts-taglib

3.taglib

4.jsp-taglib


Question:
Which servlet does the struts framework use?

1.EntryServlet

2.StrutsServlet

3.ActionServlet

4.BasicServlet


Question:
Which technology can be used at View Layer in Struts?

1.J2EE

2.DHTML

3.XML/XSLT

4.JavaScript


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

1. Regex Validation

2.Url Validation

3.Email Validation

4.RequiredString Validator


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

1.Basic

2. Standard

3. Both A & B

4.none of the above


More MCQS

  1. Struts Mcq Question Set 1
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!