Professional Documents
Culture Documents
MCQ
Q 2 - In which of the following type of ResultSet, the cursor can only move forward in the result set?
A - ResultSet.TYPE_FORWARD_ONLY
B - ResultSet.TYPE_SCROLL_INSENSITIVE
C - ResultSet.TYPE_SCROLL_SENSITIVE
D - None of the above.
Ans-A
Q 3 - Which of the following type of JDBC driver, is also called Type 3 JDBC driver?
A - JDBC-ODBC Bridge plus ODBC driver
B - Native-API, partly Java driver
C - JDBC-Net, pure Java driver
D - Native-protocol, pure Java driver
Ans-B
Q9. Method on the result set that tests whether there remains at least one unfetched tuple in the result
set, is said to be
A-Fetch method
B-Current method
C-Next method
D-Access method
Ans-C
Q10. Which driver is efficient and always preferable for using JDBC applications?
A. Type – 4
B. Type – 1
C. Type – 3
D. Type – 2
Ans-A
Q11. Which of the following methods are needed for loading a database driver in JDBC?
A. registerDriver() method
B. Class.forName()
C. Both A and B
D. getConnection()
Ans-C
Ans-A