0% found this document useful (0 votes)
115 views4 pages

JSP MCQ Quiz

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 4

By OnlineInterviewQuestions.

com
JSP MCQ Quiz

Take JSP Quiz To test your Knowledge


Below are few JSP MCQ test that checks your basic knowledge of JSP. This JSP Test contains around 20
questions of multiple choice with 4 options. You have to select the right answer to a question. You can see the
correct answer by clicking view answer link.

Q1. Can be extend JSP technology?

A. Yes
B. No

Q2. What is media type of JSP?

A. application/jsp
B. text/javax
C. java/jsp
D. java/text

Q3. Which of the following is not a directive in JSP?

A. include
B. page
C. export
D. useBean

Q4. What is default value of autoFlush attribute in JSP?

A. True
B. Null
C. False
Q5. In JSP config is instance of which class?

A. javax.servlet.ServletContext
B. javax.servlet.ServletConfig
C. javax.servlet.Context
D. javax.servlet.Application

Q6. For What JSP is used?

A. Server-side dynamic content generation


B. Client Side language for validation

Q7. In JSP Action tags which tags are used for bean development?

A. jsp:useBean
B. jsp:setPoperty
C. jsp:getProperty
D. All of above

Q8. What is the default value of isScriptingEnabled attribute?

A. True
B. False

Q9. Which of the following is true about <jsp:getProperty> action?

A. The getProperty action gets the properties of a bean.


B. The getProperty action converts the property of a bean to a string, and finally inserts it into the output.
C. Both of the above.
D. None of the above.

Q10. All servlet classes are required to be mapped and configured in web.xml.

A. Yes
B. No
Q11. What is Full form of JSTL?

A. JSP Tag Library


B. JavaServer Pages Standard Tag Library
C. Java Standard Tag Library
D. None of the above.

Q12. Which of the following do not supports JSP directly?

A. Weblogic Server
B. Apache HTTP Server
C. WebSphere Server
D. Tomcat Server

Q13. Where filters are defined?

A. Filters are defined in the deployment descriptor file web.xml.


B. Filters are defined in the jsp pages.
C. Both of the above.
D. None of these

Q14. Which of the following is not a directive?

A. page
B. include
C. export
D. useBean

Q15. “request” is instance of which one of the following classes?

A. HttpRequest
B. Request
C. HttpServletRequest
D. ServletRequest

Q16. Which method of the Component class is used to set the position and size of a
component in JSP?
A. setPosition()
B. setSizePosition()
C. setBounds()
D. etSize()

Q17. Which of the following is not a directive?

A. export
B. page
C. include
D. useBean

Q18. Which of the following action variable is used to include a file in JSP?

A. jsp:getProperty
B. jsp:include
C. jsp:setProperty
D. jsp:plugin

Q19. Which attribute uniquely identification element?

A. Class
B. Name
C. Scope
D. ID

Q20. Which tag is used to set a value of a JavaBean?

A. <c:choose>
B. <c:set>
C. <c:param>
D. <c:forward>

Please Visit OnlineInterviewquestions.com to download more pdfs

You might also like