Spring/Spring%20Mcq%20Set%2018 Sample Test,Sample questions

Question:
 A way of letting your process rest in a known condition indefinitely.

1.State

2.Activity

3. Sequence

4.Subprocess

Posted Date:-2022-01-06 13:59:15


Question:
 Inside authorizeCustomer, the service queries the server for the any processes waiting at the:-

1.confirm-receipt-of-verification

2. confirm-receipt

3.confirm-receipt-of-verification-email

4. none of the mentioned

Posted Date:-2022-01-06 14:49:48


Question:
 JBoss itself supports deploying processes to a directory and loading those, with some configuration.

1. True

2. False

3.none

4.all the mentoined

Posted Date:-2022-01-06 14:19:59


Question:
 jBPM is, fundamentally, a runtime that stores its state and jobs in a database. It uses:-

1.Hibernate

2. Spring

3.All of the mentioned

4.None of the mentioned

Posted Date:-2022-01-06 14:21:41


Question:
 Once in the java element named send-verification-email, jBPM will invoke the method:-

1.sendCustomerVerificationEmail

2. sendCustomerVerification

3.veifyCustomerVerificationEmail

4. all of the mentioned

Posted Date:-2022-01-06 14:48:43


Question:
 The class(CustomerServiceImpl) provides a few salient methods:-

package com.apress.springrecipes.jbpm.jbpm4.customers;
public interface CustomerService {
void sendWelcomeEmail(Long customerId);
void deauthorizeCustomer(Long customerId);
void authorizeCustomer(Long customerId);
Customer getCustomerById(Long customerId);
Customer createCustomer(String email, String password, String firstName, 
String lastName);
void sendCustomerVerificationEmail(Long customerId);
}

1. void setupProcessDefinitions()

2.Customer createCustomer(String email, String passphrase, String firstName, String lastName)

3.void sendCustomerVerificationEmail(Long customerId)

4.all of the mentioned

Posted Date:-2022-01-06 14:42:45


Question:
 This provides a set of diagramming notations that describe a business process. This notation is akin to UML activity diagram.

1.WS-BPEL (BPEL 2.0)

2.WS-BPEL (BPEL)

3.WS-BPEL for People (BPEL4People)

4.Business Process Modeling Notation (BPMN)

Posted Date:-2022-01-06 13:58:10


Question:
 To make use of jBPM from within a Spring application context.

1.org.jbpm.pvm.internal.cfg.SpringConfiguration

2. org.jbpm.pvm.internal.cfg.Spring

3.org.jbpm.pvm.internal.cfg.*

4.All of the mentioned

Posted Date:-2022-01-06 14:14:09


Question:
 To use PostgreSQL, you need to add a the driver library to the classpath.

1. True

2. False

3.none

4.all the mentoined

Posted Date:-2022-01-06 14:06:30


Question:
<dependency>
        <groupId>org.jbpm.jbpm4</groupId>
        <artifactId>jbpm-jpdl</artifactId>
        <version>4.3</version>
</dependency>
Dependency for JBPM 4.

1.True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 14:07:39


Question:
.In the customerService bean, a client will use createCustomer to create a customer record.

<?xml version="1.0" encoding="UTF-8"?>
<process name="RegisterCustomer" xmlns="http://jbpm.org/4.0/jpdl">
          <start>
          <transition to="send-verification-email" />
          </start>
          <java name="send-verification-email" expr="#{customerService}"
          method="sendCustomerVerificationEmail">
          <arg> <object expr="#{customerId}" /> </arg>
          <transition to="confirm-receipt-of-verification-email" />
          </java>
          <state name="confirm-receipt-of-verification-email">
          <transition to="send-welcome-email" />
          </state>
          <java name="send-welcome-email"
          expr="#{customerService}" method="sendWelcomeEmail">
          <arg> <object expr="#{customerId}" /> </arg>
          </java>
</process>

1.True

2. False

3.none

4.all the mentoined

Posted Date:-2022-01-06 14:45:17


Question:
A concurrent execution of multiple threads of execution at the same time, originating from a common thread.

1.State

2.Activity

3.Sequence

4. Fork or concurrence or split

Posted Date:-2022-01-06 14:03:02


Question:
A decision describes a node that is conditional, based on some logic that you inject.

1.True

2. False

3.none

4.all the mentoined

Posted Date:-2022-01-06 14:05:34


Question:
A pause in the action that can only move forward when a known actor or agent in the system moves it forward.

1.State

2.Activity

3.Sequence

4. Subprocess

Posted Date:-2022-01-06 14:01:33


Question:
An aggregation of states, activities, and other types of constructs that serializes them.

1.State

2.Activity

3. Sequence

4. Subprocess

Posted Date:-2022-01-06 14:02:19


Question:
At the top, we’ve injected some dependencies:

1.springConfiguration

2.repositoryService

3.executionService

4.all of the mentioned

Posted Date:-2022-01-06 14:41:32


Question:
“Service” doesn’t imply any:-

1.RPC

2.inheritance

3.transactional qualities

4.All of the mentioned

Posted Date:-2022-01-06 15:01:05


Question:
Because our jBPM configuration uses Hibernate, we have to configure the :-

1.AnnotatedSessionFactory

2.AnnotatedSessionFactoryBean

3.None of the mentioned

4. all of the mentioned

Posted Date:-2022-01-06 14:27:17


Question:
Each department may have its own task list to complete in order to achieve the goals of the overarching process.

1. State

2.Activity

3. Subprocess

4.Fork or concurrence or split

Posted Date:-2022-01-06 14:04:57


Question:
In jBPM, a business process is built using jPDL.

1.True

2. False

3.none

4.all the mentoined

Posted Date:-2022-01-06 14:44:04


Question:
In OSGi, anything used by something else is a state.

1. True

2. False

3.none

4.all the mentoined

Posted Date:-2022-01-06 15:00:14


Question:
In the bean, setupProcessDefinitions is run when the bean is created.

1.True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 14:43:25


Question:
Inside the createCustomer method, we use jBPM to start the business process to track the Customer. This is done with the :-

<?xml version="1.0" encoding="UTF-8"?>
<process name="RegisterCustomer" xmlns="http://jbpm.org/4.0/jpdl">
          <start>
          <transition to="send-verification-email" />
          </start>
          <java name="send-verification-email" expr="#{customerService}"
          method="sendCustomerVerificationEmail">
          <arg> <object expr="#{customerId}" /> </arg>
          <transition to="confirm-receipt-of-verification-email" />
          </java>
          <state name="confirm-receipt-of-verification-email">
          <transition to="send-welcome-email" />
          </state>
          <java name="send-welcome-email"
          expr="#{customerService}" method="sendWelcomeEmail">
          <arg> <object expr="#{customerId}" /> </arg>
          </java>
</process>

1.startProcessInstanceByKey

2. startProcessInstance

3.all of the mentioned

4.None of the mentioned

Posted Date:-2022-01-06 14:46:31


Question:
It’s not too difficult to get jBPM working on JBoss EJB environment.

1.True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 14:18:27


Question:
JBPM supports databases such as:-

1. Oracle

2.SQL Server

3.MySql

4.All of the mentioned

Posted Date:-2022-01-06 14:09:46


Question:
jBPM will expose beans using the:-

1.jBPM will expose beans using the:-

2. jBoss

3. Spring expression language

4. none of the mentioned

Posted Date:-2022-01-06 14:31:23


Question:
jBPM, and indeed most workflow engines, passivate state for you, allowing a process to wait on external events :-

1.True

2. False

3.none

4.all the mentoined

Posted Date:-2022-01-06 14:33:39


Question:
On top of Spring Dynamic Modules, SpringSource built SpringSource dm Server, which is a server wired from top to bottom with OSGi and Spring.

1.True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 14:55:46


Question:
OSGi bundles are simply standard .jar files with customized MANIFESTs that OSGi consumes at runtime.

1.True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 15:01:42


Question:
OSGi is a framework.

1. True

2. False

3.none

4.all the mentoined

Posted Date:-2022-01-06 14:57:52


Question:
OSGi provides a layer on top of the JVM’s default class loader.

1. True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 14:55:01


Question:
OSGi—which was formerly known as the:-

1.Open Services Gateway initiative

2.Open Source Gateway initiative

3. Open Services Gateway initialisation

4.None of the mentioned

Posted Date:-2022-01-06 14:53:54


Question:
Process definition will reference Spring beans using the JBoss expression language.

1.True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 14:43:46


Question:
Spring Dynamic Modules scans our deployed bundles and loads an ApplicationContext (actually, the specific type of the ApplicationContext is OsgiBundleXmlApplicationContext) into memory based on an event, or a trigger.

1.True

2. False

3.none

4.all the mentoined

Posted Date:-2022-01-06 15:08:11


Question:
The authorizeCustomer method also updates the Customer entity, marking it as authorized. From there, execution proceeds to the send-welcome-email java element.

1.True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 14:51:44


Question:
The Bundle-Activator directive describes to the OSGi environment, which class implements :-

1.BundleActivator

2.BundleActivate

3. All of the mentioned

4.None of the mentioned

Posted Date:-2022-01-06 15:04:32


Question:
The business process file’s name needs to end in :-

1. jpdl

2.xml

3.jpdl.xml

4.none of the mentioned

Posted Date:-2022-01-06 14:40:11


Question:
The hibernate-session element tells jBPM to reuse an existing Hibernate session:-

1.True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 14:29:39


Question:
The method annotated with @PostConstruct will be run after the bean’s been configured to let the user inject custom initialization logic.

1. True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 14:34:31


Question:
The next bean—the dataSource—is configured entirely at your discretion. The properties are set using properties in the properties file :-

1. jbpm4.xml

2.jbpm.properties

3.jbpm4.properties

4. none of the mentioned

Posted Date:-2022-01-06 14:28:06


Question:
The plug-in produces OSGi–compliant bundles that work in any container.

1.True

2. False

3.none

4.all the mentoined

Posted Date:-2022-01-06 15:03:25


Question:
The spring-transaction-interceptor element is a special element to enable jBPM to defer to the TransactionManager defined in our application context.

1.True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 14:30:04


Question:
To have an annotated class be registered as a Hibernate entity, it needs to be registered with the:-

1.AnnotationSessionFactory

2.AnnotationSessionFactoryBean

3.AnnotationSessionFactoryBean

4.None of the mentioned

Posted Date:-2022-01-06 14:24:05


Question:
To start using Spring to smooth over some of the minutiae of resource acquisition and to help build more reliable systems in an OSGi environment.

1. Spring DM server

2.Spring Dynamic Modules

3. All of the mentioned

4.None of the mentioned

Posted Date:-2022-01-06 15:07:14


Question:
To use jBPM as a stand-alone process server:-

1. Javax

2. JBoss

3.None of the mentioned

4.All of the mentioned

Posted Date:-2022-01-06 14:16:23


Question:
Tool which dynamically interrogates classes for their imports and generates OSGi–compliant entries.

1.pnd

2. jndi

3.bnd

4.None of the mentioned

Posted Date:-2022-01-06 15:02:47


Question:
User component models are:-

1.OSGi

2.Spring

3. All of the mentioned

4.None of the mentioned

Posted Date:-2022-01-06 14:59:40


Question:
When the bundle begins to load and start, it calls the start method of the:-

1.BundleActivator

2.Activator

3.All of the mentioned

4.None of the mentioned

Posted Date:-2022-01-06 15:05:15


Question:
When we’re integrating with Spring, we modify the transaction-context element and the command-service element.

1.True

2.False

3.none

4.all the mentoined

Posted Date:-2022-01-06 14:28:57


Question:
You’ll split your OSGi–specific Spring configuration and your plain-vanilla Spring configuration into:-

1. modulename-context.xml

2.modulename-osgi-context.xml

3.all of the mentioned

4.None of the mentioned

Posted Date:-2022-01-06 15:13:17


More MCQS

  1. Spring Mcq Set 1
  2. Spring Mcq Set 2
  3. Spring Mcq Set 3
  4. Spring Mcq Set 4
  5. Spring Mcq Set 5
  6. Spring Mcq Set 6
  7. Spring Mcq Set 7
  8. Spring Mcq Set 8
  9. Spring Mcq Set 9
  10. Spring Mcq Set 10
  11. Spring Mcq Set 11
  12. Spring Mcq Set 12
  13. Spring Mcq Set 13
  14. Spring Mcq Set 14
  15. Spring Mcq Set 15
  16. Spring Mcq Set 16
  17. Spring Mcq Set 17
  18. Spring Mcq Set 18
  19. Spring Mcq Set 19
  20. Spring Mcq Questions
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!