Unit V
Unit V
Program: CO5I Course: Advanced Java Programming (22517) Course Co-ordinator: Mrs.Chavan P.P.
Unit V- Interacting with Database
Question Bank
Sr.
Question Option A Option B Option C Option D
No.
1 JDBC stands for__________ Java Database Connectivity Java Database Control Java Database Components None of these
3 Which packages contain the JDBC classes? java.jdbc and javax.jdbc java.jdbc and java.jdbc.sql java.sql and javax.sql java.rdb and javax.rdb
Which type of driver provides JDBC access via one or more ODBC
5 Type 1 driver Type 2 driver Type 3 driver Type 4 driver
drivers?
Which type of driver converts JDBC calls into the network protocol
6 Type 1 driver Type 2 driver Type 3 driver Type 4 driver
used by the database management system directly?
7 Which type of driver of JDBC is called pure driver? Type 1 driver Type 2 driver Type 3 driver Type 4 driver
8 Which type of driver of JDBC is called partly Java Driver? Type 1 driver Type 2 driver Type 3 driver Type 4 driver
10 The JDBC-ODBCbridge is__ . three tiered multithreaded best for any platform all of the above
11 Which driver is called as thin-driver in JDBC? Type 4 driver Type 1 driver Type 3 driver Type 2 driver
12 Which driver type of JDBC is used in either applet or servlet ? Type 1and 2 Type 1and 3 Type 3 and 4 Type 4 only
Type 4 driver is "native Type 4 drivers uses socket
Type 4 drivers are 100 %Java Type 4 drivers can not be
13 Which of the following is false as far as type 4 driver is concern ? protocol, pure java" class to connect to the
compatible used with Netscape.
driver database.
Which of the following JDBCdrivers is known , as a partially java
14 JDBC-ODBCbridge driver Native-API driver Network protocol driver Thin driver
driver?
15 Which class has strong support of the JDBC architecture? The JDBCdriver manager The JDBCdriver test suite The JDBC-ODBCbridge All of these.
21 Which type of statement can execute parameterized queries? PreparedStatement Parameterized Statement CallableStatement All of these.
22 What is used to execute parameterized query ? Statement interface PreparedStatement interface ResultSet interface None of the above
36 Which JDBC drivers will run your program ? The JDBC-ODBCbridge. The JDBCdriver manager. The JDBCdriver test suite None of the above.
JOBC is a Java API that is used to connect and execute query to the
37 TRUE FALSE
database.