Q: Which of the following is an example of an architectural pattern?
-
A
Adapter
-
B
Single Access Point
-
C
Singleton
-
D
Prototype
B
Answer:
B
Explanation:
The Single Access Point pattern is an example of an architectural pattern. It is a design principle used to centralize access to a particular service, resource, or functionality, ensuring that all access goes through a single point, which can provide a more controlled and secure method of accessing that resource. Architectural patterns typically address high-level structures of software systems and their interaction between components. On the other hand, Adapter, Singleton, and Prototype are examples of design patterns, which typically apply to specific classes or methods within a system, rather than addressing the overall architecture of the software. Design patterns focus on solving specific design problems in the code, while architectural patterns deal with the overarching system structure and its components.
Related Topic:
Share Above MCQ