Questão 1
Questão
The observed pattern is?
Responda
-
Structural
-
Creational
-
Behavioral
-
Executional
Questão 2
Questão
The Factory pattern is?
Responda
-
Creational
-
Structural
-
Executional
-
Behavioral
Questão 3
Questão
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?
Responda
-
Memento
-
Adapter
-
Builder
-
Strategy
-
Facade
Questão 4
Questão
Single responsibility of principle?
Responda
-
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
Questão 5
Questão
Which of the patterns refers to creating duplicate object while keeping performance in mind?
Responda
-
Composite pattern
-
Facade Pattern
-
Builder pattern
-
Prototype pattern
Questão 6
Questão
The open close principle?
Responda
-
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
Questão 7
Questão
Which of the following is not a software engineering risk?
Responda
-
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
Questão 8
Questão
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?
Responda
-
Builder
-
Facade
-
Memento
-
Adapter
-
Observer
Questão 9
Questão
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?
Responda
-
Adapter
-
Facade
-
Builder
-
Observer
-
Memento
Questão 10
Questão
A design pattern _______
Responda
-
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
Questão 11
Questão
Name types of design patterns?
Responda
-
Creational, Structural, Behavioral
-
Creational, Executional, Structural
-
Creational, Behavioral, Executional
-
Behavioral, Executional, Structural
Questão 12
Questão
Why are Patterns important?
Questão 13
Questão
Liskov’s substitution principle?
Responda
-
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
Questão 14
Questão
Upper case tools to support later activities such as programming, debugging and testing?
Questão 15
Questão
The Dependency inversion principle?
Responda
-
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
Questão 16
Questão
Can we create a clone of a singleton object?
Questão 17
Questão
which pattern does this object model represent
Responda
-
Singleton Pattern
-
Builder Pattern
-
Facade Pattern
-
Prototype Pattern
Questão 18
Questão
Which pattern does this object model represent?
Responda
-
State pattern
-
Facade pattern
-
Composite pattern
-
Builder pattern
Questão 19
Questão
Which pattern does this object model represent?
Responda
-
Strategy Pattern
-
Observer Pattern
-
State Pattern
-
Composite Pattern
Questão 20
Questão
Which pattern does this object model represent?
Responda
-
Facade pattern
-
Strategy pattern
-
Composite pattern
-
Builder pattern
Questão 21
Questão
Which pattern does this object model represent?
Responda
-
Facade pattern
-
Singleton pattern
-
State pattern
-
Strategy pattern
-
Composite pattern
Questão 22
Questão
Define one to many dependency between objects so that when one changes state, all its dependents are notified and updated automatically
Responda
-
Composite pattern
-
Observer pattern
-
Strategy pattern
-
State pattern
Questão 23
Questão
The Interface Segregation Principle ?
Responda
-
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
Questão 24
Questão
The Pattern is used where we need to treat a group of objects in similar way as a single object
Responda
-
Composite
-
Observer
-
Facade
-
Memento
-
Builder