02nd
Jun
JSP MCQ

JSP MCQ

  • Admin
  • 02nd Jun, 2022
  • 858 Followers

Take JSP MCQ Quiz To Test Your Knowledge

We have listed below the best JSP MCQ Questions test that checks your basic knowledge of JSP. This JSP MCQ Test contains 25+ Best JSP Multiple Choice Questions, which are very important & helpful for the best preparation of the JSP Exam & Interview. You have to select the right option for every question to check your final preparation. Apart from this, You can also download below the JSP MCQ PDF Completely free.

JSP MCQ Quiz

1) Can be extend JSP technology?

  • A. Yes
  • B.No

2) What is media type of JSP?

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

3) Which of the following is not a directive in JSP?

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

4) What is default value of autoFlush attribute in JSP?

  • A. True
  • B.Null
  • C.False

5) In JSP config is instance of which class?

  • A. javax.servlet.ServletContext
  • B.javax.servlet.ServletConfig
  • C.javax.servlet.Context
  • D.javax.servlet.Application
Download Free : JSP MCQ PDF

6) For What JSP is used?

  • A. Server-side dynamic content generation
  • B.Client Side language for validation

7) In JSP Action tags which tags are used for bean development?

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

8) What is the default value of isScriptingEnabled attribute?

  • A. True
  • B.False

9) Which of the following is true about 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.

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

  • A. Yes
  • B.No

11) 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.

12) Which of the following do not supports JSP directly?

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

13) 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

14) Which of the following is not a directive?

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

15) “request” is instance of which one of the following classes?

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

16) 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()

17) Which of the following is not a directive?

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

18) 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

19) Which attribute uniquely identification element?

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

20) Which tag is used to set a value of a JavaBean?

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

21) Which of the following is the correct order of phases in JSP life cycle?

  • A. Initialization, Compilation, Cleanup, Execution
  • B.Compilation, Initialization, Execution, Cleanup
  • C.Initialization, Compilation, Cleanup, Execution
  • D.None of the above

22) Can a JSP page process HTML FORM data?

  • A. Yes
  • B.No

23) Which of the following page directive should be used in JSP to generate a PDF page?

  • A. typePDF
  • B.contentPDF
  • C.contentType
  • D.generatePdf

24) ........... are the valid scopes in JSP.

  • A. request, page, session, global
  • B.request, page, session, application
  • C.request, page, context, application
  • D.None of the above

25) Which of the following is correct for directive in JSP?

  • A. <%@directive%>
  • B.<%directive%>
  • C.<%!directive%>
  • D.None of the above

1 comment(s) :

  •   Reply
    img

    Riya

    28th Mar, 2022
    "

    such a Very good mcqs. Thank you..

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

01st
Mar
IOT MCQ
01st
Feb
OOPs MCQ
01st
Mar
Database MCQ
01st
Jun
Appium MCQ
01st
Mar
Robotics MCQ