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