Object Oriented Analysis and Design - Quiz 3
BITS PILANI- WILP - M.Tec. - Software Systems
1. ISP states that
Select one:
a. High-level modules should not depend on low-level modules
b. BOTH Clients should not be forced to depend on methods they do not use AND Design
cohesive interfaces and avoid "fat" interfaces
c. Design cohesive interfaces and avoid "fat" interfaces
d. Clients should not be forced to depend on methods they do not use
Ans: d. Clients should not be forced to depend on methods they do not use
2. F2166b:What is true about Structural desing pattern?
Select one:
a. Makes the system independent of how the objects are created, composed and represented.
b. Abstract the instantiation process
c. All the given choices
d. How classes and objects are composed to form larger structures?
Ans: d. How classes and objects are composed to form larger structures?
3. F2109:Which of the following statements are true about Package Diagrams?
Select one:
a. Dependency is indicated by a solid line with arrow head at one end
b. Package diagrams are particularly useful for testing
c. Package is an object-oriented approach in managing system structure
d. Package is a grouping mechanism that can be applied to classes only
e. Package in UML is similar to Java, to avoid name collision
f. Package dependency and class dependency are not the same.
Ans: b. Package diagrams are particularly useful for testing
4. F2155: Which of the following is NOT creational design pattern?
Select one:
a. String builder
b. Factroy Method
c. SIngleton
d. Abstract Factory
Ans: a. String builder
5. F2138:How to handle alternatives based on type?
Select one:
a. Use protected variations
b. Use Polymorphism
c. User Expert
d. Use adapter
Ans: b. Use Polymorphism
6. F2188:Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations.
Select one:
a. Use Facade
b. Use Chain Of Responsibility
c. Use Interpreter
d. Use Command pattern
Ans: d. Use Command pattern
7. F2142:How to design elements (objects, subsystems, and systems) so that the variations or instability in these elements does not have an undesirable impact on other elements?
Select one:
a. Use creator
b. Use Protected Variations
c. Use Indirection
d. Use Expert
Ans: b. Use Protected Variations
8. F2146:Subtypes must be substitutable for their base types, is suggested by
Select one:
a. SRP
b. LSP
c. OCP
d. DIP
Ans: b. LSP
9. F2165: GoF patterns can be classified as
Select one:
a. Creational
b. Structural
c. Behavioural
d. All the given choices
Ans : d. All the given choices
10. F2118:Which of following are false?
Select one:
a. Domain model shows conceptual perspective
b. Domain model does not represent class diagrams.
c. Design class diagram shows software perspective
Ans: b. Domain model does not represent class diagrams.
11. F2153:Which design pattern would resolve who should be responsible for creating objects when there are special considerations such as complex creation logic, a desire to separate the creation responsibilities for better cohesion and so forth?
Select one:
a. Singleton
b. Creator
c. Abstract factory
d. Factory
Ans: d. Factory
12. F2145: While implementing OCP what are the guidelines?
Select one:
a. Look for internal relationships
b. Both Look for duplicated code AND Look at the change history
c. Look for duplicated code
d. Look at the change history
e. Look at hidden methods
Ans: b. Both Look for duplicated code AND Look at the change history
13. F2107a:Which of the following statements are true?
Select one:
a. Within a specification perspective, derived associations and attributes indicate a constraint between values.
b. All the given choices
c. Derived associations and attributes can be found in class diagrams only.
d. Within a specification perspective, derived associations and attributes indicate an implementation option e.g. optimization and performance considerations.
Ans: b. All the given choices
14. F2168:Which of following is NOT true for behavioural design pattern?
Select one:
a. Abstract the instantiation process
b. Concerned with algorithms and assignment of responsibilities between objects
c. Describe the patterns of communication between objects
d. All the given choices
Ans: a. Abstract the instantiation process
15. F2189:Given a language, define a representation for its grammar along with an interpreter that uses the representation to interpret sentences in the language.
Select one:
a. Use Command
b. Use Composite
c. Use Interpreter
d. Use Facade
Ans : c. Use Interpreter
16. F2168A:Which of following is NOT true for behavioural design pattern?
Select one:
a. Neither of the given choices
b. Behavioral class patterns use inheritance to distribute behavior between classes
c. Concerned with algorithms and assignment of responsibilities between objects
d. Both the given choices
Ans: a. Neither of the given choices
17. F2139:What object should have the responsibility, when you do not want to violate High Cohesion and Low Coupling, or other goals, but solutions offered by Exert (for example) are not appropriate?
Select one:
a. Cohesion
b. Expert
c. Pure Fabrication
d. Protected Variation
Ans: d. Protected Variation
18. F2102:Package diagrams are designed for:
Select one:
a. reducing dependency
b. Organizing a large project into components
c. All the given choices
d. assisting deployment
Ans: b. Organizing a large project into components
19. F2125:To partition the domain model into packages, place elements together that
Select one:
a. Are weakly associate
b. Participate in different use case
c. Are in a class hierarchy together
d. Are in same subject area
e. Are in same subject area or Are in a class hierarchy together
Ans: e. Are in same subject area or Are in a class hierarchy together
20. F2116:The property string specified in operations syntax can include
Select one:
a. Abstract operation
b. Exceptions that may arise
c. Return type
d. Exceptions that may arise and Abstract operation
Ans: d. Exceptions that may arise and Abstract operation
21. F2191:______ promotes loose coupling by keeping objects from referring to each other explicitly, and it lets you vary their interaction independently.
Select one:
a. Mediator
b. Command
c. Iterator
d. Interpreter
Ans: a. Mediator
22. F2191:______ promotes loose coupling by keeping objects from referring to each other explicitly, and it lets you vary their interaction independently.
Select one:
a. Mediator
b. Command
c. Iterator
d. Interpreter
Ans: a. Mediator
23. F2180:How to change our design to reuse the logic to place an order and, at the same time, reducing the probability of being affected by changes in interfaces?
Select one:
a. Use Facade
b. Use Composite
c. Use Observer
Ans: a. Use Facade
24. F2108:Which of the following statement is true about visibility?
Select one:
a. UML adopts Java's convention
b. UML uses # for public element
c. UML uses - for private element
d. UML uses * for protected element
Ans: c. UML uses - for private element
25.F2174: Which of following is NOT component of Strategy pattern?
Select one:
a. Strategy
b. Context
c. Adaptee
d. Concrete Strategy
Ans: c. Adaptee
No comments:
Post a Comment