JDBC

JDBC

Assessment

Quiz

Computers

University

Hard

Created by

Srisailam R

Used 83+ times

FREE Resource

Student preview

quiz-placeholder

31 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the return type of executeUpdate() method?

byte

short

int

long

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the return type of executeQuery() method?

int

ResultSet

array

none of the above

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

what is the package name of "Class"?

java.util

java.sql

java.lang

java.io

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is true about DriverManager class?

It is class from java.lang package

It is a class from java.sql package

It is a interface from java.sql package

It is a class from java.lang package

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is JDBC?

JDBC is a java based protocol.

JDBC is a standard Java API for database-independent connectivity between the Java programming language and a wide range of databases.

JDBC is a specification to tell how to connect to a database.

Joint Driver for Basic Connection

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following encapsulates an SQL statement which is passed to the database to be parsed, compiled, planned and executed?

DriverManager

JDBC driver

Connection

Statement

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid type of statement in JDBC?

Statement

PreparedStatement

CallableStatement

QueryStatement

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?