Search Header Logo

Java Programming Section 6

Authored by Ferdy Aditya

Computers

University

Used 6+ times

Java Programming Section 6
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You must explicitly close ResultSet and Statement objects once they are no longer in use.

True

False

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is a valid JDBC URL?

oracle:thin:localhost@dfot/dfot:1521/xepdb1

jdbc::oracle-thin:dfot/dfot@oracle:1521/xepdb1

jdbc:oracle:thin:dfot/dfot@localhost:1521/xepdb1

oracle:thin:jdbc:dfot/dfot@localhost:1521/xepdb1

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Given the following code, assume there are rows of data in the table EMP. What is the result?

Compiler error on line 2

Runtime error on line 3

2

0

Compile error on line 1

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following classes or interfaces are included in the database vendor driver library? (Choose two)

Statement interface implementation

Java.sql.Connection

Javax.sql.Datasource

Javax.sql.DataSource implementation

Java.sql.DriverManager implementation

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a JDBC interface used to execute SLQ statements?

Statement Interface

PreparedStatement Interface

PrePreparedStatement Interface

CallableStatement Interface

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of JDBC driver will convert the database invocation directly into network protocol?

Type 1 driver

Type 2 driver

Type 3 driver

Type 4 driver

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To execute a stored SQL procedure, which JDBC interface should be used?

Statement Interface

PreparedStatement Interface

PrepreparedStatement Interface

CallableStatement Interface

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