Vous êtes sur la page 1sur 2

4/28/2015 Description of Quiz

Contribute Us | Ask Question | login 

JavaTpoint Search on javatpoint... 91­9990449935 Subscribe Us


 0120­4256464

Try Another Quiz
Question: 1 Which one of the following is a valid argument for a JSP page
directive?

Your Answer: contentType="text/html"

Correct Answer: isThreadSafe="yes|no"

Description: None

Question: 2 JavaServer Pages are processed by software on the ?

Your Answer: Servver

Correct Answer: Servver

Description: None

Question: 3 JavaServer Pages are processed by ?

Your Answer: Web Server

Correct Answer: JSP Container

Description: None

Question: 4 Which statements is incorrect?

Your Answer: HttpServlet.service() thrwos ServletException and IOException

Correct Answer: HttpServlet.destroy() throws ServletException

Description: None

Question: 5 What is the output of the following code? 
<% session.setAttribute("name", "John"); %> 
<%= session.getAttribute("John") %>

Your Answer: null

Correct Answer: null

Description: None

Question: 6 What is the signature of method _jspService of HttpJspPage?

Your Answer: void _jspService(HttpServletRequest, HttpServletResponse) throws IOException,
ServletException

Correct Answer: void _jspService(HttpServletRequest, HttpServletResponse) throws IOException,
ServletException

Description: None

Question: 7 What is the output of the following code? 
<% session.setAttribute("name", "John"); %> 
<%= session.getAttribute("name") %>

Your Answer: John

Correct Answer: John

http://www.javatpoint.com/description.jsp?x=110&y=11 1/2
4/28/2015 Description of Quiz

Description: None

Question: 8 What is the signature of method jspDestroy of JspPage?

Your Answer: void jspDestroy(HttpServletRequest, HttpServletResponse) throws IOException,
ServletException

Correct Answer: void jspDestroy()

Description: None

Question: 9 HttpServlet.service() thrwos ServletException and IOException

Your Answer: The source JSP file

Correct Answer: HTML

Description: None

Question: 10 The method _jspService of HttpJspPage should not be overriden by a JSP author

Your Answer: False

Correct Answer: True

Description: None

Finish

Tweet

http://www.javatpoint.com/description.jsp?x=110&y=11 2/2

Vous aimerez peut-être aussi