MCQOPTIONS
Saved Bookmarks
This section includes 13 Mcqs, each offering curated multiple-choice questions to sharpen your Spring knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
There are frequently situations where OSGi will return more than one instance of a service that satisfies the interface. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 2. |
A more robust solution to service discrimination is service attributes. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 3. |
When specified on a service element, allows the ascription of a rank relative to other beans with the same interface. |
| A. | Ranking |
| B. | Service |
| C. | All of the mentioned |
| D. | None of the mentioned |
| Answer» B. Service | |
| 4. |
Multiple services of the same interface may be registered inside of an OSGi environment, which necessitates a conflict-resolution process. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 5. |
OSGi will let you maintain multiple versions of a service in your registry at the same time. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 6. |
Once acquired, the Bundle can be interrogated to introspect information about the bundle itself, including any entries, its current state. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 7. |
Spring Dynamic Modules also supports injection and manipulation of bundles themselves. An injected bundle is of type:- |
| A. | org.osgi.framework.savedBundle |
| B. | org.osgi.framework.Bundle |
| C. | org.osgi.framework.BundleInstance |
| D. | none of the mentioned |
| Answer» C. org.osgi.framework.BundleInstance | |
| 8. |
Sometimes, you may want to limit the visibility of a service so that multiple clients each get their own instance of the bean. |
| A. | time |
| B. | scope |
| C. | attr |
| D. | none of the mentioned |
| Answer» C. attr | |
| 9. |
By default, beans created in a Spring application context are global to the entire OSGi runtime. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 10. |
The first, most direct connection to OSGi is the bean that s created on your behalf when you export a service. This bean, an instance of:- |
| A. | org.osgi.framework.ServiceRegistration |
| B. | org.osgi.framework.Service |
| C. | org.osgi.framework.ServiceRegister |
| D. | none of the mentioned |
| Answer» B. org.osgi.framework.Service | |
| 11. |
An anonymous bean specified inside of the osgi:service element allows you to avoid cluttering the namespace. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 12. |
Element to export the bean as an OSGi service, classified by the interface we specify. |
| A. | osgix |
| B. | osgi:service |
| C. | all of the mentioned |
| D. | none of the mentioned |
| Answer» C. all of the mentioned | |
| 13. |
To create services and have those automatically installed in the registry. |
| A. | Spring Dynamic Modules |
| B. | Spring DM Server |
| C. | Spring Tooling |
| D. | None of the mentioned |
| Answer» B. Spring DM Server | |