MCQ Bank
You want to avoid multiple inheritance. Which design pattern would you choose?
- A) General Hierarchy Pattern
- B) Abstraction-Occurrence Pattern
- C) Player-Role Pattern
- D) Singleton Pattern
___________ deal with decoupling interface and implementation of classes and objects.
- A) Creational patterns
- B) Architectural patterns
- C) Behavioural patterns
- D) Structural patterns
How many bad smells fall in Object-orientation abusers?
- A) Six
- B) Three
- C) Four
- D) Five
In state design patterns, by ________________ each state in a class, we localize any changes that need to be made.
- A) Encapsulating
- B) Aggregating
- C) Associating
- D) Inheriting
You want to avoid multiple inheritance. Which design pattern would you choose?
- A) Singleton Pattern
- B) Player-Role Pattern
- C) General Hierarchy Pattern
- D) Abstraction-Occurrence Pattern
Reflexive associations are an association to connect a class to___________.
- A) Itself
- B) Each other
- C) One another
- D) Others
Code has to work mostly correctly before you _________________ it.
- A) Hacked
- B) Rewrite
- C) Refactor
- D) Freeze
Design pattern ____________ is the abstract description of design problems and how the pattern solves it.
- A) Problem
- B) Solution
- C) Element
- D) Name
At the time of refactoring, the ________________ behavior of the ________________ does not change.
- A) Internal, System
- B) External, Object
- C) External, System
- D) Internal, Object
In ________________________the ends of the association are semantically different from each other, even though the associated class is the same.
- A) Symmetric Reflexive Association
- B) Symmetric Association
- C) Asymmetric Reflexive Association
- D) Reflexive Association
Façade Design Pattern is a ________________.
- A) Creational Pattern
- B) Observer Pattern
- C) Structural Pattern
- D) Behavioral Pattern
Fowler’s book assigns “names” to refactoring in the same way that the _________________ book assigned names to patterns.
- A) K. N. Thompson
- B) William C. Wake
- C) GoF's
- D) Steven Metsker
________________ verifies who the user is.
- A) Manipulation
- B) Authentication
- C) Authorization
- D) Publication
In terms of Structural Recommendations, the modules that produce data should be ____________ modules that consume data.
- A) Separated from
- B) Merged with
- C) Placed in the same class
- D) Enclosed
Client/server, component-based, layered architecture, message-bus, Separated Presentation, 3-tier/N-tier, object-oriented, and service-oriented architecture (SOA) are the examples of __________.
- A) Architectural styles
- B) Rich Internet Application
- C) Web Applications
- D) Rich Client Applications
Which of the following helps you to turn central features such as data access, cashing, workflow and validation into actions?
- A) Architecture frame
- B) Class diagram
- C) Engineering decisions
- D) User stories
In general while choosing an Appropriate Structure, design and document it only if doing so brings a positive return in terms of _____________.
- A) Increased development and maintenance costs
- B) Decreased development and maintenance costs
- C) Increased development but decreased maintenance costs
- D) Decreased development but increased maintenance costs
____________ determines what resources a user can access.
- A) Aggregation
- B) Authorization
- C) Sophistication
- D) Authentication
How to choose effective caching strategies?
- A) Choosing strategy depends on staff skills
- B) Choosing strategy depends on problem, application type, environment and constraints
- C) Choosing strategy depends on office environment
- D) Choosing strategy only depends on hiring foreign professionals and constraints of the system
In Client-Server Pattern, the connectors are the _____________ they share among each other to carry out the system’s work.
- A) Clients and the Servers
- B) Clients and Protocols
- C) Messages and Servers
- D) Protocols and Messages