[Realistic] 310-083 SUN exam question 151-159 (Jun 2016)

310-083 Royal Pack Testengine pdf

100% Actual & Verified — 100% PASS

Unlimited access to the world's largest Dumps library! Try it Free Today!


Product Description:
Exam Number/Code: 310-083
Exam name: Sun Certified Web Component Developer for J2EE 5
n questions with full explanations
Certification: SUN Certification
Last updated on Global synchronizing

Free Certification Real IT 310-083 Exam pdf Collection

The particular SUN 310-083 questions and answers are usually up to date by our own engineers live. Youre going to get the latest simulated test concerns which are in step with the current SUN exam. A lot more notably, the particular revise day lengthy to be able to One hundred and eighty nights, showing that you may have 50 percent the years time to examine 310-083 places.

2016 Jun 310-083 free practice exam

Q151. Click the Exhibit button.

A session-scoped attribute, product, is stored by a servlet. That servlet then forwards to a JSP page. This attribute holds an instance of the com.example.Product class with a name property of "The Matrix" and price property of 39.95. Given the JSP page code snippet:

1. <jsp:useBean id='product' class='com.example.Product'>

2. <jsp:setProperty name='product' property='price' value='49.95'/>

3. </jsp:useBean>

4. <%= product.getName() %> costs <%= product.getPrice() %> What is the response output of this JSP page code snippet?


A. Default costs 0.0

B. Default costs 49.95

C. Default costs 39.95

D. The Matrix costs 0.0

E. The Matrix costs 49.95

F. The Matrix costs 39.95

Answer: B

Q152. Assume that a news tag library contains the tags lookup and item: lookup Retrieves the latest news headlines and executes the tag body once for each headline. Exposes a NESTED page scoped attribute called headline of type com.example.Headline containing details for that headline. item Outputs the HTML for a single news headline. Accepts an attribute info of type com.example.Headline containing details for the headline to be rendered.Which snippet of JSP code returns the latest news headlines in an HTML table, one per row?

A. <table>



<news:lookup />

<news:item info="${headline}" />



. </table>

B. <news:lookup />



<td><news:item info="${headline}" /></td>



C. <table>

. <news:lookup>

. <tr>

. <td><news:item info="${headline}" /></td>

. </tr>

. </news:lookup>

. </table>

D. <table>


. <news:lookup>

. <td><news:item info="${headline}" /></td>

. </news:lookup>

. </tr>

. </table>

Answer: C

Q153. Click the Exhibit button.

Given the JSP code:

1. <%

2. pageContext.setAttribute( "product",

3. new com.example.Product( "Pizza", 0.99 ) );

4. %>

5. <%-- insert code here --%>

Which two, inserted at line 5, output the name of the product in the response? (Choose two.)


A. <%= product.getName() %>

B. <jsp:useBean id="product" class="com.example.Product" /> <%= product.getName() %>

C. <jsp:useBean id="com.example.Product" scope="page"> <%= product.getName() %>


D. <jsp:useBean id="product" type="com.example.Product" scope="page" />

<%= product.getName() %>

E. <jsp:useBean id="product" type="com.example.Product"> <%= product.getName() %>


Answer: BD

Q154. You want to create a valid directory structure for your Java EE web application, and you want to put your web application into a WAR file called MyApp.war. Which two are true about the WAR file? (Choose two.)

A. At deploy time, Java EE containers add a directory called META-INF directly into the MyApp directory.

B. At deploy time, Java EE containers add a file called MANIFEST.MF directly into the MyApp directory.

C. It can instruct your Java EE container to verify, at deploy time, whether you have properly configured your application's classes.

D. At deploy time, Java EE containers add a directory call META-WAR directly into the MyApp directory.

Answer: AC


Regenerate 310-083 simulations:

Q155. Which two actions protect a resource file from direct HTTP access within a web application? (Choose two.)

A. Placing it in the /secure directory

B. Placing it in the /WEB-INF directory

C. Placing it in the /META-INF/secure directory

D. Creating a <web-resource> element within the deployment descriptor

E. Creating a <secure-resource> element within the deployment descriptor

Answer: BC

Q156. Click the Exhibit button.

The Appliance class is a Singleton that loads a set of properties into a Map from an external data source. Assume:

An instance of the Appliance class exists in the application-scoped attribute, appl The appliance object includes the name property that maps to the value Cobia The request- scoped attribute, prop, has the value name. Which two EL code snippets will display the string Cobia? (Choose two.)


A. ${appl.properties.name}

B. ${appl.properties.prop}

C. ${appl.properties[prop]}

D. ${appl.properties[name]}

E. ${appl.getProperties().get(prop)}

F. ${appl.getProperties().get('name')}

Answer: AC

Q157. Which three are described in the standard web application deployment descriptor? (Choose three.)

A. session configuration

B. MIME type mappings

C. context root for the application

D. servlet instance pool configuration

E. web container default port bindings

F. ServletContext initialization parameters

Answer: ABF

Q158. Given an HttpSession session, a ServletRequest request, and a ServletContext context, which retrieves a URL to /WEB-INF/myconfig.xml within a web application?

A. session.getResource("/WEB-INF/myconfig.xml")

B. request.getResource("/WEB-INF/myconfig.xml")

C. context.getResource("/WEB-INF/myconfig.xml")

D. getClass().getResource("/WEB-INF/myconfig.xml")

Answer: C

Q159. Click the Exhibit button.

Assume the product attribute does NOT yet exist in any scope. Which two create an instance of com.example.Product and initialize the name and price properties to the name and price request parameters? (Choose two.)


A. <jsp:useBean id="product" class="com.example.Product" /> . <jsp:setProperty name="product" property="*" />

B. <jsp:useBean id="product" class="com.example.Product" /> <% product.setName( request.getParameter( "name" ) ); %> <% product.setPrice( request.getParameter( "price" ) ); %>

C. <jsp:useBean id="product" class="com.example.Product" /> . <jsp:setProperty name="product" property="name"

value="${param.name}" />

. <jsp:setProperty name="product" property="price" value="${param.price}" />

D. <jsp:useBean id="product" class="com.example.Product"> . <jsp:setProperty name="product" property="name"

value="${name}" />

. <jsp:setProperty name="product" property="price" value="${price}" />

. </jsp:useBean>

Answer: AC

see more http://www.pdfcollection.net/310-083-pdf.html