Sadp MCQ
Sadp MCQ
Answer: B
Answer: B
3. A system is designed with a centralized database and tightly coupled modules. What
architecture is this?
A. Client-Server
B. Monolithic
C. Microservices
D. Event-Driven
Answer: B
4. A web app offloads heavy computation to a distributed cloud service. Which architectural
style is most relevant?
A. Layered Architecture
B. Client-Server
C. Event-Driven
D. Microservices
Answer: B
Answer: A
6. The Singleton Pattern ensures:
A. All instances of a class are identical
B. A class has only one instance
C. Objects are created in factories
D. Memory usage is minimized
Answer: B
Answer: D
Answer: A
Answer: B
Answer: B
11. A library system uses a class to combine and treat books, magazines, and newspapers
uniformly. Which pattern does it employ?
A. Composite
B. Bridge
C. Flyweight
D. Facade
Answer: A
12. A drawing app separates shapes from the rendering logic, enabling changes to either.
Which pattern is this?
A. Bridge
B. Decorator
C. Adapter
D. Composite
Answer: A
Answer: A
Answer: B
15. Which pattern defines a family of algorithms and lets clients choose one at runtime?
A. Observer
B. Strategy
C. Iterator
D. Command
Answer: B
16. Which pattern is most appropriate for undo functionality in applications?
A. Memento
B. Command
C. Observer
D. State
Answer: A
17. A notification system updates all observers when the state of a subject changes. Which
pattern is this?
A. Observer
B. Mediator
C. Chain of Responsibility
D. State
Answer: A
18. A text editor stores snapshots of its state before each edit. Which pattern supports this?
A. Command
B. Memento
C. Strategy
D. Chain of Responsibility
Answer: B
19. Why does the Strategy Pattern promote flexibility in algorithm usage?
A. It centralizes algorithm logic
B. It allows algorithms to be interchanged dynamically
C. It reduces dependency between classes
D. It eliminates the need for abstract classes
Answer: B
Answer: B
Answer: B
23. A banking app uses microservices to handle transactions, each with its database. What is
this approach called?
A. Distributed Architecture
B. Client-Server Architecture
C. Event-Driven Architecture
D. Layered Architecture
Answer: A
Answer: A
Answer: A
Answer: B
27. A system delegates responsibility to multiple handlers until one processes a request.
Which pattern applies?
A. Chain of Responsibility
B. Observer
C. Proxy
D. State
Answer: A
28. An e-commerce platform allows users to undo multiple steps. Which combination of
patterns works here?
A. Memento and Command
B. Strategy and Observer
C. State and Chain of Responsibility
D. Flyweight and Adapter
Answer: A
Answer: A
Answer: A