JDBC_Objective_Exam_2

JDBC_Objective_Exam_2

Professional Development

15 Qs

quiz-placeholder

Similar activities

Software Development and SuccessMaker Quiz

Software Development and SuccessMaker Quiz

Professional Development

20 Qs

Cloud Computing Unit-2-1

Cloud Computing Unit-2-1

Professional Development

20 Qs

Introduction to Computer Systems:  Basic elements

Introduction to Computer Systems: Basic elements

University - Professional Development

17 Qs

Git & Github

Git & Github

Professional Development

10 Qs

Emerging Trends in Cloud Computing!

Emerging Trends in Cloud Computing!

Professional Development

18 Qs

Week1

Week1

University - Professional Development

10 Qs

Cloud QUIZ

Cloud QUIZ

University - Professional Development

12 Qs

Final practice test mod 7

Final practice test mod 7

Professional Development

17 Qs

JDBC_Objective_Exam_2

JDBC_Objective_Exam_2

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Naganjaneyulu S

Used 18+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which class or interface contains the transaction control methods setAutoCommit(),commit(), and rollback()?

Statement

Connection

ResultSet

none of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which character is used to represent an input parameter in CallableStatement?

%-Percentage symbol

#-hash

?-Question Mark

*-star

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When the message “No Suitable Driver” occurs ?

When the type 4 driver is used?

When the driver is not registered by Class.forName() method

When the JDBC database URL passed is not constructed properly

When the user name, password and the database does not match

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does setAutoCommit(false) do?

commits transaction after each query

explicitly commits transaction

does not commit transaction automatically after each query

never commits transaction

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For inserting data into database Which Interface is used in JDBC Program?

Statement

PreparedStatement

CallableStatement

ParameterisedStatement

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Write the code for loading a Type-4 driver in JDBC program.

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What are different Exceptions thrown in JDBC?

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?