22203C0007 Test 1
22203C0007 Test 1
Student Name : DAREKAR ADITYA VIJAY Roll No. : 22203C0007 Enrollment No. : 2205680144
a) b)
1 b b 1
Statement Interface PreparedStatement Interface
c) d)
a)
b)
This class provides the functionality
This is an interface that abstracts the vendor
2 necessary for managing one or more database b d 0
specific connection protocol
drivers.
c) d)
This class is used to discover properties This class is used to discover properties
required to obtain the connection required to obtain the connection
a) b)
3 c c 1
Driver SqlData
c) d)
DriverManager ResultSet
a) b)
4 a a 1
data sources data packets
c) d)
c) d)
Using which classes and interfaces of javax.sql package we can establish and manage
connection with the data source?
a) b)
6 c c 1
Only DataSource DataSource and DataManager
c) d)
Which method is of the PreparedStatement object are used to set the parametrs of the SQL
statements
a) b)
7 c d 0
getXXX() setParameter()
c) d)
setPath() setXXX()
a) b)
8 a a 1
DataSource datasopurce
c) d)
a) b)
9 c d 0
JDBC 2.0 JDBC 3.0
c) d)
Which of the following is/are charecteristics of JDBC (1) Supports a wide level of
portability. (2) Provides Java Interfaces that are compatible with Java Applications . These
providers are also responsible for providing the driver services. (3) Provides higher level
APIs for application programmers. The JDBC API specification is used as an interface for
the applications and DBMS. (4)The JDBC call to a Java application is made by the SQL
Statements. These statements are resposible for entire communication with the database.
10 a a 1
a) b)
a) b)
11 c c 1
java.sql javax.sql
c) d)
Which method is invoked on the statement object by p-assing the SQL statements as
parameter
a) b)
12 d c 0
getXXX() setXXX()
c) d)
_____________ refers to pure Java Driver that uses a middleware driver to connect to a
database
a) b)
13 c c 1
Type-1 Driver Type-2 Driver
c) d)
a) b)
14 b b 1
Order Command Interface Oracle Call Interface
c) d)
Which method is of the connection object is used to get the object of the
PreparedStatement interface?
a) b)
15 d c 0
executeStatement() updateStatement()
c) d)
preparedStatement() getStatement()
The java.sql package provides several Java _______ class that correspond to some of the
SQL types
a) b)
16 d c 0
Connection Management Database Access
c) d)
17 a) b) c 0
c) d)
a)
b)
This class provides the functionality
This is an interface that abstracts the vendor
18 necessary for managing one or more database a a 1
specific connection protocol.
drivers.
c) d)
This class is used to discover properties This interface abstracts most of the
required to obtain the connection interaction with the database.
a) b)
19 b a 0
DataSource Object Java Application
c) d)
a) b)
20 a a 1
DataSource,XADataSource,ConnectionPoolDataSourceData.XAData,ConnectionPoolData
c) d)
Source.XASource,ConnectionPoolSource source.xadatasource,connectionpoll
Total Marks : 20
Obtained : 11