JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Spring interview questions part 19
Spring interview questions part 19
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. In JUnit4, to explicitly specify a Spring-specific test runner for running your test.
A. SpringJUnit4ClassRunner
B. SpringJUnit4Class
C. SpringJUnit4
D. None of the mentioned
Show Correct Answer
Correct Answer is :
SpringJUnit4ClassRunner
2. Annotation for SpringJUnit4ClassRunner:-
A. @Run
B. @RunWith
C. All of the mentioned
D. None of the mentioned
Show Correct Answer
Correct Answer is :
@RunWith
3. This class implements the ApplicationContextAware interface, so you can get access to the managed application context:-
A. AbstractJUnit38SpringContext
B. AbstractJUnit38Spring
C. AbstractJUnit38SpringContextTests
D. None of the mentioned
Show Correct Answer
Correct Answer is :
AbstractJUnit38SpringContextTests
4. AbstractJUnit38SpringContext class also implements the ApplicationContextAware interface.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
5. Spring JUnit 3 legacy support in releases prior to 2.5, your test class can extend the:-
A. AbstractDependencyInjectionSpringContextTests
B. AbstractSingleSpringContextTests
C. All of the mentioned
D. None of the mentioned
Show Correct Answer
Correct Answer is :
AbstractDependencyInjectionSpringContextTests
6. AbstractDependencyInjectionSpringContextTests supports dependency injection.
A. auto-wires beans by type via setter methods
B. auto-wires beans by name via protected fields
C. none of the mentioned
D. all of the mentioned
Show Correct Answer
Correct Answer is :
none of the mentioned
7. Test fixtures injected from the managed application context by annotating:-
A. @Autowired
B. @Resource
C. All of the mentioned
D. None of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
8. TestContext support class AbstractJUnit4SpringContextTests, you can also have test fixtures injected from the managed application context.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
9. Starting from Spring 2.5, the TestContext framework provides a test execution listener related to transaction management:-
A. TransactionalTestExecutionListener
B. TransactionalTestExecution
C. All of the mentioned
D. None of the mentioned
Show Correct Answer
Correct Answer is :
TransactionalTestExecutionListener
10. Annotation for TransactionalTestExecutionListener:-
A. @Transactional
B. @RunWith
C. @Run
D. None of the mentioned
Show Correct Answer
Correct Answer is :
@Transactional
11. Grails applications are equipped to support internationalization.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
12. Where can you find series of *.properties files.
A. /grails-app/
B. /grails-app/i18n/
C. /grails-app/i18n/WEB-INF
D. /grails-app/i18n/WEB-APP
Show Correct Answer
Correct Answer is :
/grails-app/i18n/
13. *.properties files allow Grails applications to display messages.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
14. Which locale (i.e., from an internationalization properties file) to use for a user is based on?
A. /grails-app/conf/spring/resource.groovy file
B. user’s browser language preferences
C. all of the mentioned
D. none of the mentioned
Show Correct Answer
Correct Answer is :
all of the mentioned
15. There is no default configuration present in an application resource.groovy file.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
16. If you want to coerce users into using a specific language locale.
A. /grails-app/conf/spring/resource.groovy file
B. /grails-app/resource.groovy file
C. /grails-app/spring/resource.groovy file
D. none of the mentioned
Show Correct Answer
Correct Answer is :
/grails-app/conf/spring/resource.groovy file
17. JSP Tag which declares statements using the Groovy.
A. g:message
B. g:string
C. g:msg
D. none of the mentioned
Show Correct Answer
Correct Answer is :
g:message
18. Tag can also be used in GSP pages views.
A. g:message
B. g:string
C. g:msg
D. none of the mentioned
Show Correct Answer
Correct Answer is :
g:message
19. Grails uses RDBMS as a permanent storage system.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
20. Grails comes preconfigured to use:-
A. MySql
B. PostgreSQL
C. Access
D. HSQLDB
Show Correct Answer
Correct Answer is :
HSQLDB
Similar Interview Questions
Search for latest jobs
Find Jobs