1.1 ·
12 mins read ·
12 questions
Analyse the use of the Observer pattern in distributed systems (publish–subscribe, message brokers) and explain the issues of message ordering, delivery guarantees and coupling.
1.2 ·
12 mins read ·
14 questions
Define anti-patterns and recognise common ones (God Object, Spaghetti Code, Golden Hammer, Lava Flow, copy-and-paste programming) together with their remedies.
1.3 ·
11 mins read ·
11 questions
Describe the Observer pattern (subject, observers, notification, push and pull models) and identify it in code or in a class diagram.
1.4 ·
11 mins read ·
8 questions
Describe the Strategy pattern and explain how it replaces conditional logic with composition.
1.5 ·
12 mins read ·
8 questions
Explain Model–View–Controller (MVC), the responsibilities of each component, and why MVC is classed as an architectural or compound pattern rather than a single design pattern.
1.6 ·
12 mins read ·
12 questions
Select an appropriate pattern for a given design problem and justify the choice.
2.1 ·
10 mins read ·
11 questions
Classify design patterns into the creational, structural and behavioural categories and state the intent of each category.
2.2 ·
11 mins read ·
17 questions
Describe the Factory Method pattern, distinguish it from a simple factory and from Abstract Factory, and identify where it reduces coupling.
2.3 ·
12 mins read ·
15 questions
Describe the intent, structure and an example use of at least one structural pattern (Adapter, Facade or Decorator).
2.4 ·
11 mins read ·
7 questions
Describe the intent, structure and consequences of the Singleton pattern, including thread-safety concerns and why overuse makes it an anti-pattern.
2.5 ·
12 mins read ·
5 questions
Explain what a design pattern is, the elements of a pattern description (name, problem, solution, consequences), and the benefits and risks of using patterns.