πŸ“Š J2EE Technologies
Q. Which is mandatory in tag?
  • (A) id, class
  • (B) id, type
  • (C) type, property
  • (D) type,id
πŸ’¬ Discuss
βœ… Correct Answer: (A) id, class
πŸ“Š J2EE Technologies
Q. “request” is instance of which one of the following classes?
  • (A) Request
  • (B) HttpRequest
  • (C) HttpServletRequest
  • (D) ServletRequest
πŸ’¬ Discuss
βœ… Correct Answer: (C) HttpServletRequest
πŸ“Š J2EE Technologies
Q. Which one is the correct order of phases in JSP life cycle?
  • (A) Initialization, Cleanup, Compilation, Execution
  • (B) Initialization, Compilation, Cleanup, Execution
  • (C) Compilation, Initialization, Execution, Cleanup
  • (D) Cleanup, Compilation, Initialization, Execution
πŸ’¬ Discuss
βœ… Correct Answer: (C) Compilation, Initialization, Execution, Cleanup
πŸ“Š J2EE Technologies
Q. Which option is true about session scope?
  • (A) Objects are accessible only from the page in which they are created
  • (B) Objects are accessible only from the pages which are in same session
  • (C) Objects are accessible only from the pages which are processing the same request
  • (D) Objects are accessible only from the pages which reside in same application
πŸ’¬ Discuss
βœ… Correct Answer: (B) Objects are accessible only from the pages which are in same session
πŸ“Š J2EE Technologies
Q. _jspService() method of HttpJspPage class should not be overridden.
  • (A) True
  • (B) False
  • (C) none
  • (D) all
πŸ’¬ Discuss
βœ… Correct Answer: (A) True
πŸ“Š J2EE Technologies
Q. Application is instance of which class?
  • (A) javax.servlet.Application
  • (B) javax.servlet.HttpContext
  • (C) javax.servlet.Context
  • (D) javax.servlet.ServletContext
πŸ’¬ Discuss
βœ… Correct Answer: (D) javax.servlet.ServletContext
πŸ“Š J2EE Technologies
Q. Which tag should be used to pass information from JSP to included JSP?
  • (A) Using <%jsp:page> tag
  • (B) Using <%jsp:param> tag
  • (C) Using <%jsp:import> tag
  • (D) Using <%jsp:useBean> tag
πŸ’¬ Discuss
βœ… Correct Answer: (A) Using <%jsp:page> tag
πŸ“Š J2EE Technologies
Q. Which page directive should be used in JSP to generate a PDF page?
  • (A) contentType
  • (B) generatePdf
  • (C) typePDF
  • (D) contentPDF
πŸ’¬ Discuss
βœ… Correct Answer: (A) contentType