Search Header Logo

Configure the DataSource

Authored by ANIL KUMAR

Computers

Professional Development

Configure the DataSource
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

26 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a DataSource in Java?

a) Instantiate DataSource implementation
b) Set DataSource properties
c) Register with JNDI service
d) None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to connect DataSource in Java?

a) Use getConnection() method
b) Use getConnection(String user, String password)
c) Use getConnection(String url)
d) Use connectDataSource() method

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to configure a DataSource in Spring Boot?

a) Define @Bean of DataSource type
b) Define @Component of DataSource type
c) Use @Configuration annotation
d) Use @Service annotation

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to configure with database in Java?

a) Register driver class
b) Create connection object
c) Execute the query
d) Close the connection object

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a DataSource in Java?

a) Representation of data source
b) Facility for storing data
c) File with rows and columns
d) All of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a DataSource?

a) Run Data Source Configuration Wizard
b) Select Project > Add New Data Source
c) Choose database data-source type
d) All of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an example of a DataSource?

a) Inventory tables in a fashion brand
b) Customer information in a bank
c) Product details in an e-commerce site
d) All of the above

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?