

MCQOPTIONS
Saved Bookmarks
This section includes 14 Mcqs, each offering curated multiple-choice questions to sharpen your Spring knowledge and support exam preparation. Choose a topic below to get started.
1. |
Spring Roo’s root folder (or any of the source packages) is:- |
A. | src/main/java, src/main/resources |
B. | src/test/java |
C. | src/test/resources |
D. | all of the mentioned |
Answer» E. | |
2. |
To deploy the application to a web container:- |
A. | mvn tomcat:run |
B. | mvn jetty:run |
C. | all of the mentioned |
D. | none of the mentioned |
Answer» D. none of the mentioned | |
3. |
Command to create a Spring MVC controller that provides a UI:- |
A. | controller scaff –class ~.web.CustomerController –entity ~.domain.Customer |
B. | controller scaff –class ~.web.CustomerController –entity |
C. | none of the mentioned |
D. | all of the mentioned |
Answer» B. controller scaff –class ~.web.CustomerController –entity | |
4. |
persistence setup –database HYPERSONIC_IN_MEMORY –provider HIBERNATE command creates files:- |
A. | src/main/resources/META-INF/persistence.xml |
B. | src/main/resources/META-INF/spring/database.properties |
C. | all of the mentioned |
D. | none of the mentioned |
Answer» D. none of the mentioned | |
5. |
SPRING_ROO‚ÄÖ√Ñ√∂‚ÀÖ√Ë‚ÀÖ¬•S_ROOT_FOLDER_(OR_ANY_OF_THE_SOURCE_PACKAGES)_IS:-?$# |
A. | src/main/java, src/main/resources |
B. | src/test/java |
C. | src/test/resources |
D. | all of the mentioned |
Answer» E. | |
6. |
To deploy the application to a web container:? |
A. | mvn tomcat:run |
B. | mvn jetty:run |
C. | all of the mentioned |
D. | none of the mentioned |
Answer» D. none of the mentioned | |
7. |
Command to create a Spring MVC controller that provides a UI:? |
A. | controller scaff –class ~.web.CustomerController –entity ~.domain.Customer |
B. | controller scaff –class ~.web.CustomerController –entity |
C. | none of the mentioned |
D. | all of the mentioned |
Answer» B. controller scaff ‚Äö√Ñ√∂‚àö√ë‚àö¬®class ~.web.CustomerController ‚Äö√Ñ√∂‚àö√ë‚àö¬®entity | |
8. |
Spring application context, src/main/resources/META-INF/spring/applicationContext.xml consists of:- |
A. | Data Source |
B. | JPA Transaction Manager |
C. | JPA entity manager factory |
D. | All of the mentioned |
Answer» E. | |
9. |
The file which is the standard JPA configuration file to enable the Hibernate-based JPA implementation. |
A. | src/main/resources/META-INF/spring/database.properties |
B. | src/main/resources/META-INF/persistence.xml |
C. | src/main/resources/META-INF/pom.xml |
D. | none of the mentioned |
Answer» C. src/main/resources/META-INF/pom.xml | |
10. |
The file which contains useful configuration for Hypersonic in-memory database. |
A. | src/main/resources/META-INF/spring/database.properties |
B. | src/main/resources/META-INF/persistence.xml |
C. | src/main/resources/META-INF/pom.xml |
D. | none of the mentioned |
Answer» B. src/main/resources/META-INF/persistence.xml | |
11. |
persistence setup –database HYPERSONIC_IN_MEMORY –provider HIBERNATE command creates files:-$ |
A. | src/main/resources/META-INF/persistence.xml |
B. | src/main/resources/META-INF/spring/database.properties |
C. | all of the mentioned |
D. | none of the mentioned |
Answer» D. none of the mentioned | |
12. |
A database and some sort of persistence mechanism using command:- |
A. | persistence setup –database HYPERSONIC_IN_MEMORY –provider HIBERNATE |
B. | persistence setup –database HYPERSONIC_IN_MEMORY –provider |
C. | persistence setup –database HYPERSONIC_IN_MEMORY |
D. | persistence –database HYPERSONIC_IN_MEMORY –provider HIBERNATE |
Answer» B. persistence setup ‚Äö√Ñ√∂‚àö√ë‚àö¬®database HYPERSONIC_IN_MEMORY ‚Äö√Ñ√∂‚àö√ë‚àö¬®provider | |
13. |
Spring Roo provides very powerful support to bootstrap most solutions. |
A. | True |
B. | False |
Answer» B. False | |
14. |
The plugin, which provides Maven support to Eclipse |
A. | m2eclipse |
B. | m2plugin |
C. | plugin |
D. | none of the mentioned |
Answer» B. m2plugin | |