

McqMate
These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Master of Science in Information Technology (MSc IT) , Master of Science in Computer Science (MSc CS) , Bachelor of Business Administration in Computer Applications (BBA [CA]) , Programming Languages , Master of Science in Software Engineering (MSc SE) .
Chapters
1. |
What is the basic concept of Spring? |
A. | Factory pattern |
B. | Singleton pattern |
C. | Dependency injection or Inversion of control |
D. | Abstract factory pattern |
Answer» C. Dependency injection or Inversion of control |
2. |
Which spring module provides the capability of DI or IOC? |
A. | Spring web |
B. | Core container |
C. | AOP |
D. | Data access |
Answer» B. Core container |
3. |
What are beans in the concept of Spring or what are spring beans? |
A. | Controller classes |
B. | Service classes |
C. | Repository |
D. | Any class that is managed by the container. |
Answer» D. Any class that is managed by the container. |
4. |
How does spring achieve DI or IOC? |
A. | Service locator pattern |
B. | Factory pattern |
C. | Abstract factory pattern |
D. | Singleton pattern |
Answer» A. Service locator pattern |
5. |
Which interface in spring is responsible for Instantiating and managing the so called Spring beans? |
A. | Bean Factory |
B. | ApplicationContext |
C. | BeanDefenition |
D. | BeanDefenition |
Answer» B. ApplicationContext |
6. |
Beans can be created by which of the following properties? |
A. | Scope |
B. | Property |
C. | Class |
D. | It’s own constructor |
Answer» D. It’s own constructor |
7. |
Which attribute is used to specify class name of the bean? |
A. | name |
B. | id |
C. | class |
D. | constructor-args |
Answer» C. class |
8. |
Which of the following method can be used to used to instantiate a method? |
A. | static factory method |
B. | default-init method |
C. | destroy method |
D. | lazy-init method |
Answer» A. static factory method |
9. |
Which attribute is used to specify static factory-method? |
A. | factory-method |
B. | default-init method |
C. | destroy method |
D. | lazy-init method |
Answer» A. factory-method |
10. |
Purpose of Static Factory Method? |
A. | Static method to create an object |
B. | Initialize bean |
C. | All of the mentioned |
D. | None of the mentioned |
Answer» A. Static method to create an object |
Done Studing? Take A Test.
Great job completing your study session! Now it's time to put your knowledge to the test. Challenge yourself, see how much you've learned, and identify areas for improvement. Don’t worry, this is all part of the journey to mastery. Ready for the next step? Take a quiz to solidify what you've just studied.