Search Header Logo

CP1222 - WEEK 3-4

Authored by Albert Bungcaras

Computers

12th Grade

Used 63+ times

CP1222 - WEEK 3-4
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Add import statements to your Java program to import required classes in your Java code.

Import JDBC Packages

Register JDBC Driver

Database URL Formulation:

Create Connection Object:

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

This is to create a properly formatted address that points to the database to which you wish to connect.

Import JDBC Packages

Register JDBC Driver

Database URL Formulation:

Create Connection Object:

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

This step causes the JVM to load the desired driver implementation into memory so it can fulfill your JDBC requests.

Import JDBC Packages

Register JDBC Driver

Database URL Formulation:

Create Connection Object:

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Code a call to the DriverManager object's getConnection( ) method to establish actual database connection

Import JDBC Packages

Register JDBC Driver

Database URL Formulation:

Create Connection Object:

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

jdbc:sybase:Tds:hostname: port Number/databaseName

MySQL

ORACLE

DB2

Sybase

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

jdbc:db2:hostname:port Number/databaseName

MySQL

ORACLE

DB2

Sybase

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

jdbc:oracle:thin:@hostname:port Number:databaseName

MySQL

ORACLE

DB2

Sybase

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?