¡GoConqr estrena diseño! Cuéntanos qué te parece.

Test

Software Design Patterns

Dustin White 19 preguntas

Hacer el test

Preguntas del test (19)

  1. 1The original creators of design patterns were known as the gang of four. How many design patterns are there?
    1. A40
    2. B25
    3. C23
    4. D32
  2. 2Design patterns are about reusing and the design experience. How is the design pattern expressed?
    1. AIt is expressed by algorithms, an object class, and collected into mathematic operators.
    2. BIt is expressed by a definition, a class diagram, and collected into a catalog of patterns.
    3. CIt is expressed by agile methodology, testing, and release history.
    4. DIt is expressed by common problems you create from risk analysis.
  3. 3Design patterns are comprised of object-oriented basics. What are the object-oriented basics?
    1. AThe basics are experience, algorithm, abstraction, and encapsulation.
    2. BThe basics are state, behavior, classes, and interfaces.
    3. CThe basics are inheritance, polymorphism, abstraction, and encapsulation.
  4. 4An object is an instance of a class. What is a concrete instance when working with design patterns?
    1. AA concrete instance refers to any occurrence of objects that exist during the runtime of a computer program.
    2. BA concrete instance refers to dynamic object values that are always changing.
    3. CA concrete instance refers to the behavior or state of an object.
  5. 5Which coding format "implements" when deriving a superclass with a subclass?
    1. Apublic class SomeSuperClass implements SomeSubClass {
      public void doSomething() {
      System.out.println("Using implements to derive classes");
      }
      }
    2. Bpublic class SomeSubClass implements SomeSuperClass {
      public void doSomething() { System.out.println("Using implements to derive classes");
      }
      }
    3. Cpublic class SomeSuperClass implements {
      public void doSomething() {
      System.out.println("Using implements to derive classes");
      }
      }
  6. 6Design patterns use algorithms for the strategy pattern. How is the strategy pattern defined?
    1. AThe strategy pattern defines functional math operations.
    2. BThe strategy pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable.
    3. CThe strategy pattern defines one instance of a class with algorithms. It is also called a singleton.
  7. 7Which difference does the HAS-A relationship have in comparison to the IS-A relationship?
    1. AInstead of inheriting behavior like the IS-A relationship, the HAS-A composes the behavior.
    2. BThe IS-A relationship cannot be inherited, but the HAS-A relationship is inherited.
    3. CThe HAS-A relationship owns its behavior, whereas the IS-A relationship leases its behavior.
  8. 8When working with inheritance, which kind of relationship do you have with classes?
    1. AClasses share an HAS-A relationship.
    2. BClasses share a many-to-one relationship.
    3. CClasses share an IS-A relationship.
  9. 9What does abstract mean in inheritance when working with subclasses?
    1. ASubclasses must add private methods and variables to the superclass.
    2. BSubclasses must create abstract methods and behaviors because they are abstract.
    3. CSubclasses must override all abstract methods of its abstract superclass.
  10. 10What is an interface, and how is it used in design patterns?
    1. ADesign patterns use interfaces to create algorithms and math operations.
    2. BDesign patterns use interfaces to create one instance of a class.
    3. CDesign patterns use interfaces to define methods an object must have to be considered a particular type.

Información

Descripción
Software Development Computer Science Test sobre Software Design Patterns, creado por Dustin White el 15/12/2021.
Idioma
English
Visitas
0
Valoración
Aún sin valoraciones
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?