JSP Quizz

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

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

A - True

B - False

Q 2 - Which of the following is a server side technology?


A - html

B - jsp

C - javaScript

D - css

Q 3 - All servlet classes are required to be mapped and configured in web.xml.


A - True

B - False

Q 4 - Which of the following attribute is used to mark a page as error processing page?
A - isErrorPage

B - errorPage

C - exception

D - exceptionPage

Q 5 - Which of the following method can be used to read a multiple values with same name, for example
check box selections?
A - request.getParameter()

B - response.getParameter()

C - request.getParameterValues()

D - response.getParameterValues()

Q 6 - Which of the following is true about autoFlush Attribute?


A - The autoFlush attribute can specify that buffered output should be flushed automatically when the
buffer is filled.

B - The autoFlush attribute can specify that an exception should be raised to indicate buffer overflow.

C - Both of the above.

D - None of the above.


Q 7 - What will happen if isScriptingEnabled attribute is set as false?
A - A translation-time error will be raised if the JSP uses any scriptlets, expressions (non-EL), or
declarations.

B - JSP container will ignore the any scriptlets, expressions (non-EL), or declarations similar to
comments.

C - Both of the above.

D - None of the above.

Q 8 - Which of the following is true about Cleanup phase in JSP life cycle?
A - The destruction phase of the JSP life cycle represents when a JSP is being removed from use by a
container.

B - The jspDestroy() method is the JSP equivalent of the destroy method for servlets.

C - Both of the above.

D - None of the above.

Q 9 - How to pass information from JSP to included JSP?


A - Using <%jsp:param> tag.

B - Using <%jsp:page> tag.

C - Using <%jsp:import> tag.

D - Using <%jsp:useBean> tag.

Q 10 - What is the use of <c:remove > tag?

A - It removes a item from a list

B - it removes the data row from the database.

C - It removes a variable from either a specified scope or the first scope where the variable is found

D - None of the above.

You might also like