O GoConqr está de visual novo! Conte para nós o que você achou.

Quiz

Design Patterns

Erica Solum 19 perguntas 5,0 (2 avaliações)

Fazer o quiz

Perguntas do quiz (19)

  1. 1Adapter is:
    1. Acreational pattern which defines an interface for creating objects, but delegates the actual responsibility for selecting the class and instantiating the object to a subclass
    2. Bstructural pattern that lets you add responsibilities to an object dynamically
    3. Cstructural pattern that adapts a class with an incompatible interface to fit your needs
  2. 2Observer is:
    1. Abehavioral pattern that allows an object to notify other objects when it changes (without knowing what the other objects are)
    2. Bbehavioral pattern that lets subclasses redefine certain steps of an algorithm without changing the algorithm's structure.
      (Similar to Strategy but allows steps to be changed instead of whole implementation)
    3. Cbehavioral pattern that allows a class to use different variants of an algorithm
  3. 3Factory method is:
    1. Acreational pattern which defines an interface for creating objects, but delegates the actual responsibility for selecting the class and instantiating the object to a subclass
    2. Bcreational pattern which provides an interface for creating families of related(or dependent) objects without specifying their concrete classes
    3. Cbehavioral pattern that lets subclasses redefine certain steps of an algorithm without changing the algorithm's structure.
      (Similar to Strategy but allows steps to be changed instead of whole implementation)
  4. 4Abstract Factory is:
    1. Acreational pattern which provides an interface for creating families of related(or dependent) objects without specifying their concrete classes
    2. Bstructural pattern that lets you add responsibilities to an object dynamically
    3. Cbehavioral pattern that allows a class to use different variants of an algorithm
  5. 5Decorator is:
    1. Astructural pattern that lets you add responsibilities to an object dynamically
    2. Bbehavioral pattern which encapsulates a request as an object
    3. Cstructural pattern that adapts a class with an incompatible interface to fit your needs
  6. 6Command is:
    1. Abehavioral pattern which encapsulates a request as an object
    2. Bbehavioral pattern that allows a class to use different variants of an algorithm
    3. Cbehavioral pattern that allows an object to notify other objects when it changes (without knowing what the other objects are)
  7. 7Use case for abstract factory:
    1. Asystem should be independent of product creation
    2. Bwant to configure with multiple families of products
    3. Cwant to ensure that a product family is used together
    4. Dwhen an algorithm consists of varying and invariant parts that must be customized
    5. Ea class can't anticipate the class of objects it must create
  8. 8Use cases for factory method:
    1. Aa class can't anticipate the class of objects it must create
    2. Ba class wants its subclasses to specify the objects it create
    3. Cyou need to use several subclasses, but its impractical to adapt their interfaces by subclassing each one
    4. Dmany classes differ only in their behavior
    5. Ewant to configure with multiple families of products
  9. 9Use cases for decorator:
    1. Aadd responsibilities to individual objects dynamically and transparently
    2. Bwhen responsibilities for objects can be withdrawn
    3. Cwhen extension of functionality by subclassing is impractical
    4. Dparameterize objects by an action to perform
    5. Eclient needs different variants of an algorithm
    6. Fsystem should be independent of product creation
  10. 10Use cases for command:
    1. Aparameterize objects by an action to perform
    2. Bspecify, queue, and execute requests at different times
    3. Cstructure a system around high-level operations built out of primitives
    4. Dyou want to create a reusable class that cooperates with unrelated classes that might not have compatible interfaces
    5. Eclient needs different variants of an algorithm
    6. Fsystem should be independent of product creation

Informações

Descrição
Final Software Engineering Quiz sobre Design Patterns, criado por Erica Solum em 15-03-2016.
Idioma
English
Visualizações
921
Avaliação
5,0 de 5 · 2 avaliações
Avalie este quiz
Avalie este quiz

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?