

MCQOPTIONS
Saved Bookmarks
This section includes 22 Mcqs, each offering curated multiple-choice questions to sharpen your Spring knowledge and support exam preparation. Choose a topic below to get started.
1. |
Views corresponding to a controller class’s CRUD operations. |
A. | create.gsp |
B. | edit.gsp |
C. | list.gsp |
D. | all of the mentioned |
Answer» E. | |
2. |
Grails is capable of inspecting an application’s domain classes and generating the corresponding controllers and views. |
A. | True |
B. | False |
Answer» B. False | |
3. |
Command to generate the corresponding CRUD controller and views for an application’s domain class. |
A. | grails create-domain-class domain class name |
B. | grails create-domain-class |
C. | grails generate-all domain class name |
D. | none of the mentioned |
Answer» D. none of the mentioned | |
4. |
A variety of constraints can be used to enforce a domain class’s structure. |
A. | True |
B. | False |
Answer» B. False | |
5. |
Declaration name which indicates that object’s name field can’t be blank. |
A. | blank:false |
B. | blank:true |
C. | all of the mentioned |
D. | none of the mentioned |
Answer» B. blank:true | |
6. |
The creation of domain classes by executing a simple command which is:- |
A. | grails create-domain-class |
B. | grails create-domain-class domain class name |
C. | domain class name |
D. | none of the mentioned |
Answer» C. domain class name | |
7. |
Classes used to describe an application’s primary elements. |
A. | Domain Classes |
B. | Application |
C. | Context |
D. | View |
Answer» B. Application | |
8. |
A_VARIETY_OF_CONSTRAINTS_CAN_BE_USED_TO_ENFORCE_A_DOMAIN_CLASS‚ÄÖ√Ñ√∂‚ÀÖ√Ë‚ÀÖ¬•S_STRUCTURE.?$# |
A. | True |
B. | False |
Answer» B. False | |
9. |
Grails is capable of inspecting an application’s domain classes and generating the corresponding controllers and views.$# |
A. | True |
B. | False |
Answer» B. False | |
10. |
Command_to_generate_the_corresponding_CRUD_controller_and_views_for_an_application’s_domain_class.$# |
A. | grails create-domain-class domain class name |
B. | grails create-domain-class |
C. | grails generate-all domain class name |
D. | none of the mentioned |
Answer» D. none of the mentioned | |
11. |
Command to start the Grails application:- |
A. | grails run |
B. | grails start-app |
C. | grails run-app |
D. | none of the mentioned |
Answer» D. none of the mentioned | |
12. |
Views are placed under which directory:- |
A. | app/views/ |
B. | app/ |
C. | grails-app/views/WEB-INF |
D. | grails-app/views/domain class |
Answer» E. | |
13. |
.gsp extension stands for:- |
A. | Groovy Server Pages |
B. | Groovy Service Pages |
C. | All of the mentioned |
D. | None of the mentioned |
Answer» B. Groovy Service Pages | |
14. |
Views corresponding to a controller class’s CRUD operations.$ |
A. | create.gsp |
B. | edit.gsp |
C. | list.gsp |
D. | all of the mentioned |
Answer» E. | |
15. |
Declaration name which indicates that object’s name field can’t be blank?# |
A. | blank:false |
B. | blank:true |
C. | all of the mentioned |
D. | none of the mentioned |
Answer» B. blank:true | |
16. |
Static field which defines constraints on the domain class. |
A. | static{} |
B. | static field{} |
C. | static constraint{} |
D. | static constraints{} |
Answer» E. | |
17. |
Corresponding unit tests files are also generated for each domain class while creating domain classes. |
A. | True |
B. | False |
Answer» B. False | |
18. |
The command domain class name in creation of domain classes generates a file named domain class name.groovy. |
A. | True |
B. | False |
Answer» B. False | |
19. |
The creation of domain classes by executing a simple command which is:- |
A. | grails create-domain-class |
B. | grails create-domain-class domain class name |
C. | domain class name |
D. | none of the mentioned |
Answer» C. domain class name | |
20. |
In Grails, domain classes are placed under:- |
A. | /grails-app/WEB-INF/ |
B. | /grails-app/domain/ |
C. | /grails-app/domain/WEB-APP |
D. | /grails-app/ |
Answer» C. /grails-app/domain/WEB-APP | |
21. |
In web applications, domain classes are generally the first things to be defined. |
A. | True |
B. | False |
Answer» B. False | |
22. |
Classes used to describe an application’s primary elements. |
A. | Domain Classes |
B. | Application |
C. | Context |
D. | View |
Answer» B. Application | |