Show List

Quiz - JDBC - 3

50%

Public Average Score
Select the right answer for below questions:

What is the role of JDBC Driver in JDBC?
To store database data
To execute database queries
To communicate with the database
To store metadata about the database
To communicate with the database

Which of the following is not a type of JDBC Driver?
JDBC-ODBC Bridge Driver
Native API Driver
Network Protocol Driver
Database Administration Driver
Database Administration Driver

Which of the following is the most efficient JDBC Driver type?
JDBC-ODBC Bridge Driver
Native API Driver
Network Protocol Driver
Thin Driver
Thin Driver

Which of the following is not a part of JDBC URL?
Subprotocol
Database Name
Protocol
Server Name
Protocol

What is the use of ResultSetMetaData in JDBC?
To store metadata about the ResultSet
To execute database queries
To store database data
To communicate with the database
To store metadata about the ResultSet

What is the use of Blob class in JDBC?
To store text data
To execute database queries
To store large binary data
To communicate with the database
To store large binary data

What is the use of Clob class in JDBC?
To store large binary data
To store text data
To execute database queries
To communicate with the database
To store text data

What is the use of executeBatch method in JDBC?
To execute multiple SQL statements as a batch
To execute a single SQL statement
To store result set
To store metadata
To execute multiple SQL statements as a batch

What is the use of getGeneratedKeys method in JDBC?
To execute a SELECT statement
To execute an UPDATE statement
To execute a DELETE statement
To retrieve generated keys from an insert statement
To retrieve generated keys from an insert statement

What is the use of getMoreResults method in JDBC?
To retrieve generated keys from an insert statement
To determine if more results are available
To execute a SELECT statement
To execute an UPDATE statement
To determine if more results are available

Submit
Retry
{"qz1-953105":"To communicate with the database","qz1-953106":"Database Administration Driver","qz1-953107":"Thin Driver","qz1-953108":"Protocol","qz1-953109":"To store metadata about the ResultSet","qz1-953110":"To store large binary data","qz1-953111":"To store text data","qz1-953112":"To execute multiple SQL statements as a batch","qz1-953113":"To retrieve generated keys from an insert statement","qz1-953114":"To determine if more results are available"}

    Leave a Comment


  • captcha text