

MCQOPTIONS
Saved Bookmarks
This section includes 20 Mcqs, each offering curated multiple-choice questions to sharpen your Spring knowledge and support exam preparation. Choose a topic below to get started.
1. |
Data source implementations provided by different vendors and projects. |
A. | C3PO |
B. | Apache Commons DBCP |
C. | All of the mentioned |
D. | None of the mentioned |
Answer» D. None of the mentioned | |
2. |
Standard interface defined by the JDBC specification that factories Connection instances. |
A. | javax.sql.DataAccess |
B. | javax.sql.DataSource |
C. | javax.sql.Data |
D. | javax.sql.DataSourceAccess |
Answer» C. javax.sql.Data | |
3. |
To access the database with JDBC:- |
A. | DAO interface |
B. | DAO Class |
C. | DataAccess interface |
D. | None of the mentioned |
Answer» B. DAO Class | |
4. |
The general purpose of the Data Access Object (DAO) pattern is to avoid these logic related problems by separating data access logic from business logic and presentation logic. |
A. | True |
B. | False |
Answer» B. False | |
5. |
JDBC Properties for Connecting to the Application Database. |
A. | Driver Class |
B. | URL |
C. | Username |
D. | All of the mentioned |
Answer» E. | |
6. |
THE_GENERAL_PURPOSE_OF_THE_DATA_ACCESS_OBJECT_(DAO)_PATTERN_IS_TO_AVOID_THESE_LOGIC_RELATED_PROBLEMS_BY_SEPARATING_DATA_ACCESS_LOGIC_FROM_BUSINESS_LOGIC_AND_PRESENTATION_LOGIC.?$ |
A. | True |
B. | False |
Answer» B. False | |
7. |
Standard interface defined by the JDBC specification that factories Connection instances.$ |
A. | javax.sql.DataAccess |
B. | javax.sql.DataSource |
C. | javax.sql.Data |
D. | javax.sql.DataSourceAccess |
Answer» C. javax.sql.Data | |
8. |
To_access_the_database_with_JDBC:-$ |
A. | DAO interface |
B. | DAO Class |
C. | DataAccess interface |
D. | None of the mentioned |
Answer» B. DAO Class | |
9. |
Which DataSource is not stable in MultiThreaded Environment? |
A. | DriverManagerDataSource |
B. | SingleConnectionDataSource |
C. | All of the mentioned |
D. | None of the mentione |
Answer» D. None of the mentione | |
10. |
SingleConnectionDataSource (a DriverManagerDataSource subclass). As its name indicates, this maintains only a single connection. |
A. | True |
B. | False |
Answer» B. False | |
11. |
Spring also provides several convenient but less powerful data source implementations. |
A. | DriverManagerDataSource |
B. | DriverManagerData |
C. | DriverManagerDataAccess |
D. | DriverManagerDataSourceAccess |
Answer» B. DriverManagerData | |
12. |
Data_source_implementations_provided_by_different_vendors_and_projects. |
A. | C3PO |
B. | Apache Commons DBCP |
C. | All of the mentioned |
D. | None of the mentioned |
Answer» D. None of the mentioned | |
13. |
JDBC Properties for Connecting to the Application Database? |
A. | Driver Class |
B. | URL |
C. | Username |
D. | All of the mentioned |
Answer» E. | |
14. |
To start the Derby server in the client/server mode. |
A. | startNetworkServer java file |
B. | startNetworkServer script |
C. | startNetwork script |
D. | all of the mentioned |
Answer» C. startNetwork script | |
15. |
For testing purposes, the client/server mode is more appropriate. |
A. | True |
B. | False |
Answer» B. False | |
16. |
Mode which Derby prefers to run in:- |
A. | embedded |
B. | client/server |
C. | all of the mentioned |
D. | none of the mentioned |
Answer» D. none of the mentioned | |
17. |
Database Engine which uses low memory consumption and easy configuration. |
A. | SQL |
B. | MySQL |
C. | Apache Derby |
D. | None of the mentioned |
Answer» D. None of the mentioned | |
18. |
An ORM framework persists your objects according to the mapping metadata you provide. |
A. | True |
B. | False |
Answer» B. False | |
19. |
ORM which isn’t supported by Spring:-$ |
A. | Hibernate |
B. | JDO |
C. | TopLink |
D. | All of the mentioned |
Answer» E. | |
20. |
Spring supports most of the popular ORM (or data mapper) frameworks. |
A. | Hibernate |
B. | JDO |
C. | JPA |
D. | All of the mentioned |
Answer» E. | |