Configure the DataSource

Configure the DataSource

Professional Development

26 Qs

quiz-placeholder

Similar activities

Connections

Connections

Professional Development

23 Qs

ICTPRG431Session 2 Introduction Database Management Systems Quiz

ICTPRG431Session 2 Introduction Database Management Systems Quiz

Professional Development

22 Qs

IS.Qz.wk.7.set.A

IS.Qz.wk.7.set.A

Professional Development

25 Qs

JSON

JSON

Professional Development

23 Qs

A+ - 1C - Explain Legacy Cable Types

A+ - 1C - Explain Legacy Cable Types

Professional Development

21 Qs

Computer Application "Filler" Assessment (T1a1)

Computer Application "Filler" Assessment (T1a1)

Professional Development

25 Qs

Data Quality Quiz

Data Quality Quiz

Professional Development

23 Qs

SQL

SQL

12th Grade - Professional Development

23 Qs

Configure the DataSource

Configure the DataSource

Assessment

Quiz

Computers

Professional Development

Hard

Created by

ANIL KUMAR

FREE Resource

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

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?