0% found this document useful (0 votes)
14 views4 pages

22203C0007 Test 1

Uploaded by

adityadarekar69
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views4 pages

22203C0007 Test 1

Uploaded by

adityadarekar69
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Online Exam Result

Exam : AJP - Chapter 5 - Interacting with Database Class : CO5I Div : C

Student Name : DAREKAR ADITYA VIJAY Roll No. : 22203C0007 Enrollment No. : 2205680144

Sr. Your Correct


Question Marks
No Answer Answer

......................... can be used to represent a precompiled query , which can be executed


multiple times

a) b)
1 b b 1
Statement Interface PreparedStatement Interface

c) d)

CallableStatement Interface PreparedStatement Class

What is the description of java.sql.Connection?

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

_____________ has an important role in JDBC Architechtrue

a) b)
3 c c 1
Driver SqlData

c) d)

DriverManager ResultSet

The javax.sql.DataSource interface represents _____________ related to java application

a) b)
4 a a 1
data sources data packets

c) d)

socket all of the above

Which interface comes under DatabaseMetadata?


a) b)
5 a d 0
java.sql.DatabaseMetadata java.sql.ResultSetMetaData

c) d)

Java.sql.ParameterMetadata All of the above

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)

DataSource and DriverManager Only DriverManager

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()

Connections made by using __________ objects are implemented on the middle-tier


connection pool.

a) b)
8 a a 1
DataSource datasopurce

c) d)

datasorce none of the above

Which of the following is JDBC version was released with Java EE 6

a) b)
9 c d 0
JDBC 2.0 JDBC 3.0

c) d)

JDBC 4.0 JDBC 4.1

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)

All of the above None of the above


c) d)

Only 2,3 and 4 Only 1,2 and 3

Following is/are the packages for JDBC

a) b)
11 c c 1
java.sql javax.sql

c) d)

Both a and b None of the above

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)

executeXXX() All of the Above

_____________ 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)

Type-3 Driver Type-4 Driver

OCI stands for _____________

a) b)
14 b b 1
Order Command Interface Oracle Call Interface

c) d)

Operation Command Interface Open Command Interface

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)

Data Types Both (a) and (b)

17 a) b) c 0
c) d)

What is the description of java.sql.DriverManager?

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.

Which of the following is not the component of 3-tier architecture of JDBC

a) b)
19 b a 0
DataSource Object Java Application

c) d)

Java API Database

The javax.sql.CommonDataSource provides the methods that are common between


______________ interfaces

a) b)
20 a a 1
DataSource,XADataSource,ConnectionPoolDataSourceData.XAData,ConnectionPoolData

c) d)

Source.XASource,ConnectionPoolSource source.xadatasource,connectionpoll

Total Marks : 20

Obtained : 11

Student Signature _____________________________

You might also like