1. Trang chủ >
  2. Công Nghệ Thông Tin >
  3. Quản trị Web >

The response.encodeURL is used: [0.5] Session persistence can be used for storing long-term data between sessions [1.0] The HTTPServletResponse interface has the following methods Select two [2.0] What are the requirements to qualify for a JSP sub-class [

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (144.74 KB, 23 trang )


111. JSPs or servlets can manipulate cookies using the _______________ class. [1.0]
a javax.servlets.http.Cookie
c javax.http.Cookie
b javax.servlets.Cookie
d servlets.http.Cookie
112. The _________ method is used to specify different life spans for a cookie. [0.5]
a setCookieAgeint minutes
c setMaxAgeint seconds
b setCookieAgeint seconds
d setMaxAgeint minutes
113. The response.encodeURL is used: [0.5]
a For encoding URLs that send the
redirect command. b
For determining if the URL needs to be rewritten
114. Session persistence can be used for storing long-term data between sessions [1.0]
a True
b False
115. The HTTPServletResponse interface has the following methods Select two [2.0]
a response.URL
c response.encodeRedirectURL
b response.redirectURL
d response.encodeURL
116. An object can be bound using the ____ method in the HTTPRequest interface. [1.0]
a BindAttributestring key, Object obj c
SetAtrtibutestring key
b SetAttributestring key,Object
obj d
Bindattributestring object
117. What are the requirements to qualify for a JSP sub-class [2.0]
a It must provide a jspDestroy
method c
It must provide a jspService method
b It must provide a jspClass method d
It must provide a jspInit method
118. The JDBC classes are present in the ______ package. [0.5]
a java.lang
c java.api
b java.jdbc
d java.sql

119. jdbc.drivers=sun.jdbc.odbc.JdbcOdbcDriver


The above statement 1. loads the JDBC-ODBC bridge drivers
2. unloads the JDBC-ODBC bridge drivers
[1.5]
a 1 is true, 2 is false
c 1 and 2 are true
b 1 is false, 2 is true
d 1 and 2 are false
120. The ________ interface is used to encapsulate SQL queries used for retrieving
data from the database.
[1.5]
a Callable
c Prepared
b Statement
d Parameter

121. The executeUpdate method returns a count of rows in the table that were


affected by the query.
[1.0]
a True
b False

122. The getStringException method throws SQLException when a database access


error occurs
[0.5]
a True
b False

123. con=DriverManager.getConnection“jdbc:odbc: Employee”,” “,” “;


Xem Thêm
Tải bản đầy đủ (.doc) (23 trang)

Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Tải bản đầy đủ ngay
×