Flex(Engineering > Computer Science And Engineering > Spring > Web Flow > Mvc > Rest ) Questions and Answers
Question 1. Spring BlazeDS creates existing Spring beans as AMF endpoints.
True
False
Error
None of the above
Explanation:-
Answer: Option A. -> True
Spring BlazeDS lets you expose existing Spring beans as AMF endpoints.
Question 2. View beans from a resource bundle is loaded by.
ResourceBundleViewResolver
ResourceBundleView
ResourceViewResolver
None of the mentioned
Explanation:-
Answer: Option A. -> ResourceBundleViewResolver
ResourceBundleViewResolver loads view beans from a resource bundle in the classpath root.
Question 3. Alternative way to resolve locales.
AcceptHeaderLocale
AcceptHeader
AcceptHeaderLocaleResolver
SessionLocaleResolver
Explanation:-
Answer: Option D. -> SessionLocaleResolver
Another option of resolving locales is by SessionLocaleResolver.
Question 4. To configure the exception mappings in the web application context.
SimpleMappingExceptionResolver
ExceptionResolver
ExceptionViewResolver
None of the mentioned
Explanation:-
Answer: Option A. -> SimpleMappingExceptionResolver
Spring MVC comes with the exception resolver SimpleMappingExceptionResolver for you to configure the exception mappings in the web application context.
Question 5. Handler method's annotation.
@Before
@Controller
@After
@RequestMapping
Explanation:-
Answer: Option D. -> @RequestMapping
In order to do so, a controller class's methods are decorated with the @RequestMapping annotation, making them handler methods.
Question 6. Validator field is not assigned to any bean, but rather a factory class of the type.
javax.validation.Validator
javax.validation.ValidatorFactory
javax.validation.ValidatorFactor
none of the mentioned
Explanation:-
Answer: Option B. -> javax.validation.ValidatorFactory
This is how JSR-303 validation works. The assignment process is done inside the controller's constructor.
Question 7. The source artifacts of a Flex application are:-
ActionScript files (ending in .as)
ActionScript files (ending in .mxml)
All of the mentioned
None of the mentioned
Explanation:-
Answer: Option C. -> All of the mentioned
The two source artifacts of a Flex application are the ActionScript files (ending in .as) and the .mxml files.
Question 8. To access JSON in a Spring application, library used is:-
JSON-LIB
SpringJSON-lib
JSON-lib
None of the mentioned
Explanation:-
Answer: Option A. -> JSON-LIB
Though it's technically possible to access JSON in a Spring application (i.e., on the server side), using a third-party Java library like JSON-LIB
Question 9. Spring supports a series of mechanisms to generate a REST service's payload.
True
False
Error
None of the above
Explanation:-
Answer: Option A. -> True
This recipe will explore the simplest mechanism, which involves the use of Spring's MarshallingView class.
Question 10. Attribute used to handle web flow requests.
servlet-mapping
servlet-attr
servlet-flow
servlet-requests
Explanation:-
Answer: Option A. -> servlet-mapping
If you are going to use the legacy JSF request handling at the same time, you will have to specify that.