Design Patterns Review
- 87Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
87 questions
- 1The architect who initiated the pattern movement in 1977 through his book A Pattern Language was_____.
Hint
He transferred ideas from architecture into a broader theory of recurring solutions.
Answer
Christopher Alexander
- 2Christopher Alexander's 1977 book that established the foundation of the pattern movement was called_____.
Hint
The title combines the idea of recurring solutions with a structured vocabulary.
Answer
A Pattern Language
- 3A design pattern is best defined as a_____solution for a recurring problem.
Hint
The solution has already worked repeatedly in multiple projects.
Answer
proven
- 4Unlike a concrete implementation, a design pattern primarily provides a_____for solving a problem.
Hint
It describes the general approach rather than complete source code.
Answer
solution idea
- 5The transfer of the pattern movement from architecture into software development and software architecture led to the study of_____patterns.
Hint
These patterns address recurring problems in software systems.
Answer
software design
- 6The famous book by the Gang of Four is titled *Design Patterns: Elements of Reusable_____-Oriented Software*.
Hint
The missing term refers to the programming paradigm emphasized by the book.
Answer
Object
- 7The four authors commonly known as the Gang of Four are Ralph Johnson, Erich Gamma, Richard Helm, and John_____.
Hint
He is the fourth author listed in the Gang of Four book.
Answer
Vlissides
- 8The pattern-oriented software architecture books are commonly abbreviated as the_____books.
Hint
The abbreviation comes from the first letters of “pattern-oriented software architecture.”
Answer
POSA
- 9Douglas Schmidt is described in the lecture primarily as a major_____and author of patterns rather than the inventor of all of them.
Hint
He gathered patterns from authors and conferences and documented them.
Answer
collector
- 10The most important evidence that a proposed solution qualifies as a pattern is repeated use by multiple_____.
Hint
A pattern gains credibility when it works in more than one practical setting.
Answer
projects
- 11The name of a pattern should be catchy and concise, such as Adapter, Broker, or_____.
Hint
It is another named pattern discussed in the lecture.
Answer
Active Object
- 12The part of a pattern that explains the situation in which the pattern applies is the_____.
Hint
It specifies the domain and circumstances where the problem occurs.
Answer
context
- 13The part of a pattern that states what must be solved is the_____.
Hint
It identifies the difficult situation that motivates the pattern.
Answer
problem
- 14The conflicting constraints that make a pattern's problem difficult are called_____.
Hint
They pull the design in opposing directions.
Answer
forces
- 15The generic description of how a pattern addresses its problem is the_____.
Hint
It describes the arrangement and interaction that resolves the problem.
Answer
solution
- 16The static part of a pattern's solution describes the participating_____and classes.
Hint
This part focuses on structural participants rather than runtime behavior.
Answer
objects
- 17The dynamic part of a pattern's solution describes how participants collaborate during_____.
Hint
It concerns calls, communication, and construction over time.
Answer
runtime
- 18The benefits and liabilities resulting from applying a pattern are called its_____.
Hint
This part explains what the design gains and what it gives up.
Answer
consequences
- 19The reasoning that explains why a pattern's solution is appropriate is called its_____.
Hint
It provides the justification behind the design decision.
Answer
rationale
- 20Examples of actual implementations of a pattern in real systems are called_____.
Hint
They document where the pattern has already been applied.
Answer
known users
- 21In the pattern-house metaphor, the roof represents the pattern's_____.
Hint
The roof identifies the setting in which the pattern belongs.
Answer
context
- 22In the pattern-house metaphor, the foundation represents the pattern's_____.
Hint
A foundation is formed by evidence from actual applications.
Answer
known users
- 23A wrapping pattern solves a problem by placing another layer of_____around an existing element.
Hint
The new layer hides or adapts the underlying element.
Answer
abstraction
- 24Adapter, Proxy, Decorator, and Facade are examples of_____patterns.
Hint
These patterns place an additional layer around another component.
Answer
wrapping
- 25The main purpose of creational patterns is to_____objects.
Hint
These patterns address object construction and instantiation.
Answer
create
- 26The Builder pattern is useful when creating an object requires multiple_____.
Hint
The object is assembled progressively rather than in one operation.
Answer
steps
- 27The Prototype pattern treats an existing object as a_____for creating new objects.
Hint
New objects are made by copying or adapting an existing example.
Answer
template
- 28The Singleton pattern guarantees that a class has only_____instance.
Hint
Its defining constraint is unique instantiation.
Answer
one
- 29Behavioral patterns primarily change or implement the_____of objects.
Hint
They focus on what objects do and how they react.
Answer
behavior
- 30The Strategy pattern represents an algorithm in an_____form so that implementations can be exchanged.
Hint
The client uses a general interface rather than a fixed algorithm.
Answer
abstract
- 31The Command pattern encapsulates a method, its parameters, and its environment into one_____.
Hint
This makes the operation storable, transferable, or undoable.
Answer
object
- 32The State pattern is especially appropriate when an object is modeled as a_____machine.
Hint
The object's actions depend on its current condition.
Answer
state
- 33Architectural patterns influence the overall software_____rather than only one method.
Hint
They organize the structure of the whole application.
Answer
architecture
- 34Layers, Broker, Master-Slave, Client-Server, and Pipes and Filters are examples of_____patterns.
Hint
They organize broad system structure and communication.
Answer
architectural
- 35The Iterator pattern is designed to work effectively with_____.
Hint
It provides sequential access to elements without exposing the underlying representation.
Answer
collections
- 36The exact implementation of Iterator may differ because each programming_____determines how it is implemented.
Hint
Different languages provide different collection and traversal mechanisms.
Answer
language
- 37Communication patterns help decouple a_____from a receiver.
Hint
The pattern prevents the originator of information from depending directly on its destination.
Answer
sender
- 38A communication pattern may encapsulate information in a_____before sending it across a network.
Hint
The information is packaged like a letter.
Answer
message
- 39Model-View-Controller divides responsibilities among the model, the view, and the_____.
Hint
This component coordinates input and interaction with the other roles.
Answer
controller
- 40Locks, Monitor, Active Object, Future, Scoped Locking, and Async/Await are examples of_____patterns.
Hint
They address coordination and execution of operations that may overlap in time.
Answer
concurrency
- 41Resource patterns address when resources should be acquired and how to avoid forgetting their_____.
Hint
The resource must be returned or cleaned up after use.
Answer
release
- 42Garbage collection, leasing, and scoped resources are techniques associated with_____patterns.
Hint
These techniques manage the lifetime of system resources.
Answer
resource
- 43Reference counting deletes an object when_____needs it anymore.
Hint
Deletion occurs after the number of remaining references reaches zero.
Answer
nobody
- 44The pattern that uses reference counting to manage object lifetime is commonly called the_____pointer.
Hint
Its name refers to counting references to an object.
Answer
counted
- 45Chain of Responsibility and Interpreter are examples of patterns that do not belong to one specific_____group.
Hint
The lecture described them as important patterns outside the main categories.
Answer
pattern
- 46The Interpreter pattern is closely related to an_____syntax tree.
Hint
The common abbreviation is AST.
Answer
abstract
- 47Knowing pattern names and their basic ideas makes communication among developers_____.
Hint
A shared vocabulary allows a complex design to be discussed briefly.
Answer
easier
- 48In the Single Responsibility Principle, a class should have only one responsibility and therefore only one reason to_____.
Hint
The principle limits the causes that should require modifying a class.
Answer
change
- 49The Open-Closed Principle says that software entities should be open for extension but closed for_____.
Hint
New behavior should be added without changing existing source code.
Answer
modification
- 50The Strategy and State patterns can support the Open-Closed Principle by changing behavior through_____rather than source-code modification.
Hint
The original state machine can remain unchanged while its states and transitions vary.
Answer
configuration
- 51The Liskov Substitution Principle requires that derived classes be substitutable for their_____classes.
Hint
A subtype should work wherever its parent type is expected.
Answer
base
- 52The Interface Segregation Principle recommends several fine-grained interfaces instead of one large_____interface.
Hint
Clients should not depend on methods they do not need.
Answer
general-purpose
- 53According to Interface Segregation, an interface should provide a client only the capabilities that the client_____.
Hint
The interface should be restricted to the client's actual requirements.
Answer
needs
- 54The principle “make interfaces easy to use and hard to use_____” encourages safe and intuitive APIs.
Hint
The goal is to prevent misuse while keeping normal use simple.
Answer
wrong
- 55The Dependency Inversion Principle recommends depending on abstractions rather than_____classes.
Hint
Interfaces and abstract classes are preferred over fixed implementations.
Answer
concrete
- 56Programming against interfaces allows another developer to provide a different_____of the abstraction.
Hint
The client depends on the contract, not on one particular realization.
Answer
implementation
- 57The four general programming principles discussed were decomposition, abstraction, decoupling, and usability and_____.
Hint
The final principle concerns keeping solutions straightforward.
Answer
simplicity
- 58Decomposition breaks a large, difficult problem into smaller_____that can be solved step by step.
Hint
A large project can be divided into chapters or individual pieces of work.
Answer
tasks
- 59Abstraction manages complexity by hiding_____details behind a simpler layer.
Hint
The user of the abstraction need not know how the underlying mechanism works.
Answer
implementation
- 60An Adapter or Proxy can provide abstraction by wrapping a more complicated_____.
Hint
The simpler interface is placed around the underlying mechanism.
Answer
layer
- 61When sending a message over the Internet, an application developer can abstract away details such as the MAC frame and the IP_____.
Hint
It is part of the network information that lower layers manage.
Answer
header
- 62Decoupling delays design decisions so that they can be made at a later_____.
Hint
The decision is not fixed prematurely in the initial design.
Answer
time
- 63Avoiding a direct compile-time knowledge of a communication partner is one way to achieve_____.
Hint
The components can interact without being tightly dependent on one another.
Answer
decoupling
- 64Programming against abstractions helps prevent a small change from requiring recompilation of the complete_____code.
Hint
The principle reduces dependencies among implementation units.
Answer
source
- 65Usable interfaces should adhere to user_____and make class usage intuitive.
Hint
An interface should behave in a way that users naturally anticipate.
Answer
expectations
- 66Avoiding unnecessary complexity means not implementing features before they are_____.
Hint
The lecture warned against premature optimization and over-engineering.
Answer
needed
- 67A design pattern that affects the entire application architecture is classified as an_____pattern.
Hint
Layers and Broker are examples.
Answer
architectural
- 68Classical design patterns influence several components but not the entire software_____.
Hint
They operate at a level larger than one method but smaller than the whole system.
Answer
architecture
- 69Patterns that solve very small, language-specific problems are called_____.
Hint
They are tied to the conventions and features of a particular programming language.
Answer
idioms
- 70The counted pointer, scoped blocking, and scoped resources were presented as examples of_____.
Hint
These solutions are small in scope and often tied to language mechanisms.
Answer
idioms
- 71The Python construct_____
if name equals mainwas given as an example of a language-specific.Hint
It is a conventional Python structure rather than a language-independent design pattern.
Answer
idiom
- 72The Layers pattern was presented as an example of a pattern that influences the whole software_____.
Hint
It organizes the system into broad structural levels.
Answer
architecture
- 73Reflection allows a program to discover information about an object's methods and attributes during_____.
Hint
The information is obtained while the program is executing.
Answer
runtime
- 74The learning goal that asks why design patterns are needed belongs to design-pattern_____.
Hint
It concerns definitions, purposes, and foundational concepts.
Answer
theory
- 75A major learning goal was to understand the core principles of software design, including the_____principles.
Hint
This acronym names five widely used object-oriented design principles.
Answer
SOLID
- 76Students were expected to know the benefits, drawbacks, context, and appropriate_____of design patterns.
Hint
This concerns when and where a pattern should be used.
Answer
application
- 77Design patterns should be applicable independently of a particular programming_____.
Hint
General design patterns are not the same as language-specific idioms.
Answer
language
- 78Choosing between the Mediator and Observer patterns requires evaluating which pattern is more_____for the use case.
Hint
The decision depends on the specific requirements and consequences.
Answer
appropriate
- 79Using design patterns in a trivial Hello World program would usually be an example of_____.
Hint
The design introduces unnecessary complexity for a very simple problem.
Answer
over-engineering
- 80For a larger project, design patterns can make the architecture more_____and help avoid common problems.
Hint
The architecture can adapt more easily to changes.
Answer
flexible
- 81Reasonable design decisions balance forces and consequences against a specific set of requirements and_____.
Hint
The design must respond to the actual situation being solved.
Answer
problems
- 82Patterns make knowledge explicit by recording it in books, papers, conferences, and_____.
Hint
This medium was also used extensively in the lecture.
Answer
videos
- 83Publishing patterns makes the associated knowledge more_____to other developers.
Hint
People can locate the knowledge in public resources.
Answer
findable
- 84Organizing a pattern in a familiar structure helps make the knowledge_____.
Hint
Readers can more easily interpret information presented in a known format.
Answer
understandable
- 85The most important stage of learning a pattern is knowing how to_____it in a real-world problem.
Hint
Memorizing the name is less valuable than using the idea correctly.
Answer
apply
- 86Patterns express an internal model that helps people judge whether a pattern's_____are acceptable.
Hint
The model supports deciding whether the trade-offs are tolerable.
Answer
consequences
- 87The lecture's closing advice encouraged students to study what interests them and apply ideas to their own problems and_____.
Hint
Learning is strengthened when concepts are tested in personally relevant work.
Answer
projects

Ask anything
We've read this whole study set, so questions about it get the best answers.