Sei sulla pagina 1di 2

1) MVC stands for __________________ . 2) Base Framework consists of a) ActionForm b) jsp c) Action d) ActionServlet e) web.

xml 3) The base components of struts are a) html b) Base framework c) web.xml d) Jsp Tag library e) tiles f) validator 4) The main controller servlet in struts is a) ActionForm b) Action c) ActionServlet 5) Jsp Tag library of struts includes following tags a) html b) xml c) action d) bean e) nested f) logic 6) All the request from client to the server goes through a) ActionServlet b) Action c) ActionForm d) web.xml 7) Action class has got following method a) service() b) doGet() c) execute() d) doPost() 8) validate() and reset() methods are belongs to a) ActionForm b) ActionServlet c) Action d) none of these 9) Parameters of execute() method are a) HttpServletResponse b) HttpServletRequest c) ActionMapping d) Action e) ActionForm f) ServletContext 10) Validator supports only client side validation whereas Form beans support both client as well as serverside validations. True/False ___________ 11) One of the following allows you to have common exception handler that can be reused by all action classes. A) Tiles b) assertion c) Declarative Exception handling d) none of these 12) The file which is used for struts application configuration is a) web.xml b) struts.tld c) struts-config.xml d) struts.xml 13) Information of Form Bean can be retrieved from a) <global-forwards> b) <action-mappings> c) <form-beans> d) <struts-bean> 14) <action-mappings> is used to get information about a) jsp b) Action c) ActionServlet d) ActionForm 15) struts-config.xml is used mainly by a) ActionServlet b) ActionForm c) Action d) jsp 16) The return type of validate() method is a) Action b) ActionError c) ActionErrors d) void e) int 17) The arguments of validate() method are a) HttpServletRequest b) HttpServletResponse c) ActionMapping d) ActionForm e) ActionServlet 18) View layer consists of a) ActionForm b) Action c) jsp d) tags e) resource bundle f) ActionServlet 19) war stands for _______________. 20) The class or classes used by ActionForm comes in a) View layer b) Model layer c) controller layer d) none of these

21) The controller layer consists of a) Action b) ActionForm c) ActionServlet d) RequestDispatcher e) RequestProcessor 22) The file used to store titles and other string data is a) web.xml b) struts.txt c) struts.properties d) ApplicationResources.properties 23) The files required for html, logic and bean tags are respectively a) struts-bean.tld b) struts-logic.tld c) struts-html.tld __________________ ( write the order here) 24) One of the followings does not come in war file. A) html b) ejb c) jsp d) servlet 25) Framework is a) a language b) an application c) web server d) set of classes and interfaces that cooperate to solve a specific type of software problem 26) tiles-def.xml is specially required for __________ 27) validation.xml and validator-rules.xml are specially required for _______________.

Potrebbero piacerti anche