JDBC MCQ Questions And Answers - Java Technologies

JDBC MCQs : This section focuses on "basics" of JDBC. These Multiple Choice Questions (MCQ) should be practiced to improve the JDBC skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.

1. JDBC stands for?

A. Java Database Connect
B. Java Database Connectivity
C. Json Database Connectivity
D. Json Database Connect

View Answer


2. The JDBC API supports __________ processing models for database access

A. two-tier
B. three-tier
C. both two-tier and three-tier
D. None of the above

View Answer


3. JDBC Architecture consists of ______ layers.

A. 2
B. 3
C. 4
D. 5

View Answer


4. The java.sql and javax.sql are the primary packages for JDBC 4.0.

A. Yes
B. No
C. Can be yes or no
D. Can not say

View Answer


5. How many types of JDBC drivers?

A. 1
B. 2
C. 3
D. 4

View Answer


6. The Connection object is created by using __________ method of DriverManager class. DriverManager is the factory for connection.

A. createConnection()
B. setConnection()
C. getConnection()
D. Connect()

View Answer


7. Which represents a collection of binary data stored as a single entity in the database management system?

A. Clob
B. Blob
C. Glob
D. Dlob

View Answer


8. The ___________ method returns the object of java.lang.Class object.

A. Class.Name()
B. Class.forAttribute()
C. Class.Attributes()
D. Class.forName()

View Answer


9. _______ method can be used for any SQL statements(Select and Update both).

A. executeQuery
B. executeUpdate
C. execute
D. All of the above

View Answer


10. The Statement object is created by using createStatement() method of Connection class.

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say

View Answer




Discussion


* You must be logged in to add comment.