Create the DAO Layer

Create the DAO Layer

University

29 Qs

quiz-placeholder

Similar activities

Kuis Jaringan Komputer - OSI Layer

Kuis Jaringan Komputer - OSI Layer

University

25 Qs

OSI Model

OSI Model

10th Grade - University

25 Qs

TensorFlow

TensorFlow

University

25 Qs

Networking 2

Networking 2

University

25 Qs

OSI yuk

OSI yuk

10th Grade - University

25 Qs

Blockchain Workshop

Blockchain Workshop

University

25 Qs

Layering Models

Layering Models

University

25 Qs

Quiz 2 (Module 3) - BSIT 2-2

Quiz 2 (Module 3) - BSIT 2-2

University

25 Qs

Create the DAO Layer

Create the DAO Layer

Assessment

Quiz

Computers

University

Hard

Created by

ANIL KUMAR

FREE Resource

29 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a DAO layer in Java?
a) A layer that separates client interface from data access mechanisms.
b) A layer that adapts access APIs to a generic client interface.
c) A layer that handles business logic and persistence operations in Java.
d) A layer that provides data transfer between different layers of an application.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to DAO in Java?
a) By dividing high-level business services from low-level data accessing APIs or actions.
b) By implementing a DAO interface for common operations on model objects.
c) By using a data transfer object to store and transfer data between layers.
d) By encapsulating the details of the persistence layer and providing a CRUD interface.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which layer for DAO?
a) Business layer.
b) Presentation layer.
c) Persistence layer.
d) Service layer.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is DAO and POJO same?
a) Yes, both are used to handle data access and modification.
b) No, DAO is a facade for database access while POJO is a simple Java object.
c) Yes, both provide a generic interface for client interactions.
d) No, DAO is a lower-level concept compared to POJO.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an example of a DAO?
a) DASH, a cryptocurrency managed by users.
b) Augur, a prediction market platform.
c) Steemit, a social media platform.
d) MakerDAO, a software that maintains a stablecoin.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is DAO and repository same?
a) Yes, both are used for data persistence.
b) No, DAO is a lower-level concept compared to a repository.
c) Yes, both provide an abstraction for collection of objects.
d) No, DAO is closer to storage systems while a repository is closer to domain objects.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is DAO and DTO in Java?
a) DAO is a bridge between the application and the database, while DTO stores and transfers data.
b) DAO is responsible for encapsulating persistence layer details, while DTO handles CRUD operations.
c) DAO is used for object relational mapping, while DTO is used for data persistence.
d) DAO acts as a data store, while DTO acts as a bridge between layers.

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?