Unit.5mcq[1]
Unit.5mcq[1]
Unit.5mcq[1]
10) Using which classes and interfaces of javax.sql package we can establish and
manageconnection with the data source?
a) Only DataSource
b) DataSource and DataManager
c) DataSource and DriverManager
d) Only DriverManager
14) Which of the following is not the component of 3-tier architecture of JDBC
a. DataSource Object
b. Java Application
c. Java API *
d. Database
16) The javax.sql package is used to develop the client/server sided applications and
provide server sided extension facilities. State the statement is true or false
a) True
b) False
17) Using which classes and interfaces of javax.sql package we can establish and
manage connection with the data source?
a) Only DataSource
b) DataSource and DataManager
c) DataSource and DriverManager
d) Only DriverManager
18) Which method is invoked on the statement object by p-assing the SQL statements as
parameter.
a. getXXX()
b. setXXX()
c. executeXXX()
d. All of the Above
20) The excute method ....................... while using the PreparedStatement objects.
a. takes nth number of parameters. *
b. takes only one parameters.
c. do no takes any parametrs.
d. none of the above.
21) In the three tier model the middle tier of the services acts as a mediator between
________________________ and _________________.
a) Java application and databases
22) JDBC is a --------------------- interface, which means that it is used to invoke SQL commands
directly.
a) high level
b) low level
c) middle level
d) top level
d) None
b) Exception
c) DatabaseException
d) SQLException
26) Name the type number of driver belongs to JDBC ODBC Bridge driver?
a) Type 1
b) Type 2
c) Type 3
d) Type 4
28) Native – protocol pure Java converts ……….. in to the ………… used by DBMSs directly.
a) JDBC calls, network protocol
b) Independent
c) Both a and b
d) None
30) ODBC requires configuring _______ which represents the target database.
a) Data String Name
c) Domain Name
d) Database name