sdp5 patterns

Beschreibung

SDP5 Quiz am sdp5 patterns, erstellt von Csse 1502 am 21/11/2017.
Csse 1502
Quiz von Csse 1502, aktualisiert more than 1 year ago
Csse 1502
Erstellt von Csse 1502 vor etwa 7 Jahre
243
1

Zusammenfassung der Ressource

Frage 1

Frage
The observed pattern is?
Antworten
  • Structural
  • Creational
  • Behavioral
  • Executional

Frage 2

Frage
The Factory pattern is?
Antworten
  • Creational
  • Structural
  • Executional
  • Behavioral

Frage 3

Frage
In the pattern, we create objects which represent various strategies and a context object whose behavior varies as per its strategy object. The strategy object changes the executing algorithm of the context object?
Antworten
  • Memento
  • Adapter
  • Builder
  • Strategy
  • Facade

Frage 4

Frage
Single responsibility of principle?
Antworten
  • Requires that methods that are present in base classes must also be present in derived classes
  • Requires that object interfaces only include methods that will be needed by most implementers
  • Helps make changing an object easier
  • helps ensure that objects are highly reusable
  • Helps ensure that objects are easy to extend without requiring change to the original object

Frage 5

Frage
Which of the patterns refers to creating duplicate object while keeping performance in mind?
Antworten
  • Composite pattern
  • Facade Pattern
  • Builder pattern
  • Prototype pattern

Frage 6

Frage
The open close principle?
Antworten
  • Helps make changing an object easier
  • Helps ensure that objects are highly reusable
  • Requires that methods that are present in base classes must also be present in the derived classes
  • Requires that object interfaces only include methods that will be needed by most implementers
  • Helps ensure that objecs are easy extend without requiring change to the original object

Frage 7

Frage
Which of the following is not a software engineering risk?
Antworten
  • The code for sort algorithm is overly complex
  • The server may not scale to 1000 users
  • We do not adequately understand our customer's needs
  • The system is working fine, but if we try to change anything it seems to always break something else

Frage 8

Frage
A real life example could be a case of card reader which acts as the Pattern between memory card and a laptop. You plugin the memory card into card reader and card reader into the laptop so that memory card can be read via laptop?
Antworten
  • Builder
  • Facade
  • Memento
  • Adapter
  • Observer

Frage 9

Frage
The pattern works as a bridge between two incompatible interfaces. This pattern involves a single class which is responsible to join functionalities of independent or incompatible interfaces?
Antworten
  • Adapter
  • Facade
  • Builder
  • Observer
  • Memento

Frage 10

Frage
A design pattern _______
Antworten
  • all
  • useful in - how a software problem was solved by a developer
  • gives examples of code that used the pattern
  • a general reusable solution to a commonly occurring problem

Frage 11

Frage
Name types of design patterns?
Antworten
  • Creational, Structural, Behavioral
  • Creational, Executional, Structural
  • Creational, Behavioral, Executional
  • Behavioral, Executional, Structural

Frage 12

Frage
Why are Patterns important?
Antworten
  • they capture expert design knowledge
  • All
  • None
  • make it accessible to both novices and other experts

Frage 13

Frage
Liskov’s substitution principle?
Antworten
  • Helps ensure that object are easy to extend without requiring change to the original object
  • helps ensure that objects are hihtly reusable
  • Helps make changing an object easier
  • Requires that object interfaces only include methods that will be needed by most implementers
  • Requires that methods that are present in base classes must also be present in the derived classes

Frage 14

Frage
Upper case tools to support later activities such as programming, debugging and testing?
Antworten
  • True
  • False

Frage 15

Frage
The Dependency inversion principle?
Antworten
  • Requires that methods are present in base classes must also be in the derived classes
  • Helps ensure that objects are highly reusable
  • Helps make changing an object easier
  • Helps ensure that objects are easy to extend without requiring change to the original object
  • Requires that object interfaces only include methods that will be needed by mosty implementers

Frage 16

Frage
Can we create a clone of a singleton object?
Antworten
  • Yes
  • No

Frage 17

Frage
which pattern does this object model represent
Antworten
  • Singleton Pattern
  • Builder Pattern
  • Facade Pattern
  • Prototype Pattern

Frage 18

Frage
Which pattern does this object model represent?
Antworten
  • State pattern
  • Facade pattern
  • Composite pattern
  • Builder pattern

Frage 19

Frage
Which pattern does this object model represent?
Antworten
  • Strategy Pattern
  • Observer Pattern
  • State Pattern
  • Composite Pattern

Frage 20

Frage
Which pattern does this object model represent?
Antworten
  • Facade pattern
  • Strategy pattern
  • Composite pattern
  • Builder pattern

Frage 21

Frage
Which pattern does this object model represent?
Antworten
  • Facade pattern
  • Singleton pattern
  • State pattern
  • Strategy pattern
  • Composite pattern

Frage 22

Frage
Define one to many dependency between objects so that when one changes state, all its dependents are notified and updated automatically
Antworten
  • Composite pattern
  • Observer pattern
  • Strategy pattern
  • State pattern

Frage 23

Frage
The Interface Segregation Principle ?
Antworten
  • Hhelps make changing an object easier
  • Helps ensure that object are easy to extend without requiring change to the original object
  • Helps ensure that objects are hihtly reusable
  • Requires that methods are present in base classes must also be in the derived classes
  • Requires that object interfaces only include methods that will be needed by most implementers

Frage 24

Frage
The Pattern is used where we need to treat a group of objects in similar way as a single object
Antworten
  • Composite
  • Observer
  • Facade
  • Memento
  • Builder
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Vetie Repro Allgemein
Julia Ka
Chirurgische Instrumente Veterinärmedizin
Lisa Nintemann
Vetie Geflügelkrankheiten Fragebogen Röntgen 2, Haltung und Arten
N. H.