Our experts have gathered these JDBC MCQs through research, and we hope that you will be able to see how much knowledge base you have for the subject of JDBC by answering these 100+ multiple-choice questions.
Get started now by scrolling down!
A. PHP
B. ABAP
C. Java
D. C#
A. All of the above
B. Using the reference implementation constructor that takes a Connection object
C. Using an instance of RowSetFactory, which is created from the class RowSetProvider
D. Using the reference implementation default constructor
A. end
B. beforeFirst
C. next
D. previous
A. BatchUpdateException
B. SQLTransientException
C. SQLFailureException
D. SQLNonTransientException
A. Type 4: 100% Pure Java
B. Type 3: JDBC-Net pure Java
C. Type 1: JDBC-ODBC Driver Bridge
D. Type 2: JDBC-Native API
A. TYPE_SCROLL_INSENSITIVE
B. TYPE_SCROLL_SENSITIVE
C. TYPE_BACKWARD_ONLY
D. TYPE_FORWARD_ONLY
A. Exception
B. SQLError
C. SQLWarning
D. SQLMethod
A. Changes the String in the specified row specified by its index to the value of s
B. Changes the String in the specified column specified by its name to the value of s
C. Changes the String in the specified row specified by its name to the value of s
D. Changes the String in the specified column specified by its index to the value of s
A. addSQL
B. updateList
C. select
D. addBatch
A. CallableStatement
B. ProcedureStatement
C. Statememt
D. PreparedStatement
A. getConnection(String url, Properties prop)
B. getConnection(String url, String user, String password)
C. getConnections()
D. getConnection(String url)
A. effect
B. error code
C. description of the error
D. SQLState code
A. Savepoint
B. Marker
C. Reference
D. Anchor
A. the number of columns affected by the executon of the SQL statement
B. the number of rows affected by the executon of the SQL statement
C. boolean value of true if a resultset object can be retrieved
D. Returns a Resultset object
A. connection point
B. pointer
C. savepoint
D. stored procedure
A. an integer representing the number of rows affected by the SQL statement
B. true if the first object that the query returns is a ResultSet object
C. one ResultSet object
D. multiple ResultSet objects
A. PreparedStatement
B. ResultSet
C. CallableStatement
D. Statement
A. Callable Statement
B. Stored Procedure
C. Query
D. Prepared Statement
A. OUT
B. CONSTANT
C. INOUT
D. IN
A. False
B. True
A. jdbc
B. .Net
C. odbc
D. Microsoft
A. exit() method
B. escape() method
C. close() method
D. shutdown() method
A. True
B. False
A. True
B. False
A. True
B. False
A. ParameterStatement
B. PreparedStatement
C. Statement
D. RuntimeStatement
A. 12
B. 6
C. Friday
D. null
A. Password
B. Database url
C. Username
D. Website url
A. Server name
B. Port name
C. Client name
D. Database name
A. False
B. True
A. SocketManager
B. ClassManager
C. ConnectionManager
D. DriverManager
A. True
B. False
A. False
B. True
A. WebRowSet
B. All of the above
C. JoinRowSet
D. CachedRowSet
A. getString()
B. getInt()
C. getNumber()
D. getDate()
A. Call another method
B. get name for the Class
C. register the jdbc driver
D. Rename class
A. the cursor can scroll backwards and forwards
B. the cursor can move forward in the result set
C. the cursor can scroll forwards and backwards
D. the cursor can move backards in the result set
A. Result
B. ResultSet
C. SQLCursor
D. ReturnSet
A. Database
B. .Net
C. Java
D. Database drivers
A. getBinaryStream
B. getString
C. getCharacterStream
D. All of the above
A. confirm
B. save
C. apply
D. commit
A. NullException
B. SQLException
C. SecurityException
D. AccessException
A. Java Data Behavior Control
B. Java Database Connectivity
C. Java Direct Binary Connection
D. Java Database Control
A. JavaDB
B. IBM DB2
C. MySQL
D. Microsoft Access
A. False
B. True
A. False
B. True
A. javax.swing
B. java.nio
C. java.net
D. java.sql
A. time
B. date
C. seconds
D. timestamp
A. ArithmeticException
B. NullPointerException
C. FileNotFoundException
D. SQLException
A. rollback
B. escape
C. undo
D. back