Top 50+ Solved JSP MCQ Questions Answer
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
Q. Which http method send by browser that asks the server to get the page only?
a. get
b. option
c. put
d. post
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
Q. _jspService() method of HttpJspPage class should not be overridden.
a. True
b. False
c. none
d. all
Q. Attribute used to handle web flow requests.
a. servlet-mapping
b. servlet-attr
c. servlet-flow
d. servlet-requests
Q. To resolve Facelets views we configure:
a. ViewFacelets
b. ViewResolver
c. View-resolver
d. View_Resolver
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
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
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
Q. Component which additionally provides a pop-up date picker control for its enclosedinput field.
a. clientDateValidator
b. clientValidator
c. dateValidator
d. validator
Q. Component which encloses command button.
a. validateAll
b. validateAllClick
c. validateAllInClick
d. validateAllOnClick