JDBC

JDBC

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Srisailam R

Used 84+ 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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers