Top 50+ Solved JSP MCQ Questions Answer

From 16 to 28 of 28

Q. Why DB connections are not written directly in JSPs?

a. Response is slow

b. Not a standard J2EE architecture

c. Load Balancing is not possible

d. Both B and C

  • d. Both B and C

Q. Which is not a directive?

a. include

b. page

c. export

d. taglib

  • c. export

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

  • b. Using <%jsp:param> tag

Q. _jspService() method of HttpJspPage class should not be overridden.

a. True

b. False

c. none

d. all

  • a. True

Q. Which is not a directive?

a. include

b. page

c. export

d. useBean

  • c. export

Q. Attribute used to handle web flow requests.

a. servlet-mapping

b. servlet-attr

c. servlet-flow

d. servlet-requests

  • a. servlet-mapping

Q. To resolve Facelets views we configure:

a. ViewFacelets

b. ViewResolver

c. View-resolver

d. View_Resolver

  • b. ViewResolver

Q. File extension of a view state’s name which is by default loaded by facelet page.

a. .xml

b. .hbm.xml

c. .xhtml

d. none of the mentioned

  • c. .xhtml

Q. Navigation in traditional JSF applications is handled by:

a. linking directly linking to a resource

b. commandLink

c. invoking an action

d. all of the mentioned

  • d. all of the mentioned

Q. For cross field validation or some sort of barrier to ensure state before you start aflow, we use.

a. FacesContext

b. FaceletContext

c. FacesResolver

d. All of the mentioned

  • a. FacesContext

Q. Component which additionally provides a pop-up date picker control for its enclosedinput field.

a. clientDateValidator

b. clientValidator

c. dateValidator

d. validator

  • a. clientDateValidator

Q. Component which encloses command button.

a. validateAll

b. validateAllClick

c. validateAllInClick

d. validateAllOnClick

  • c. validateAllInClick
Subscribe Now

Get All Updates & News