Explore topic-wise MCQs in Testing Subject.

This section includes 657 Mcqs, each offering curated multiple-choice questions to sharpen your Testing Subject knowledge and support exam preparation. Choose a topic below to get started.

1.

The JavaMailSenderImpl instance you injected does implement this interface.

A. True
B. False
C. May be
D. Can't say
Answer» B. False
2.

One way to discriminate by Exception type is to use

A. org.springframework.integration.router.ErrorMessageExceptionType
B. org.springframework.integration.router.ErrorMessageException
C. org.springframework.integration.router.ErrorMessageExceptionTypeRouter
D. none of the mentioned
Answer» D. none of the mentioned
3.

You want to conditionally move a message through different processes based on some criteria.

A. router component
B. EAI
C. all of the mentioned
D. none of the mentioned
Answer» B. EAI
4.

Spring Batch work with a system scheduler:-

A. cron
B. autosys
C. all of the mentioned
D. none of the mentioned
Answer» D. none of the mentioned
5.

A splitter takes an input message and asks you, the user of the component, on what basis it should split the Message.

A. True
B. False
C. May be
D. Can't say
Answer» B. False
6.

Method to convert MapMessage Object into Spring runtime exception JmsException.

A. JmsUtils.convertJmsAccessException()
B. JmsUtils.convertJmsAccess()
C. JmsUtils.convertJms()
D. none of the mentioned
Answer» B. JmsUtils.convertJmsAccess()
7.

If you want to vary the execution flow based on some logic more complex than a job’s ExitStatuses:-

A. ExitStatus
B. Exit
C. Decision
D. All of the mentioned
Answer» D. All of the mentioned
8.

TaskExecutor that will spawn a thread of execution and manage that thread without blocking.

A. Async
B. Sync
C. Simple
D. SimpleAsyncTaskExecutor
Answer» E.
9.

The names and values for the named parameters are being created by the bean configured for the itemSqlParameterSourceProvider property, an instance of the interface

A. BeanPropertyItemSqlParameterSourceProvider
B. BeanPropertyItemSqlParameterSource
C. BeanPropertyItemSqlParameter
D. All of the mentioned
Answer» B. BeanPropertyItemSqlParameterSource
10.

The next component, a service-activator, listens for messages coming into that channel and invokes the bean referenced by the:-

A. ref
B. after
C. before
D. all of the mentioned
Answer» B. after
11.

To load the contents of a properties file (batch.properties) whose values you use to configure the data source.

A. PropertyPlaceholder
B. PropertyPlaceholderConfigurer
C. Property
D. PropertyConfigurer
Answer» C. Property
12.

Spring provides an implementation of SimpleMessageConvertor to handle the translation of a JMS message received.

A. True
B. False
C. May be
D. Can't say
Answer» B. False
13.

There’s only one really useful implementation of the JobRepository interface, which stores information about the state of the batch processes in a database.

A. SimpleJobRepository
B. SimpleJob
C. SimpleRepo
D. All of the mentioned
Answer» B. SimpleJob
14.

Sometimes, functionality is made available from within the application via:-

A. Stable API
B. Cohesive API
C. All of the mentioned
D. None of the mentioned
Answer» D. None of the mentioned
15.

The MessageCreator interface declares method:-

A. createMessage()
B. create()
C. createMsg()
D. none of the mentioned
Answer» B. create()
16.

Some header values are specific to the type of the source message payload.

A. True
B. False
C. May be
D. Can't say
Answer» D. Can't say
17.

A service-activator, however, only helps you invoke your application’s business logic on receipt of a message.

A. True
B. False
C. May be
D. Can't say
Answer» B. False
18.

To determine how many messages to read until it can stop:-

A. SequenceSizeCompletionStrategy
B. SequenceSizeCompletion
C. SequenceSize
D. None of the mentioned
Answer» B. SequenceSizeCompletion
19.

Spring allows your beans to publish JMX notifications through:-

A. NotificationPublisher
B. Notification
C. Notify
D. All of the mentioned
Answer» B. Notification
20.

MIME is supported by JavaMail through the:-

A. javax.mail.internet.Mime
B. javax.mail.internet.Message
C. javax.mail.internet.MimeMessage
D. javax.mail.internet.Mail
Answer» D. javax.mail.internet.Mail
21.

If the preceding job was run on a batch with a 100 rows, each item was read and passed through the processor, and it found 10 items invalid (it returned null 10 times), the value for the filter_count column would be:-

A. 100
B. 1
C. 10
D. 1000
Answer» D. 1000
22.

The processor attribute on the chunk element expects a reference to a bean of the interface:-

A. org.springframework.batch.item.Item
B. org.springframework.batch.item
C. org.springframework.batch.item.ItemProcessor
D. none of the mentioned
Answer» D. none of the mentioned
23.

If no RMI registry has been created externally, you should create one by using:-

A. RmiRegistryFactory
B. RmiRegistryFactoryBean
C. RmiRegistry
D. RmiRegister
Answer» C. RmiRegistry
24.

The SimpleMessagingGateway needs a request and a response channel, and it coordinates the rest.

A. True
B. False
C. May be
D. Can't say
Answer» B. False
25.

The capability to hide messaging behind a POJO interface.

A. Lingo
B. JCA
C. JMS
D. All of the mentioned
Answer» E.
26.

The most fundamental support for gateways comes from the Spring Integration class:-

A. SimpleMessagingGateway
B. SimpleMessaging
C. SimpleGateway
D. None of the mentioned
Answer» B. SimpleMessaging
27.

Spring Integration will use that header and forward errors encountered in the processing of this message to that channel.

A. True
B. False
C. May be
D. Can't say
Answer» B. False
28.

Sending all the errors to the same channel can eventually lead to a large switch-laden class that’s too complex to maintain.

A. True
B. False
C. May be
D. Can't say
Answer» B. False
29.

The first thing that the client configuration does is import a shared application context (to save typing if nothing else) that declares a JMS connection factor.

A. True
B. False
C. May be
D. Can't say
Answer» B. False
30.

By default, the JMS template uses SimpleMessageConverter for converting TextMessage to or from a string.

A. True
B. False
C. May be
D. Can't say
Answer» B. False
31.

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.
32.

The only custom logic is a POJO with an @Aggregator annotation on a method expecting a collection of Message objects.

A. True
B. False
C. May be
D. Can't say
Answer» B. False
33.

One of the more useful settings for the RetryTemplate is the :-

A. BackOff
B. Back
C. BackOffPolicy
D. All of the mentioned
Answer» D. All of the mentioned
34.

The simplest MBean assembler in Spring is, which allows you to specify the names of the methods to export.

A. MethodNameBasedMBeanInfoAssembler
B. MethodNameBasedMBeanInfo
C. MethodNameBasedMBean
D. MethodNameBasedInfoAssembler
Answer» B. MethodNameBasedMBeanInfo
35.

SimpleTrigger allows you to set trigger properties:-

A. start time
B. end time
C. repeat interval
D. all of the mentioned
Answer» E.
36.

There’s support for writing JMS:-

A. JmsItemWriter
B. JpaItemWriter
C. JdbcBatchItemWriter
D. All of the mentioned
Answer» E.
37.

To register an MBean, you need an instance of the interface :-

A. javax.management.MBeanServer
B. javax.management
C. javax.management.MBean
D. none of the mentioned
Answer» B. javax.management
38.

The static method to locate a platform MBean server.

A. ManagementFactory.getPlatform()
B. ManagementFactory.getPlatformMBeanServer()
C. ManagementFactory.getPlatformMBean()
D. All of the mentioned
Answer» C. ManagementFactory.getPlatformMBean()
39.

From the preceding code, you can see that for each MBean attribute and MBean operation, you need to create a:-

A. ModelMBeanAttributeInfo
B. ModelMBeanOperationInfo
C. None of the mentioned
D. All of the mentioned
Answer» E.