Group No. 15 AJP Mcqs.
Group No. 15 AJP Mcqs.
Group No. 15 AJP Mcqs.
a) java.util
b) java.swing
c) java.sql
d) java.lang
Ans: c)
2. which type of Driver allows to access multiple database using a single driver.
a) Type 1 driver
b) Type 2 driver
c) Type 3 driver
d) Type 4 driver
Ans:- c)
a) db,
b) db:
c) jdbc,
d) jdbc:
Ans:- d)
a) Driver
b) Connection
c) Statement
d) resultSet
Ans:- a)
5. Which type of statement can execute parameterized queries?
a) Prepared statement.
b) Parameterized statement.
c) Parameterized and callable statement.
d) All of the above
Ans:- a)
a) True.
b) False.
Ans:- a)
a) Java.sql.Time
b) Java.util.Date
c) Java.util.Timed
d) None of the above
Ans:- b)
a) True
b) False
Ans:- a)
10. In the following JDBC drivers which is known as fully Java driver?
a) Native-API Driver
b) Network Protocol Driver
c) Thin Driver
d) Both B & C
Ans:- d)
a) Connection interface
b) Drive interface
c) Callable Statement interface
d) Drive Property info interface
Ans:- c)
13. Which method returns the canonical name of invoking class object.
a) String getname()
b) String getCononical()
c) String getCononicalName()
d) None of the above
Ans:- c)
14. JDBC API is subclass of the ……..
a) Type 5 driver.
b) Java Application.
c) Both.
d) None of the above.
Ans:- b)
a) Type 1
b) Type 3
c) Type 4
d) None of the above
Ans:- a)
a) Type 1
b) Type 3
c) Type 4
d) None of the above
Ans:- a)
17. Which of the following convert JDBC calls directly or indirectly into vendor specific
database protocol.
a) Type 2
b) Type 4
c) Type 3
d) None of the above
Ans:- c)
19. Which driver is preferred if you are accessing IBM, ORACLE, Sybase.
a) Type 2
b) Type 4
c) Type 3
d) None of the above
Ans:- b)
a) DriverManager.registerDriver()
b) DriverManager.register()
c) Driver.registerDriver()
d) None of the above.
Ans:- a)