Search Header Logo

Full Stack development quiz 17

Authored by Gnaneshwar Reddy

Other

University

Used 2+ times

Full Stack development quiz 17
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

30 sec • 1 pt

 What are the major components of the JDBC?

  1. DriverManager, Driver, Connection, Statement, and ResultSet

  1. DriverManager, Driver, Connection, and Statement

  1. DriverManager, Statement, and ResultSet

  1. DriverManager, Connection, Statement, and ResultSet

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the packages in which JDBC classes are defined?

  1. jdbc and javax.jdbc

  1. rdb and javax.rdb

  1. jdbc and java.jdbc.sql

  1. sql and javax.sql

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct sequence to create a database connection?

i. Import JDBC packages.

ii. Open a connection to the database.

iii. Load and register the JDBC driver.

iv. Execute the statement object and return a query resultset.

v. Create a statement object to perform a query.

vi. Close the resultset and statement objects.

vii. Process the resultset.

viii. Close the connection.

  1. i, ii, iii, v, iv, vii, viii, vi

  1. i, iii, ii, v, iv, vii, vi, viii

  1. ii, i, iii, iv, viii, vii, v, vi

  1. i, iii, ii, iv, v, vi, vii, viii

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following method is used to perform DML statements in JDBC?

  1. executeResult()

  1. executeQuery()

  1. executeUpdate()

  1. execute()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which methods are required to load a database driver in JDBC?

  1. getConnection()

  1. registerDriver()

  1. forName()

  1. Both b and c

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should be the correct order to close the database resource?What should be the correct order to close the database resource?

  1. Connection, Statements, and then ResultSet

  1. ResultSet, Connection, and then Statements

  1. Statements, ResultSet, and then Connection

  1. ResultSet, Statements, and then Connection

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

JDBC-ODBC driver is also known as?

  1. Type 4

  1. Type 3

  1. Type 1

  1. Type 2

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?