Advanced Java Programming (3160707) MCQs

MCQs of JDBC Programming

Showing 41 to 45 out of 45 Questions
41.

Type 4 driver used in situation_______________.

(a)

When accessing multiple types of databases at the same time.

(b)

When accessing one type of database.

(c)
When type 1 driver is not available
(d)

When development and testing are done.

Answer:

Option (b)

42.

Which of following is use of next() method of ResultSet object ?

(a)

Moves the cursor to the specified row.

(b)

Moves the cursor forward one row from its current position.

(c)
Moves the cursor the given number of rows forward or backward, from where it is currently pointing.
(d)

Moves the cursor to the first row.

Answer:

Option (b)

43.

Which of following interface is used to get driver name ?

(a)

DatabaseMetadata

(b)

ResultSetMetaData

(c)
MetaData
(d)

ResultSet

Answer:

Option (a)

44.

Which of following is return type of executeBatch() ?

(a)

int[]

(b)

Integer

(c)
Integer[]
(d)

int

Answer:

Option (a)

45.

Which of the following prevent dirty reads, non-repeatable reads, and phantom reads in JDBC ?

(a)

TRANSACTION_READ_COMMITTED

(b)

TRANSACTION_READ_UNCOMMITTED

(c)

TRANSACTION_REPEATABLE_READ

(d)

TRANSACTION_SERIALIZABLE

Answer:

Option (d)

Showing 41 to 45 out of 45 Questions