최신 1D0-532 무료덤프 - CIW Web DevelopER(JCERT)
Which of the following event listeners must be notified by the container in the event of a session timeout?
정답: D
Refer to the exhibit to answer the question.
Consider the Products relation defined in the exhibit. What is the result of attempting to execute the following Java code segment assuming con is a valid reference to an open Connection object?
1. PreparedStatement ps = con.prepareStatement(
2. "SELECT * FROM Products WHERE " +
3. "Cost < ?");
4.
5. ps.setDouble(0, 10f);
6.
7. ResultSet rs = ps.executeUpdate();
8. rs.next();
9. System.out.print(rs.getString(1));
10. System.out.println(rs.getString(2));

Consider the Products relation defined in the exhibit. What is the result of attempting to execute the following Java code segment assuming con is a valid reference to an open Connection object?
1. PreparedStatement ps = con.prepareStatement(
2. "SELECT * FROM Products WHERE " +
3. "Cost < ?");
4.
5. ps.setDouble(0, 10f);
6.
7. ResultSet rs = ps.executeUpdate();
8. rs.next();
9. System.out.print(rs.getString(1));
10. System.out.println(rs.getString(2));

정답: B
A Web application is made up of two JSP files (main.jsp and error.jsp). Any exceptions thrown within main.jsp should be automatically handled by error.jsp. What JSP directive should appear at the top of main.jsp in order to enable this functionality?
정답: B
The following excerpt from a JSP is meant to display the following output:
The price without tax is: 100.0
The tax rate is: 0.15
The tax on your purchase is: 15.0
The total cost is: 115.0
Using only the line numbers outlined in the JSP excerpt, identify the three lines that need to be changed to allow for proper translation\compilation\display of the JSP. (Select three answers.) The JSP excerpt with the errors is:
<html>
<body>
1 <%! public double calculateTax(double price)
{return price * taxRate;}%>
2 <% double taxRate = 0.15;%>
3 <% public double calculateTotal(double price, double tax)
{return price + tax;}%>
4 <% double price = 100.00; %>
5 The price without tax is: <%= price %> <br>
6 The tax rate is: <%= taxRate %> <br>
7 The tax on your purchase is: <% calculateTax(price); %> <br>
The total cost is: <%= calculateTotal(price, calculateTax(price))%> <br>
</body>
</html>
The price without tax is: 100.0
The tax rate is: 0.15
The tax on your purchase is: 15.0
The total cost is: 115.0
Using only the line numbers outlined in the JSP excerpt, identify the three lines that need to be changed to allow for proper translation\compilation\display of the JSP. (Select three answers.) The JSP excerpt with the errors is:
<html>
<body>
1 <%! public double calculateTax(double price)
{return price * taxRate;}%>
2 <% double taxRate = 0.15;%>
3 <% public double calculateTotal(double price, double tax)
{return price + tax;}%>
4 <% double price = 100.00; %>
5 The price without tax is: <%= price %> <br>
6 The tax rate is: <%= taxRate %> <br>
7 The tax on your purchase is: <% calculateTax(price); %> <br>
The total cost is: <%= calculateTotal(price, calculateTax(price))%> <br>
</body>
</html>
정답: A,E,G
What is the best scope in which to store an object containing display data that is to be sent from a servlet acting as a controller to a JSP page with the session disabled?
정답: B
A JSP contains the following include directive:
(<%@ include file="copyright.html" %>)
What occurs when a JSP is called that includes this directive?
(<%@ include file="copyright.html" %>)
What occurs when a JSP is called that includes this directive?
정답: B
Which two of the following should be avoided in order for a servlet that does not implement the SingleThreadModel to be thread safe?
정답: B,D
Which two of the following items will cause a parsing error in an XML file?
정답: B,D
Which of the following is NOT a major element used to define a service in WSDL?
정답: D
Which section of a WSDL document would be modified to change the sequence of messages the document describes?
정답: D