0% found this document useful (0 votes)
35 views3 pages

Unit 5 MCQ Ans

These are the answers of the mcq listed

Uploaded by

vadantmorepcpb69
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views3 pages

Unit 5 MCQ Ans

These are the answers of the mcq listed

Uploaded by

vadantmorepcpb69
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Q. 1 In JDBC imports all Java classes that are concern with Database connectivity.

(a) javax.sql

(b) java.mysql

(c) java.sql

(d) com.sql

Answer: c

Q. 2 Native – protocol pure Java Driver converts into the directly.

(a) JDBC calls, network protocol

(b) ODBC class, network protocol

(c) ODBC class, user calls

(d) JDBC calls, user calls

Answer: d

Q. 3 In following statement rs is an object of interface of JDBC API.


System.out.println(rs.getString(3));

(a) RowSet

(b) Statement

(c) Connection

(d) ResultSet

Answer: d

Q. 4 Which is main component of JDBC API?

(a) DriverManager

(b) Driver

(c) Connection

(d) All of these

Answer: d
Q. 5 What does the following code do : smt = con.createStatement( )

(a) A PreparedStatement object is created to send SQL commands to database.

(b) A Statement object is created to send SQL commands to database.

(c) A CallableStatement is created to send SQL commands to database.

(d) A Statement object is created to execute parameterized SQL commands.

Answer: b

Q. 6 Which of the following function is used to find the column count of the particular ResultSet.

(a) getMetadata( )

(b) metadata( )

(c) getColumnCount( )

(d) getCount( )

Answer: c

Q. 7 The interface to the database is handle by .

(a) ODBC

(b) JDBC

(c) JDBC & ODBC

(d) APIs

Answer: b

Q. 8 The syntax to create a table named “Course”,should begin with .

(a) create new table course

(b) create table course

(c) table course create


(d) new table course

Answer: b

Q. 9 The interface to the database is handle by .

(a) ODBC

(b) JDBC

(c) JDBC & ODBC

(d) APIs

Answer: b

10 The JDBC‐ODBC bridge supports how many concurrent open statements per connection ?

(a) 1

(b) 0

(c) Does not support connection

(d) None of these

Answer: a

You might also like