MCQOPTIONS
Saved Bookmarks
This section includes 18 Mcqs, each offering curated multiple-choice questions to sharpen your Spring knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
For your front desk and back office classes, you can send and receive a map using the:- |
| A. | convertAndSend() |
| B. | receiveAndConvert() |
| C. | all of the mentioned |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 2. |
By default, the JMS template uses SimpleMessageConverter for converting TextMessage to or from a string. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 3. |
Spring provides an implementation of SimpleMessageConvertor to handle the translation of a JMS message received. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 4. |
The MessageCreator interface declares method:- |
| A. | createMessage() |
| B. | create() |
| C. | createMsg() |
| D. | none of the mentioned |
| Answer» B. create() | |
| 5. |
To send a JMS message with this template, you simply call:- |
| A. | send |
| B. | sendTo |
| C. | all of the mentioned |
| D. | none of the mentioned |
| Answer» B. sendTo | |
| 6. |
There are several types of messages defined in the JMS API, including:- |
| A. | TextMessage |
| B. | MapMessage |
| C. | BytesMessage |
| D. | All of the mentioned |
| Answer» E. | |
| 7. |
In the preceding sendMail() method, you first create JMS-specific ConnectionFactory. a) Trueb) FalseView Answer |
| A. | Trueb) FalseView Answer a) topic |
| B. | FalseView Answer a) topicb) queue |
| C. | all of the mentioned |
| D. | none of the mentionedView Answer |
| Answer» B. FalseView Answer a) topicb) queue | |
| 8. |
THERE_ARE_SEVERAL_TYPES_OF_MESSAGES_DEFINED_IN_THE_JMS_API,_INCLUDING:-?$ |
| A. | TextMessage |
| B. | MapMessage |
| C. | BytesMessage |
| D. | All of the mentioned |
| Answer» B. MapMessage | |
| 9. |
The MessageCreator interface declares method:-$ |
| A. | createMessage() |
| B. | create() |
| C. | createMsg() |
| D. | none of the mentioned |
| Answer» B. create() | |
| 10. |
To_send_a_JMS_message_with_this_template,_you_simply_call:-$ |
| A. | send |
| B. | sendTo |
| C. | all of the mentioned |
| D. | none of the mentioned |
| Answer» B. sendTo | |
| 11. |
When you need access to the JMS template. |
| A. | setJmsTemplate |
| B. | getJmsTemplate |
| C. | getJms |
| D. | none of the mentioned |
| Answer» B. getJmsTemplate | |
| 12. |
JMS sender and receiver classes can also extend to retrieve a JMS template:- |
| A. | JmsGatewaySupport |
| B. | JmsGateway |
| C. | All of the mentioned |
| D. | None of the mentioned |
| Answer» B. JmsGateway | |
| 13. |
A JMS template helps you to obtain and release the JMS connection and session. |
| A. | True |
| B. | False |
| Answer» C. | |
| 14. |
topi? |
| A. | queue |
| B. | all of the mentioned |
| C. | none of the mentioned |
| Answer» B. all of the mentioned | |
| 15. |
Before you can send and receive JMS messages, you need to install a JMS message broker:- |
| A. | Apache ActiveM |
| B. | Apache Active |
| C. | Apache MQ |
| D. | Apache ActiveMQ |
| Answer» E. | |
| 16. |
To address different JMS APIs, Spring provides :- |
| A. | JmsTemplate |
| B. | JmsTemplate102 |
| C. | All of the mentioned |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |
| 17. |
The template handles the boilerplate tasks for you and also converts the JMS API JMSException hierarchy into Spring runtime exception:- |
| A. | org.springframework.jms.Jms |
| B. | org.springframework.jms.JmsException |
| C. | org.springframework.jms.JmsTemplate |
| D. | none of the mentioned |
| Answer» C. org.springframework.jms.JmsTemplate | |
| 18. |
Template which can send and receive JMS messages with much less code |
| A. | JmsTemplate |
| B. | |
| C. | All of the mentioned |
| D. | None of the mentioned |
| Answer» B. EMail | |