Java Programming Section 6

Java Programming Section 6

University

14 Qs

quiz-placeholder

Similar activities

VLAN and Trunk Review

VLAN and Trunk Review

University

19 Qs

CCNA 2 Chapter 8

CCNA 2 Chapter 8

University

17 Qs

Cisco 1, Module 10

Cisco 1, Module 10

University

13 Qs

CH 3(2)-Database Design

CH 3(2)-Database Design

University

10 Qs

Computer Fundamentals

Computer Fundamentals

University

10 Qs

iGCSE ICT: Chapter 1

iGCSE ICT: Chapter 1

KG - University

12 Qs

JDBC

JDBC

University

10 Qs

JDBC

JDBC

University

15 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?