Design Patterns – quiz with 15 questions

The most important design patterns of the “Gang of Four” in practical cases: Singleton, Factory, Builder, Adapter, Decorator, Facade, Proxy, Composite, Strategy, Observer, Command, and State.

Questions
15
Level
Intermediate
Area
Programming & data · Programming languages

Modules

Sample question

Welches Muster stellt sicher, dass es von einer Klasse nur eine einzige Instanz gibt?

  • Factory Method
  • Observer
  • Adapter
  • Singleton

Correct: Singleton. Der Preis: globaler Zustand und erschwerte Tests. Heute übernimmt oft ein DI-Container die Rolle mit einer „Singleton“-Lebensdauer.

More questions from the quiz

  • Eine App erzeugt je nach Land einen anderen Steuerrechner, ohne dass der Aufrufer die Klassen kennt. Welches Muster passt?
  • Ein Objekt hat zwölf optionale Einstellungen. Welches Muster macht seine Erzeugung lesbar?
  • Was ist die Grundidee des Prototype-Musters?
  • Aus welchem Buch stammen die 23 klassischen Entwurfsmuster?
  • Eine alte Schnittstelle liefert XML, deine App erwartet ein anderes Interface. Welches Muster vermittelt?

The questions and explanations are in German – checked by experts, not machine-translated.

After every answer, Quizbot explains why it is right or wrong. Open questions come first, and progress is counted per topic. The quiz is free of charge; no account is needed.

As of 15.11.2026 · All quizzes

Quizbot – a project by AI SYSTEM, St. Gallen · Home