Oracle Java Enterprise Edition 5 Web Component Developer Certified Professional 認定 1Z0-858 試験問題:
1. Your web application requires the ability to load and remove web files dynamically to the web container's file system. Which two HTTP methods are used to perform these actions? (Choose two.)
A) SEND
B) POST
C) DESTROY
D) DELETE
E) PUT
F) REMOVE
2. Given an HttpServletRequest request and HttpServletResponse response, which sets a cookie "username" with the value "joe" in a servlet?
A) request.setCookie("username", "joe")
B) request.addCookie("username", "joe")
C) request.addCookie(new Cookie("username", "joe"))
D) response.addHeader(new Cookie("username", "joe"))
E) request.addHeader(new Cookie("username", "joe"))
F) response.addCookie(new Cookie("username", "joe"))
G) response.addCookie("username", "joe")
3. Given that a scoped attribute cart exists only in a user's session, which two, taken independently, ensure the scoped attribute cart no longer exists? (Choose two.)
A) <c:remove var="cart" />
B) <c:remove scope="session">${cart}</c:remove>
C) ${cart = null}
D) <c:remove var="cart" scope="session" />
E) <c:remove scope="session">cart</c:remove>
F) <c:remove var="${cart}" scope="session" />
G) <c:remove var="${cart}" />
4. Given the definition of MyObject and that an instance of MyObject is bound as a session attribute:
8.package com.example;
9.public class MyObject implements
10.
javax.servlet.http.HttpSessionBindingListener {
11.
// class body code here
12.
}
Which is true?
A) The unbound method of the MyObject instance is called when the session to which it is bound times out.
B) The valueUnbound method of the MyObject instance is called when the session to which it is bound times out.
C) The com.example.MyObject must be declared as a servlet event listener in the web application deployment descriptor.
D) Only a single instance of MyObject may exist within a session.
5. You are creating a servlet that generates stock market graphs. You want to provide the web browser with precise information about the amount of data being sent in the response stream. Which two HttpServletResponse methods will you use to provide this information? (Choose two.)
A) response.setIntHeader("Length", numberOfBytes);
B) response.setContentLength(numberOfBytes);
C) response.setLength(numberOfBytes);
D) response.setIntHeader("Content-Length", numberOfBytes);
E) response.setHeader("Length", numberOfBytes);
F) response.setHeader("Content-Length", numberOfBytes);
質問と回答:
| 質問 # 1 正解: D、E | 質問 # 2 正解: F | 質問 # 3 正解: A、D | 質問 # 4 正解: B | 質問 # 5 正解: B、D |














773 お客様のコメント
品質保証JPexamはIT認定試験のシラバスに従って、試験問題の範囲を正確に絞って、的中率が99%の最新問題集を捧げます。
1年間の無料更新サービスJPexamは1年以内に問題集の無料更新サービスを提供し、お客様がいつでも最新版の問題集を持つことを保証いたします。もし試験の内容が変更されたら、弊社は直ちにお客様にお知らせします。それに、弊社の問題集が更新されたら、早速メールで最新バージョンを送付いたします。
全額返金JPexamの問題集を利用すると、短時間で勉強しても試験に合格できるのを保証いたします。試験に不合格になってしまった場合、弊社は全額返金いたします。(
ご購入前のお試しJPexamは問題集のサンプルを無料で提供いたします。ご購入前にサンプルを試用して製品の品質を確認することができます。ご遠慮なく利用してください。
