JSP Online Exam Quiz
JSP GK Quiz. Question and Answers related to JSP. MCQ (Multiple Choice Questions with answers about JSP
?out? is implicit object of which class?
Options
A : javax.servlet.jsp.PrintWriter
B : javax.servlet.jsp.SessionWriter
C : javax.servlet.jsp.SessionPrinter
D : javax.servlet.jsp.JspWriter
?request? is instance of which one of the following classes?
Options
A : Request
B : HttpRequest
C : HttpServletRequest
D : ServletRequest
Default value of autoFlush attribute is?
Options
A : TRUE
B : FALSE
C : -
D : -
Which attribute uniquely identification element?
Options
A : ID
B : Class
C : Name
D : Scope
Which is mandatory in <jsp:useBean /> tag?
Options
A : id, class
B : id, type
C : type, property
D : type,id
Which is not a directive?
Options
A : include
B : page
C : export
D : useBean
Which object stores references to the request and response objects?
Options
A : sessionContext
B : pageContext
C : HttpSession
D : sessionAttribute
Which of the following action variable is used to include a file in JSP?
Options
A : jsp:setProperty
B : jsp:getProperty
C : jsp:include
D : jsp:plugin
Which one is the correct order of phases in JSP life cycle?
Options
A : Initialization, Cleanup, Compilation, Execution
B : Initialization, Compilation, Cleanup, Execution
C : Compilation, Initialization, Execution, Cleanup
D : Cleanup, Compilation, Initialization, Execution
Which one of the following is correct for directive in JSP?
Options
A : <%@directive%>
B : <%!directive%>
C : <%directive%>
D : <%=directive%>