Design Patterns Quiz

SupportiveHeliotrope3898 avatar
SupportiveHeliotrope3898
·
·
Download

Start Quiz

Study Flashcards

Questions and Answers

Which pattern separates construction and representation of complex objects?

Builder

What do design patterns solve?

Recurring design problems

Which pattern creates a family of related objects?

Abstract Factory

What are patterns?

<p>Ideas for solving problems of a certain class</p> Signup and view all the answers

Which pattern restricts object creation for a class to only one instance?

<p>Singleton</p> Signup and view all the answers

What are anti-patterns?

<p>Ideas not to use due to bad design</p> Signup and view all the answers

How many common patterns are included in the Gang-of-Four (GOF) Design Patterns?

<p>15</p> Signup and view all the answers

Into which categories are GOF Patterns divided?

<p>Creational, structural, and behavioral</p> Signup and view all the answers

What does the Adapter pattern do?

<p>Bridges two incompatible interfaces</p> Signup and view all the answers

What are the components of the Adapter pattern?

<p>Target interface and adapter</p> Signup and view all the answers

Study Notes

  • Design patterns solve recurring design problems.
  • Patterns are ideas for solving problems of a certain class.
  • Anti-patterns are ideas not to use due to bad design.
  • Gang-of-Four (GOF) Design Patterns include 15 common patterns.
  • GOF Patterns are divided into creational, structural, and behavioral categories.
  • Adapter pattern bridges two incompatible interfaces.
  • Adapter pattern uses a wrapper class to implement the target interface.
  • Adapter pattern promotes reusability of existing systems.
  • Adapter pattern is useful when dealing with incompatible interfaces.
  • Components of adapter pattern include target interface and adapter.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

More Quizzes Like This

Use Quizgecko on...
Browser
Browser