JDBC, Java Server Pages, and MySQL – General Questions

1. How many JDBC driver types does Sun define?

A. One
B. Two
C. Three
D. Four

Correct Answer:  D. Four
Advertisement

2. Where is metadata stored in MySQL?

A. In the MySQL database metadata
B. In the MySQL database metasql
C. In the MySQL database mysql
D. None of the above is correct.

Correct Answer:  C. In the MySQL database mysql
Advertisement

3. Who invented Java?

A. Netscape
B. Microsoft
C. Sun
D. None of the above is correct.

Correct Answer:  C. Sun
Advertisement

4. To run a compiled Java program, the machine must have what loaded and running?

A. Java virtual machine
B. Java compiler
C. Java bytecode
D. A Web browser

Correct Answer:  A. Java virtual machine
Advertisement

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

A. Both Type 1 and Type 2
B. Both Type 1 and Type 3
C. Both Type 3 and Type 4
D. Type 4 only

Correct Answer:  C. Both Type 3 and Type 4
Advertisement

Leave A Comment?