

MCQOPTIONS
This section includes 24 Mcqs, each offering curated multiple-choice questions to sharpen your Technical Programming knowledge and support exam preparation. Choose a topic below to get started.
1. |
In the Action interface which constant indicates that action execution is successful but no result should be shown to the user? |
A. | Success |
B. | Login |
C. | Input |
D. | None |
Answer» E. | |
2. |
Struts combines which of these in to a unified Framework? |
A. | Java Servlets |
B. | Java Server pages |
C. | Custom tags and Message Resources |
D. | All of the above |
Answer» E. | |
3. |
In Struts, how can we access Java beans and their properties? |
A. | Row Library |
B. | Tag Library |
C. | Column Library |
D. | Table Library |
Answer» C. Column Library | |
4. |
What is defeult result type? |
A. | dispatcher |
B. | FreeMaker |
C. | redirect |
D. | None of the above |
Answer» C. redirect | |
5. |
Which of the following tags in struts-config.xml file defines the availability of necessary Struts JSP custom tag libraries? |
A. | jsp-lib |
B. | struts-taglib |
C. | taglib |
D. | jsp-taglib |
Answer» D. jsp-taglib | |
6. |
In interceptor which is used to display the intermediate result? |
A. | Params Interceptor |
B. | Custom Interceptor |
C. | ExecAndWait Interceptor |
D. | Prepare Interceptor |
Answer» D. Prepare Interceptor | |
7. |
Which method is necessary for Action class? |
A. | valuator() |
B. | reset() |
C. | findForward() |
D. | execute() |
Answer» E. | |
8. |
Abbreviate the term OGNL? |
A. | Object-Goal Navigation Language |
B. | Object- Graph Navigation Language |
C. | Oriented-Graph Navigation Language |
D. | None of the above |
Answer» C. Oriented-Graph Navigation Language | |
9. |
The Struts Framework is a standard for developing well-architected Web applications, it has the following features? |
A. | Open Source |
B. | Model View Controller |
C. | Implement the JSP Model 2 Architecture |
D. | All mentioned above |
Answer» E. | |
10. |
Which of the following tag is used to render a I18n text message? |
A. | set tag |
B. | text tag |
C. | url tag |
D. | push tag |
Answer» D. push tag | |
11. |
reset() method signature in ActionForm? |
A. | public void reset(ActionMapping mapping, HttpServletRequest request) |
B. | public ActionErrors reset(ActionMapping mapping, HttpServletRequest request) |
C. | public ActionError reset(ActionMapping mapping, HttpServletRequest request) |
D. | None of the above |
Answer» C. public ActionError reset(ActionMapping mapping, HttpServletRequest request) | |
12. |
Which of the following methods is overridden by Action class? |
A. | run() |
B. | destroy() |
C. | execute() |
D. | service() |
Answer» D. service() | |
13. |
What is the role of ActionContextCleanUp class in struts 2? |
A. | Handles special clean up task when filters need access to an initialized struts framework |
B. | Works like garbage collector in java |
C. | All of these |
D. | None |
Answer» B. Works like garbage collector in java | |
14. |
Which of the following delegates the request handling to the RequestProcessor instance? |
A. | ActionServlet |
B. | Action class |
C. | Deployment descriptor |
D. | None of the above |
Answer» B. Action class | |
15. |
Which type of validation we must implement the Validateable interface (or extend ActionSupport class) and provide the implementation of validate method? |
A. | By Input Validation |
B. | By Ajax Validation |
C. | By Custom Validation |
D. | None of the above |
Answer» D. None of the above | |
16. |
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? |
A. | AJAX Support |
B. | Integration Support |
C. | Various Tag Support |
D. | Theme and Template Support |
Answer» B. Integration Support | |
17. |
What does validate() method of ActionForm returns? |
A. | ActionErrors |
B. | ActionForward |
C. | ActionMapping |
D. | ActionError |
Answer» C. ActionMapping | |
18. |
Struts supports which of these model components? |
A. | JavaBeans |
B. | EJB |
C. | CORBA |
D. | All of these |
Answer» E. | |
19. |
How to override default configuration of struts 2 |
A. | Use struts.properties |
B. | Use custom file name and register it |
C. | Both a and b |
D. | None |
Answer» C. Both a and b | |
20. |
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? |
A. | Various Result support |
B. | Integration Support |
C. | Various Tag support |
D. | Theme and Template support |
Answer» D. Theme and Template support | |
21. |
ActionServlet, RequestProcessor and Action classes are the components of |
A. | View |
B. | Model |
C. | Controller |
D. | Deployment |
Answer» D. Deployment | |
22. |
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? |
A. | The struts-config.xml file |
B. | The struts.xml file |
C. | The web.xml file |
D. | The struts.properties file |
Answer» B. The struts.xml file | |
23. |
Which technology can be used at View Layer in Struts? |
A. | J2EE |
B. | DHTML |
C. | XML/XSLT |
D. | JavaScript |
Answer» D. JavaScript | |
24. |
Which of the following is correct about FreeMaker result type? |
A. | It is used to forward to a servlet, JSP, HTML page, and so on, on the server. It uses the RequestDispatcher.forward() method |
B. | It is used to generate output using predefined templates |
C. | It calls the standard response.sendRedirect() method, causing the browser to create a new request to the given location |
D. | None of the above |
Answer» C. It calls the standard response.sendRedirect() method, causing the browser to create a new request to the given location | |