Search Header Logo

Online Quiz On Unit 3&4

Authored by Rahul Badgujar

Computers

University

Used 3+ times

Online Quiz On Unit 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

45 sec • 1 pt

Which of the following methods is used to establish a connection with the database in JDBC?

connect()

openConnection()

DriverManager.getConnection()

getConnection()

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is NOT a type of JDBC driver?

Type-1 Driver

Type-2 Driver

Type-3 Driver

Type-5 Driver

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the executeQuery() method in JDBC do?

Executes SQL update commands like INSERT, UPDATE, or DELETE

Executes a SQL SELECT statement

Closes the connection to the database

Executes any SQL statement, including creating or dropping tables

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which interface is used to retrieve data from the database after executing a query?

Statement

ResultSet

Connection

PreparedStatement

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the purpose of the RMI Registry?

It acts as a database for storing remote objects.

It manages the remote method invocations.

It allows clients to locate remote objects by name.

It is used to create remote objects.

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does a stub represent in RMI?

It is an actual implementation of a remote object.

It acts as a proxy on the client side to forward requests to the remote object.

It manages the RMI Registry.

It stores the remote object on the server side.

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which method is used by the client to locate and obtain a reference to a remote object from the RMI Registry?

Naming.lookup()

Naming.rebind()

Registry.getReference()

Remote.lookup()

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?