• 1. 
    Which of the following is not a directive?

  • page
  • form
  • taglib
  • include
  • 2. 
    Which method is used to register a jdbc driver?

  • Class.ForName()
  • Class.forName()
  • class.ForName()
  • class.forName()
  • 3. 
    Select the method to get form data into jsp

  • getParameter()
  • request.getparameter()
  • request.getParameter()
  • request.getString()
  • 4. 
    What type of servlets use these methods doGet(), doPost(),doHead, doDelete(), doTrace()?

  • Genereic Servlets
  • HttpServlets
  • Servlets
  • All of the above
  • 5. 
    Which of the following statement is not correct about HTTP method ?

  • A GET request append data to the end of the URL.
  • A POST request append data to the end of the URL.
  • HTTP DELETE method request for the Server to delete the resource
  • HTTP OPTIONS request for communication options available on the request/response chain
  • 6. 
    The code inside scriplet will be placed in _____ method of jsp life cycle.

  • jsp_init()
  • jsp_service()
  • _jspService()
  • httpService()
  • 7. 
    Two models of JSP Application Architecture are:Select ALL that apply.

  • Servlet-Centric Architecture
  • JSP-Centric Architecture
  • JavaScript-Centric Architecture
  • Both A & B
  • 8. 
    Which method stores the input data in the request body of the clients HTTP request

  • POST
  • GET
  • form
  • HTML
  • 9. 
    Which is/are the comments in JSP

  • <%-- comment --%>
  • both the above
  • none
  • 10. 
    Which method is used to send the same request and response objects to another servlet in RequestDispacher ?

  • forward()
  • sendRedirect()
  • Both forward() & sendRedirect()
  • None of the above
  • 11. 
    How can we validate form data using JSP?

  • USing Java Beans
  • Using JSTL actions
  • Using Custom action
  • Both A & B
  • 12. 
    The life cycle of a servlet is managed by

  • servlet context
  • servlet container
  • the supporting protocol (such as http or https)
  • All of the above
  • 13. 
    JSP is a

  • Server Technology
  • Client Technology
  • Both
  • Either
  • 14. 
    MVC Stands for

  • Mobile View Controller
  • Model Visibility Control
  • Model View Controller
  • None of the above
  • 15. 
    Select valid declaration in JSP

  • <% int data=50; %>
  • <%!-- int data=50; --%>
  • <%@ int data=50; %>
  • <%! int data=50; %>
  • 16. 
    What is a Hidden Comment in JSP?

  • <%– %>
  • <%– –%>
  • 17. 
    Which of these is the Web deployment Descriptor file required for the web applications.

  • WEB-INF
  • web.xml
  • webApps
  • META-INF
  • 18. 
    Which of the following is true about action?

  • The forward action terminates the action of the current page.
  • The forward action forwards the request to another resource such as a static page, another JSP page, or a Java Servlet.
  • Both the above
  • None
  • 19. 
    PageContext is an implicit object in jsp.

  • TRUE
  • FALSE
  • 20. 
    belongs to which category of JSP elements?

  • JSP standard action
  • JSP directive
  • JSP standard Tag Library action
  • Java Bean
  • 21. 
    In JSP how many implicit objects are there

  • 7
  • 8
  • 9
  • 10
  • 22. 
    <%@page attribute= %>In above statement attribute may be

  • include
  • import
  • session
  • all the above
  • 23. 
    Why use RequestDispatcher to forward a request to another resource, instead of using a sendRedirect?

  • Redirects are no longer supported in the current servlet API.
  • Redirects are not a cross-platform portable mechanism
  • The RequestDispatcher does not require a round trip to the client, and thus is more efficient and allows the server to maintain request state
  • The RequestDispatcher does not use the reflection API.
Report Question
warning
access_time
  Time