Which of the following is NOT a pre-defined do type for the <do> tag in WML?
A. prev
B. go
C. accept
D. reset
E. x-*,X-*
正解:B
質問 2:
Refer to the exhibit to answer the question.
Consider the Employees relation defined in the exhibit and the Java code segment defined below:
Statement s = con.createStatement();
ResultSet rs = s.executeQuery("SELECT * FROM Employees " +
"WHERE EmployeeID >= 10002 AND " +
"EmployeeID <= 10004");
Which code segments display the entire content of the result set assuming that columns EmployeeID and Extension are of SQL type SMALLINT and column Name is of SQL type VARCHAR?

A. while (rs.next())
{
System.out.println(rs.getString(1));
System.out.println(rs.getString(2));
System.out.println(rs.getString(3));
}
B. while (rs.next())
{
System.out.println(rs.getString("EmployeeID"));
System.out.println(rs.getString("Name"));
System.out.println(rs.getString("Extension"));
}
C. do
{
System.out.println(rs.getShort("EmployeeID"));
System.out.println(rs.getString("Name"));
System.out.println(rs.getShort("Extension"));
} while (rs.next())
D. while (rs.next())
{
System.out.println(rs.getString(0));
System.out.println(rs.getString(1));
System.out.println(rs.getString(2));
}
E. do
{
System.out.println(rs.getString("EmployeeID"));
System.out.println(rs.getString("Name"));
System.out.println(rs.getString("Extension"));
} while (rs.next())
正解:A,B
質問 3:
Each of the following represents a valid and well-formed WML code segment EXCEPT:
A. <do type="options" label="Options"/>
B. <do type="accept" label="View Inventory">
<spawn href="/inventory" onexit="/checkout">
</do>
C. <do type="help" label="Get Help">
<go href="#help"/>
</do>
D. <do type="prev" label="Last Page">
<prev/>
</do>
正解:B
質問 4:
Which of the following is NOT a recommended use for servlet filters?
A. XSL/T filters
B. Authentication filters
C. Image conversion filters
D. Applet communication filters
E. Encryption filters
正解:D
質問 5:
Consider the following traditional JSP tag:
<%@ page import="java.sql.*" %>
Which of the following represent the complete and correct XML-based JSP tags to accomplish the same task as the traditional JSP tag above?
A. <jsp:directive.page import="java.sql.*"/>
B. <jsp:directive.page import="java.sql.*">
C. <jsp:directive.page import="java.sql.*"></jsp:directive.page>
D. <jsp:directive.page import="java.sql.*"></jsp>
正解:A,C
質問 6:
Which two of the following items will cause a parsing error in an XML file?
A. </atag>
B. <atag/>
C. <atag> </atag>
D. <atag> <atag>
正解:A,D
Sawaki -
冷静に落ち着いて試験に臨むことができました。無事に1D0-532の試験に受かりました。