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

View Answer

?request? is instance of which one of the following classes?

Options

A : Request

B : HttpRequest

C : HttpServletRequest

D : ServletRequest

View Answer

Default value of autoFlush attribute is?

Options

A : TRUE

B : FALSE

C : -

D : -

View Answer

Which attribute uniquely identification element?

Options

A : ID

B : Class

C : Name

D : Scope

View Answer

Which is mandatory in <jsp:useBean /> tag?

Options

A : id, class

B : id, type

C : type, property

D : type,id

View Answer

Which is not a directive?

Options

A : include

B : page

C : export

D : useBean

View Answer

Which object stores references to the request and response objects?

Options

A : sessionContext

B : pageContext

C : HttpSession

D : sessionAttribute

View Answer

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

View Answer

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

View Answer

Which one of the following is correct for directive in JSP?

Options

A : <%@directive%>

B : <%!directive%>

C : <%directive%>

D : <%=directive%>

View Answer

Annotations more Online Exam Quiz

Client and Server

Debugging in Eclipse

Design Patterns

Java Beans

JDBC

JSP Elements

Reflection API

Servlet

Session Management

Web application