JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Spring interview questions part 2
Spring interview questions part 2
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Classes used to describe an application’s primary elements.
A. Domain Classes
B. Application
C. Context
D. View
Show Correct Answer
Correct Answer is :
Domain Classes
2. In web applications, domain classes are generally the first things to be defined.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
3. 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/
Show Correct Answer
Correct Answer is :
/grails-app/domain/
4. 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
Show Correct Answer
Correct Answer is :
grails create-domain-class domain class name
5. The command domain class name in creation of domain classes generates a file named domain class name.groovy.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
6. Corresponding unit tests files are also generated for each domain class while creating domain classes.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
7. Static field which defines constraints on the domain class.
A. static{}
B. static field{}
C. static constraint{}
D. static constraints{}
Show Correct Answer
Correct Answer is :
static constraints{}
8. 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
Show Correct Answer
Correct Answer is :
blank:false
9. A variety of constraints can be used to enforce a domain class’s structure.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
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
Show Correct Answer
Correct Answer is :
grails generate-all domain class name
11. Grails is capable of inspecting an application’s domain classes and generating the corresponding controllers and views.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
12. Views corresponding to a controller class’s CRUD operations.
A. create.gsp
B. edit.gsp
C. list.gsp
D. all of the mentioned
Show Correct Answer
Correct Answer is :
all of the mentioned
13. .gsp extension stands for:-
A. Groovy Server Pages
B. Groovy Service Pages
C. All of the mentioned
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Groovy Server Pages
14. Views are placed under which directory:-
A. app/views/
B. app/
C. grails-app/views/WEB-INF
D. grails-app/views/domain class
Show Correct Answer
Correct Answer is :
grails-app/views/domain class
15. Command to start the Grails application:-
A. grails run
B. grails start-app
C. grails run-app
D. none of the mentioned
Show Correct Answer
Correct Answer is :
grails run-app
16. Which tag informs the spring container about the use of AspectJ annotation?
A. aop:aspectj-autowire
B. aop:aspectj-name
C. aop:aspectj-autoproxy
D. none of the mentioned
Show Correct Answer
Correct Answer is :
aop:aspectj-autoproxy
17. Which of the following is advice supported by Aspect Annotation?
A. @Before
B. @After
C. @AfterReturning
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
18. An advice is an action which comes into play at pointcuts.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
19. Which advice is executed once a joint point finishes?
A. @Before
B. @After
C. @AfterReturning
D. @AfterThrowing
Show Correct Answer
Correct Answer is :
@After
20. Which advice is executed only when joint point returns or throws an exception?
A. @Before
B. @After
C. @AfterReturning
D. @AfterThrowing
Show Correct Answer
Correct Answer is :
@AfterReturning
Similar Interview Questions
Search for latest jobs
Find Jobs