JDBC Quiz

Java - JDBC Quiz

4 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

How many JDBC driver types does Sun define?

  1. One
  2. Two
  3. Three
  4. Four
Question 2 Multiple Choice (Single Answer)

Where is metadata stored in MySQL?

  1. In the MySQL databasemetadata
  2. In the MySQL databasemetasql
  3. In the MySQL databasemysql
  4. None of the above is correct.
Question 3 Multiple Choice (Single Answer)

Which JDBC driver Type(s) can be used in either applet or servlet code?

  1. Both Type 1 and Type 2
  2. Both Type 1 and Type 3
  3. Both Type 3 and Type 4
  4. Type 4 only
Question 4 Multiple Choice (Single Answer)

Which JDBC driver Type(s) can you use in a three-tier architecture and if the Web server and the DBMS are running on the same machine?

  1. Type 1 only
  2. Type 2 only
  3. Both Type 3 and Type 4
  4. All of Type 1, Type 2, Type 3 and Type 4