Correction of Final Software Practice
Correction of Final Software Practice
a) Factory Method
b) Singleton
c) Prototype
d) Adapter
Answer: b
What is the primary disadvantage of the Observer pattern?
a) Increased code complexity
b) Reduced coupling between subject and observers
c) Linked updates that may not be necessary
d) Lack of scalability
Answer: c
Which structural pattern allows incompatible interfaces to work together?
a) Adapter
b) Composite
c) Bridge
d) Proxy
Answer: a
What type of design pattern is the Strategy pattern?
a) Creational
b) Structural
c) Behavioral
d) Dependency
Answer: c
In the Factory Method pattern, which component decides the type of object to
create?
a) Client
b) Subclass
c) Parent Class
d) Interface
Answer: b
Which of the following patterns is used to dynamically add responsibilities to
objects?
a) Proxy
b) Decorator
c) Composite
d) Chain of Responsibility
Answer: b
7.Which of the following is NOT a benefit of using explicit architecture?
a) Stakeholder communication
b) System analysis
c) Code optimization
d) Large-scale reuse
Answer: c
8.What is a drawback of using a layered architecture?
a) Increased performance
b) Difficult separation of layers
c) Lack of scalability
d) Inflexibility in design
Answer: b
When would you choose a client-server architecture?
a) To support real-time data updates
b) To allow offline operations
c) To handle high-variability in system load
d) To simplify component communication
Answer: c
What type of architectural pattern best supports multi-level security?
a) MVC
b) Layered Architecture
c) Client-Server
d) Event-Driven
Answer: b
In a transaction processing system, which is a primary feature?
a) Asynchronous user requests
b) Layered interfaces
c) Static component behaviour
d) Monolithic design
Answer: a
Which property is enhanced by minimizing inter-component communications?
a) Maintainability
b) Performance
c) Security
d) Scalability
Answer: b
1. What is the primary goal of the Singleton pattern?
a) To create multiple instances
b) To allow dynamic behaviour
c) To ensure only one instance exists
d) To enable incompatible interfaces to work together
Answer: c
Answer: a
Answer: b
Answer: c
Answer: b
Solutions:
MVC
Transaction Processing System
Layered Architecture
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-------------------------------------------------------
Which of the following UML diagrams shows system states and transitions?
A) Activity Diagram
B) Use Case Diagram
C) State Diagram
D) Class Diagram
Answer: C
In a class diagram, what does a solid line between two classes represent?
A) Aggregation
B) Composition
C) Association
D) Inheritance
Answer: C