JDBC  «Prev  Next»

JDBC Metadata for Database - Quiz

Interacting with Database

The answers you selected are indicated below, along with the text that explains the correct answers.
1. Why would you use a Statement object in the Brazilian Hospital Project?
Please select the best answer.
  A. To send a ResultSet to a data source
  B. To send a SQL Statement to a data source
  C. To send a scroll command to the cursor
  D. To set a user password



2. Why would you want to know about the database meta-data in the Brazilian Hospital Project?
Please select the best answer.
  A. To find out information about the database driver, DBMS, table column names, or other information about the hospital databases
  B. To find out if the data contained in a column for each of the doctors and hospitals is accurate
  C. To find out whether the rows and columns in each database are complete
  D. To create the database tables

3. Which of the following methods is used to retrieve database product name from JDBC metadata?
Please select the best answer.
  A. getDatabaseProductVersion()
  B. getUserName()
  C. getDatabaseProductName()
  D. getDriverVersion()
Score = 0.0

Your score is 0.0