WorksheetsServlets & JSP
Total questions: 10
Worksheet time: 5mins
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
Which JDBC driver Types are for use over communications networks?
Type 3 only
Type 4 only
Both Type 3 and Type 4
Neither Type 3 nor Type 4
What type of servlets use these methods doGet(), doPost(),doHead, doDelete(), doTrace()?
Generic Servlets
HttpServlets
Servlets
All of the above
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
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
Java Server Pages (JSP) is a ------------------------------
client-side programming technology
server-side programming technology
Both
Select the correct statement
Every JSP page is converted into servlet
Every servlet is converted into JSP
No conversion is possible
Both conversions are possible
Which of the following is not a directive?
page
form
taglib
include
Select valid declaration in JSP
<% int data=50; %>
<%!-- int data=50; --%>
<%@ int data=50; %>
<%! int data=50; %>
<%@page attribute= %>
In above statement attribute may be
include
import
session
all the above
