Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

22203C0007 Test 2

Download as pdf or txt
Download as pdf or txt
You are on page 1of 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

OCI stands for _____________

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

c) d)

Operation Command Interface Open Command Interface

2 a) b) b 0
c) d)

Which interface comes under DatabaseMetadata?

a) b)
3 d d 1
java.sql.DatabaseMetadata java.sql.ResultSetMetaData

c) d)

Java.sql.ParameterMetadata All of the above

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)

All of the above None of the above

c) d)

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

............................. implementation are provided by the driver vendor.

a) b)
5 DataSource DataManager a a 1

c) d)
DriverManager. None

JDBC-ODBC Bridge can be availed by importing __________ package.

a) b)
6 d b 0
java.sql sun.jdbc.odbc

c) d)

java.jdbcodbc None of the above

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


multiple times

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

c) d)

CallableStatement Interface PreparedStatement Class

_____________ has an important role in JDBC Architechtrue

a) b)
8 c c 1
Driver SqlData

c) d)

DriverManager ResultSet

The javax.sql provides ................................ implementations which are used in building


server-side applications

a) b)
9 b d 0
JNDI-based lookup to access databases Connection Pooling

c) d)

Distributed transaction all of the above

DriverManager is a …….. class in JDBC API.

a) b)
10 a b 0
Abstract Non-Abstract

c) d)

main none of the above

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)

Data Types Both (a) and (b)

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)

Open Database Connectivity (ODBC) Domain Name Server

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

The excute method ....................... while using the PreparedStatement objects.

a) b)
14 a c 0
takes nth number of parameters. takes only one parameters.

c) d)

do no takes any parametrs. none of the above.

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


application

a) b)
15 a a 1
data sources data packets

c) d)

socket all of the above

What is the description of java.sql.DriverPropertyInfo?

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.

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

a) b)
17 a a 1
DataSource Object Java Application

c) d)

Java API Database

Which interface is included in Data Types

a) b)
18 d c 0
java.sql.Types java.sql.Date

c) d)

java.sql.Blob All of the above

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

a) b)
19 d d 1
JDBC 2.0 JDBC 3.0

c) d)

JDBC 4.0 JDBC 4.1

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

Student Signature _____________________________

You might also like