Java Programming Section 6

Java Programming Section 6

University

14 Qs

quiz-placeholder

Similar activities

JDBC

JDBC

University

13 Qs

Servlets

Servlets

University

15 Qs

CH 3(2)-Database Design

CH 3(2)-Database Design

University

10 Qs

MySQL Python Connectivity

MySQL Python Connectivity

12th Grade - University

10 Qs

U3.1. Connections (JDBC)

U3.1. Connections (JDBC)

University

18 Qs

JSP

JSP

University

10 Qs

U3.2. Statements (JDBC)

U3.2. Statements (JDBC)

University

17 Qs

U6 Conectividad a bases de datos

U6 Conectividad a bases de datos

University

10 Qs

Java Programming Section 6

Java Programming Section 6

Assessment

Quiz

Computers

University

Hard

Created by

Ferdy Aditya

Used 6+ times

FREE Resource

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

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?