R4RIN
Articles
Java 8
MCQS
Spring MCQ Quiz Hub
Spring Mcq Set 7
Choose a topic to test your knowledge and improve your Spring skills
1. Spring MVC supports generating PDF files using which of the following libraries.
iText library
iJText library
all of the mentioned
none of the mentioned
2. To publish a REST service with Spring.
publishing an application’s data as a REST service
accessing data from third-party REST services
none of the mentioned
all of the mentioned
3. Publishing an application’s data as a REST service requires.
@RequestMapping
@PathVariable
All of the mentioned
None of the mentioned
4. Spring supports a series of mechanisms to generate a REST service payload.
True
False
error
None of these
5. Annotation added as an input parameter to the handler method.
@PathVariable
@Path
@PathLocale
None of the mentioned
6. Notation for defining REST endpoints.
{ }
*
All of the mentioned
None of the mentioned
7. General-purpose class that allows a response to be rendered using a marshaller.
MarshallingView
Marshalling
View
All of the mentioned
8. Marshalling is the process of transforming an in-memory representation of an object into a data format.a
True
False
error
None of these
9. The marshaller used by MarshallingView belongs to one of a series of XML marshallers.
Jaxb2Marshaller
XmlBeansMarshaller
CastorMarshalle
All of the mentioned
10. To configure Jaxb2Marshaller marshaller we require.
ClassesToBeBound
ContextPath
All of the mentioned
None of the mentioned
11. In the case of classesToBeBound, the classes assigned to this property, indicate the class (i.e., object) structure that is to be transformed into XML.
True
False
error
None of these
12. Annotation which allows the Jaxb2Marshaller marshaller to detect a class’s (i.e., object’s) fields.
@XmlRootElement
@XmlRoot
@NotNull
None of the mentioned
13. Accessing a third-party REST service inside a Spring application.
RestTemplate Class
ViewResolver
InternalViewResolver
View
14. REST service end point comprises an address.
starts with http:// and ends with ?
starts with http:// and ends with &
no certain URL is specified
depends upon the platform used
15. XML tag which represents information related to a REST service request.
Result
Title
None of the mentioned
All of the mentioned
16. RestTemplate class method which performs an HTTP HEAD operation.
headForHeaders(String, Object…)
getForObject(String, Class, Object…)
postForLocation(String, Object, Object…)
postForObject(String, Object, Class, Object…)
17. Payload format for REST services.
RSS
Atom
JSON
All of the mentioned
18. All REST service payloads rely on XML markup.
True
False
error
None of these
19. Class that forms part of Spring to apply JSON content.
MappingJacksonJsonView
MappingJsonView
MappingJacksonJson
JsonView
20. The MappingJacksonJsonView class depends on Jackson JSON processor library.
org.codehaus.jackson
jackson-mapper-asl
all of the mentioned
none of the mentioned
21. Information you wish to publishas a JSON Object can be located in a RDBMS or text file, accessed through JDBC or ORM.
True
False
error
None of these
22. JSON payload consists of text and separators like.
{ , }
( , )
:
All of the mentioned
23. To access JSON in a Spring application, library used is:-
JSON-LIB
SpringJSON-lib
JSON-lib
None of the mentioned
24. You are often better served accessing and manipulating REST services with XML payloads in Spring applications.
True
False
error
None of these
25. Class which is capable of performing a multitude of operations on REST services.
RestTemplate
XPathTemplate
XMLTemplate
JavaTemplate
26. XML query language for selecting nodes from an XML document.
XPathTemplate
XPath
All of the mentioned
None of the mentioned
27. The Handler method assigns the returning XML payload to a String.
True
False
error
None of these
28. To extract and manipulate payloads in Spring REST in a format other than String.
HttpConverter
HttpMessage
HttpConverterMessage
None of the mentioned
29. To write your own converters relying on the MarshallingHttpMessageConverter interface that would allow the use of custom marshallers.
messageConverters
messageConvert
converters
convertersMessage
30. To override the default implementations registered with the RestTemplate class.
messageConverters
messageConvert
converters
convertersMessage
31. To extract and manipulate the contents of a REST service payload.
messageConverters
StreamSource class
converters
convertersMessage
32. IntelliJ IDEA product, versions 8 and 9, supports:-
Flex
AIR
None of the mentioned
All of the mentioned
33. Flex is that it is, technically, a library implemented on top of the middleware.
True
False
error
None of these
34. In Flash, the displayed area where animation and rendering occurs.
Stage
Animation
Stagery
Statement in lieu
35. Flex uses a language called ActionScript 3.0.
True
False
error
None of these
36. ActionScript code pages end in .as, and ActionScript binaries are .sf files.
True
False
error
None of these
37. Linkable libraries have the extension.
.swc
.dll
.so
none of the mentioned
38. 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
39. XML variant that describe the UI components and provide a DOM.
AS files
MXML files
XML Files
all of the mentioned
40. MXML files support a limited form of expression language binding
True
False
error
None of these
41. Outermost tag in Flex.
mx:Application
mx:WindowedApplication
all of the mentioned
none of the mentioned
42. Outermost tag in AIR.
mx:Application
mx:WindowedApplication
all of the mentioned
none of the mentioned
43. As soon as the application has been loaded and all the objects configured, an event will be fired.
applicationEvent
applicationComplete
eventConfigure
eventComplete
44. JavaScript library dynamically adds the plug-in content to the page.
True
False
error
None of these
45. JavaScript library dynamically generates.
object
plugin
FlashVars
all of the mentioned
46. To talk to the containing HTML page.
flash.external.ExternalInterface
flash.external.External
flash.external.ExternalInterface
none of the mentioned
47. The endpoint URL attribute defines where service is mounted.
endpoint URL
endpoint
endpoint service
none of the mentioned
48. To keep our code as ready-to-deploy as possible.
parameterize the URL of the service in the client
add an entry to your /etc/hosts file on Unix derivatives or, on Windows, to your C:WINDOWSsystem32driversetchosts
none of the mentioned
all of the mentioned
49. Spring BlazeDS creates existing Spring beans as AMF endpoints.
True
False
error
None of these
50. The service, which will simply fetch all the items that are for auction and return the description.
SpringBlaze DS
SpringFlex
EventSpring
All of the mentioned
Submit