,1. Multiple Choice: Which design pattern is best suited for
scenarios where an object should be extensible without modifying
its structure?
a) Singleton
b) Observer
c) Decorator
d) Factory Method
Correct Answer: c) Decorator
2. Fill-in-the-Blank: The _______ pattern is a software design
pattern that allows for the separation of concerns by decoupling the
software's business logic from its user interface.
Correct Answer: Model-View-Controller (MVC)
3. True/False: In software design, 'Coupling' refers to the level of
independence between software modules.
Correct Answer: True
, b) Inheritance
c) Polymorphism
d) Recursion
Correct Answers: a) Encapsulation, b) Inheritance, c)
Polymorphism
5. Multiple Choice: What is the main advantage of using a 'Facade'
design pattern?
a) It promotes strong coupling between classes.
b) It provides a simple interface to a complex subsystem.
c) It ensures that classes are open for extension but closed for
modification.
d) It allows for method overloading.
Correct Answer: b) It provides a simple interface to a complex
subsystem.
6. Fill-in-the-Blank: The principle of _______ states that subclasses
should be substitutable for their base classes without altering the
correctness of the program.
Correct Answer: Liskov Substitution Principle (LSP)
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller ClementeO. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $13.49. You're not tied to anything after your purchase.