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

Unit 5 MCQ

These are some mcq to solve and practice

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)
25 views3 pages

Unit 5 MCQ

These are some mcq to solve and practice

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

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

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

Q. 4 Which is main component of JDBC API?

(a) DriverManager

(b) Driver

(c) Connection

(d) All of these

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.


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( )

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

(a) ODBC

(b) JDBC

(c) JDBC & ODBC

(d) APIs

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

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

(a) ODBC

(b) JDBC

(c) JDBC & ODBC

(d) APIs

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

You might also like