310-083 Study Guide

Categories

Sun Certified Web Component Developer for J2EE 5

  • Exam Number/Code : 310-083
  • Exam Name : Sun Certified Web Component Developer for J2EE 5
  • Questions and Answers : 276 Q&As
  • Update Time: 2009-12-22

310-083 Exam Description
The Sun Certified Web Component Developer for the Java Platform, Enterprise Edition 5 certification 310-083 exam is for Sun Certified Programmers (any edition) who are using the Java technology servlet and JavaServer Pages (JSP) application program interface (APIs) to develop web applications.

Prior to beginning the Sun Certification Web Component Developer program, you must be a Sun Certified Programmer for the Java platform (any edition).

Certinside is valid for 310-083 exam and may only be used at an Authorized Prometric Testing Center in the country for which it was purchased. Please be aware that 310-083 exam vouchers are nonrefundable for any reason.

310-083 Study Guide purchased on the Web site may only be used in the US. If you reside outside the US please select a country to inquire about products delivered in your country. Once 310-083 exam vouchers are purchased you have up to one year from the date of purchase to use it.

Exam   :  SUN 310-083
Title    :  Sun Certified Web Component Developer for J2EE 5

1. You have created a JSP that includes instance variables and a great deal of scriptlet code.  Unfortunately, after extensive load testing, you have discovered several race conditions in your JSP scriptlet code. To fix these problems would require significant recoding, but you are already behind schedule. Which JSP code snippet can you use to resolve these concurrency problems?
A. <%@ page isThreadSafe=’false’ %>
B. <%@ implements SingleThreadModel %>
C. <%! implements SingleThreadModel %>
D. <%@ page useSingleThreadModel=’true’ %>
E. <%@ page implements=’SingleThreadModel’ %>
Answer: A

2. You have built a collection of custom tags for your web application. The TLD file is located in the file: /WEB-INF/myTags.xml. You refer to these tags in your JSPs using the symbolic name: myTags. Which deployment descriptor element must you use to make this link between the symbolic name and the TLD file name?
A. <taglib>
<name>myTags</name>
<location>/WEB-INF/myTags.xml</location>
</taglib>
B. <tags>
<name>myTags</name>
<location>/WEB-INF/myTags.xml</location>
</tags>
C. <tags>
<tags-uri>myTags</taglib-uri>
<tags-location>/WEB-INF/myTags.xml</tags-location>
</tags>
D. <taglib>
<taglib-uri>myTags</taglib-uri>
<taglib-location>/WEB-INF/myTags.xml</taglib-location>
</taglib>
Answer: D

3. Which implicit object is used in a JSP page to retrieve values associated with <context-param> entries in the deployment descriptor?
A. config
B. request
C. session
D. application
Answer: D

4. Given the JSP code:
10. <html>
11. <body>
12. <jsp:useBean id=’customer’ class=’com.example.Customer’ />
13. Hello, ${customer.title} ${customer.lastName}, welcome
14. to Squeaky Beans, Inc.
15. </body>
16. </html>
Which three types of JSP code are used? (Choose three.)
A. Java code
B. template text
C. scripting code
D. standard action
E. expression language
Answer: BDE

5. To take advantage of the capabilities of modern browsers that use web standards, such as XHTML and CSS, your web application is being converted from simple JSP pages to JSP Document format. However, one of your JSPs, /scripts/screenFunctions.jsp, generates a JavaScript file. This file is included in several web forms to create screen-specific validation functions and are included in these pages with the following statement:
10. <head>
11.   <script src=’/scripts/screenFunctions.jsp’
12.           language=’javascript’
13.           type=’application/javascript’> </script>
14. </head>
15. <!– body of the web form –>
Which JSP code snippet declares that this JSP Document is a JavaScript file?
A. <%@ page contentType=’application/javascript’ %>
B. <jsp:page contentType=’application/javascript’ />
C. <jsp:document contentType=’application/javascript’ />
D. <jsp:directive.page contentType=’application/javascript’ />
E. No declaration is needed because the web form XHTML page already declares the MIME type of the /scripts/screenFunctions.jsp file in the <script> tag.
Answer: D

The Related Posts

No comments allowed