JDBC  «Prev  Next»

ResultSetMetaData SQL Warnings - Quiz


Each question is worth one point. Select the best answer or answers for each question.

1. The ResultSetMetaData class is used to do which of the following?
Please select the best answer.
  A. Update columns in the ResultSet
  B. Scroll through a ResultSet
  C. Insert rows into a ResultSet
  D. Obtain information about a ResultSet

2. Unlike an SQLException, an SQLWarning doesn't interrupt an application. Those warnings are available for all these objects EXCEPT:
Please select the best answer.
  A. a ResultSetMetaData
  B. a Statement
  C. a Connection
  D. a ResultSet


3. Which of the following statements are true about ResultSetMetaData in JDBC?
Please select the best answer.
  A. ResultSetMetaData is used to get metadata about a ResultSet object.
  B. ResultSetMetaData provides information about the columns in a ResultSet object.
  C. ResultSetMetaData can be used to determine the SQL data types of the columns in a ResultSet object.
  D. ResultSetMetaData is used to execute SQL statements.


4. Which of the following statements are true about SQLWarnings in JDBC?
Please select the best answer.
  A. SQLWarnings provide information about errors that occurred during the execution of an SQL statement.
  B. SQLWarnings can be retrieved using the getWarnings() method on a Connection object.
  C. SQLWarnings are only generated for errors that result in the termination of an SQL statement.
  D. SQLWarnings can be ignored by the developer and will not affect the behavior of the application.