22203C0007 Test 2
22203C0007 Test 2
22203C0007 Test 2
Student Name : DAREKAR ADITYA VIJAY Roll No. : 22203C0007 Enrollment No. : 2205680144
a) b)
1 b b 1
Order Command Interface Oracle Call Interface
c) d)
2 a) b) b 0
c) d)
a) b)
3 d d 1
java.sql.DatabaseMetadata java.sql.ResultSetMetaData
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.
4 a a 1
a) b)
c) d)
a) b)
5 DataSource DataManager a a 1
c) d)
DriverManager. None
a) b)
6 d b 0
java.sql sun.jdbc.odbc
c) d)
a) b)
7 b b 1
Statement Interface PreparedStatement Interface
c) d)
a) b)
8 c c 1
Driver SqlData
c) d)
DriverManager ResultSet
a) b)
9 b d 0
JNDI-based lookup to access databases Connection Pooling
c) d)
a) b)
10 a b 0
Abstract Non-Abstract
c) d)
The java.sql package provides several Java _______ class that correspond to some of
the SQL types
a) b)
11 c c 1
Connection Management Database Access
c) d)
The ............................. Naming service is used to provide a logical name for the
DataSource to make a connection
b)
a)
12 b b 1
Java Naming anfd Directory Interface
Java Database Connectivity (JDBC)
(JNDI)
c) d)
Which method is of the connection object is used to get the object of the
PreparedStatement interface?
a) b)
13 c c 1
executeStatement() updateStatement()
c) d)
preparedStatement() getStatement()
a) b)
14 a c 0
takes nth number of parameters. takes only one parameters.
c) d)
a) b)
15 a a 1
data sources data packets
c) d)
a)
b)
This class provides the functionality
This is an interface that abstracts the vendor
16 necessary for managing one or more specific connection protocol c c 1
database 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)
17 a a 1
DataSource Object Java Application
c) d)
a) b)
18 d c 0
java.sql.Types java.sql.Date
c) d)
a) b)
19 d d 1
JDBC 2.0 JDBC 3.0
c) d)
Which method is of the PreparedStatement object are used to set the parametrs of the
SQL statements
a) b)
20 d d 1
getXXX() setParameter()
c) d)
setPath() setXXX()
Total Marks : 20
Obtained : 14