stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Software Design Patterns Flashcards | StudBud
Explore
/
Software Design Patterns
Software Design Patterns
6 terms
·
StudBud Administration
·
5 plays
Imported from external platform
Flashcards
6 cards
F
Practice quiz
P
Host live
L
Questions
6
Answers
1
Which of the following is a real-life example of the Adapter pattern from the lesson?
a) A shared library catalog system
b) A temperature converter for a weather app
c) A news agency notifying subscribers
d) A sandwich builder with toppings
2
What is the primary purpose of a design pattern as introduced in the lesson?
c) To optimize database queries in software systems
b) To provide reusable solutions to common software design problem
a) To write complex algorithms for specific problem
d) To create user interfaces for applications
3
Factory Method Pattern Purpose: “Define an interface for creating objects, letting subclasses choose.”
True
False
4
In the Factory Method pattern, what is the role of the creator class?
d) To dynamically add responsibilities to an object
b) To define an interface for creating objects, letting subclasses choose t
a) To store a single instance of an object
c) To adapt an incompatible interface to a new system
5
Which design pattern ensures that a class has only one instance, and what is a real-life example ?
c) Adapter, a power adapter
b) Singleton, a shared office printer
a) Factory Method, a restaurant kitchen
d) Decorator, a coffee shop
6
Which of the following is NOT a real-life example of the Factory Method pattern from the lesson?
b) Vehicle Factory (Cars or bikes
c) Notification System (Email or SMS)
a) Document Creator (Word or PDF documents)
d) Shared Database Connection