Sail E0 Webinar

MCQs

Total Questions : 25 | Page 1 of 3 pages
Question 1. 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
 Discuss Question
Answer: Option B. -> Use custom file name and register it




Question 2. 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
 Discuss Question
Answer: Option C. -> By Custom Validation




Question 3. 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
 Discuss Question
Answer: Option A. -> AJAX Support




Question 4. What does validate() method of ActionForm returns?
  1.    ActionErrors
  2.    ActionForward
  3.    ActionMapping
  4.    ActionError
 Discuss Question
Answer: Option B. -> ActionForward




Question 5. Struts supports which of these model components?
  1.    JavaBeans
  2.    EJB
  3.    CORBA
  4.    JDO
  5.    All of these
 Discuss Question
Answer: Option E. -> All of these




Question 6. 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
 Discuss Question
Answer: Option B. -> It is used to generate output using predefined templates




Question 7. 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
 Discuss Question
Answer: Option A. -> The struts-config.xml file




Question 8. ActionServlet, RequestProcessor and Action classes are the components of
  1.    View
  2.    Model
  3.    Controller
  4.    Deployment
 Discuss Question
Answer: Option C. -> Controller




Question 9. 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
 Discuss Question
Answer: Option C. -> Various Tag support




Question 10. Which technology can be used at View Layer in Struts?
  1.    J2EE
  2.    DHTML
  3.    XML/XSLT
  4.    JavaScript
 Discuss Question
Answer: Option C. -> XML/XSLT




Latest Videos

Latest Test Papers