BITS WILP Object Oriented Analysis and Design Quiz-3 2017-H1
Question
1
F2183:How to change our design to
reuse instances of those small objects and use memory efficiently?
Select one:
a.
Use Decorator
b.
Use Flyweight
c.
Use Facade
d.
Use Adapter
Feedback
The correct answer is: Use Flyweight
Question
2
F2200:Which of following are either
structural or creaor design patterns?
Select one:
a.
Decorator
b.
All the given choices
c.
Facade
d.
Decorator and Facade
e.
Singleton
Feedback
The correct answer is: All the given
choices
Question
3
F2110:Which of the following is
false?
Select one:
a.
Dependencies limit reusability
b.
Cyclic dependencies of packages allows reusability
c.
A Class (Package) cannot be reused without reusing the Class (Package) on which
it depends
d.
A Dependency between Packages indicates (a Class(es) in ) one Package in some
way relies on (a Class(es) in ) the other Package
Feedback
The correct answer is: Cyclic
dependencies of packages allows reusability
Question
4
F2155: Which of the following is NOT
creational design pattern?
Select one:
a.
Factroy Method
b.
SIngleton
c.
String builder
d.
Abstract Factory
Feedback
The correct answer is: String
builder
Question
5
F2107a:Which of the following
statements are true?
Select one:
a.
Derived associations and attributes can be found in class diagrams only.
b.
Within a specification perspective, derived associations and attributes
indicate an implementation option e.g. optimization and performance
considerations.
c.
Within a specification perspective, derived associations and attributes
indicate a constraint between values.
d.
All the given choices
Feedback
The correct answer is: Within a
specification perspective, derived associations and attributes indicate a
constraint between values.
Question
6
F2135:Higher coupling can lead to:
Select one:
a.
More obstacles to code reuse
b.
More difficulty in understanding
c.
All the given choices
d.
Changes propagating excessively
Feedback
The correct answer is: All the given
choices
Question
7
F2149: Law of Demeter states that
Select one:
a.
Don’t talk to strangers
b.
Principle of Least Knowledge
c.
Write shy codes
d.
Only talk to your immediate friends
e.
All the given choices
f.
Minimize coupling
Feedback
The correct answer is: All the given
choices
Question
8
F2154:Which of the following
statements are true for Singleton pattern?
Select one:
a.
Both A and B
b.
Define a protected method, "getInstance()", of the class that returns
the singleton.
c.
A only
d.
Exactly one instance of a class is allowed, it is a singleton. Objects need a
global and single point of access.
Feedback
The correct answer is: Both A and B
Question
9
F2175: Which of following is NOT
component of Factory Method pattern?
Select one:
a.
Concrete Product
b.
Product
c.
Concrete Creator
d.
Concrete Strategy
Feedback
The correct answer is: Concrete
Strategy
Question
10
F2143:Which is one of the simplest
of the principles, and the one of the hardest to get right?
Select one:
a.
ISP
b.
DIP
c.
SRP
d.
OCP
Feedback
The correct answer is: SRP
Question
11
F2194:Allow an object to alter its
behavior when its internal state changes. The object will appear to change its
class.
Select one:
a.
Adapter
b.
Interpreter
c.
Composite
d.
State
Feedback
The correct answer is: State
Question
12
F2185:_____ pattern decouple an from
its implementation so that independently abstraction implementation the two can
vary independently.
Select one:
a.
Composite
b.
Bridge
c.
Decorator
d.
Adapter
Feedback
The correct answer is: Bridge
Question
13
F2165: GoF patterns can be
classified as
Select one:
a.
All the given choices
b.
Structural
c.
Creational
d.
Behavioural
Feedback
The correct answer is: All the given
choices
Question
14
F2103a:Which statements are true
about Class Diagrams?
Select one:
a.
class but not the other way round.
b.
From the conceptual perspective, associations represent conceptual
relationships between classes
c.
Naming role is optional. If missing, it is named after the source class
d.
Within the specification perspective, associations represent methods.
e.
Multiplicities are normally 0, 1, *. It does not support for a range number
e.g. 2-4
f.
From the conceptual perspective, associations have no arrow heads meaning that
they are non-directional
Feedback
The correct answer is: From the
conceptual perspective, associations represent conceptual relationships between
classes
Question
15
F2177:What is TRUE about composite
pattern?
Select one:
a.
B: Composite lets clients treat individual objects and compositions of objects
uniformly.
b.
A: Compose objects into tree structures to represent part-whole hierarchies.
c.
B only
d.
A and B
Feedback
The correct answer is: A and B
Question
16
F2133:Which of the following pattern
generally is key to loose coupling and high cohesion?
Select one:
a.
High Cohesion
b.
Low Coupling
c.
Creator
d.
Information Expert
Feedback
The correct answer is: Information
Expert
Question
17
F2158:Use _______ to build,
step-by-step, complex objects
Select one:
a.
Builder
b.
Abstracct Factory
c.
Factory Method
d.
Fabrication
Feedback
The correct answer is: Builder
Question
18
F2134:Which pattern is to be used to
support low dependency, low change impact, and increased reuse?
Select one:
a.
Fabrication
b.
Low Coupling
c.
Cohesion
d.
Expert
Feedback
The correct answer is: Low Coupling
Question
19
F2120:Which of following is NOT UML
keyword?
Select one:
a.
Unique
b.
propertyString
c.
Ordered
d.
List
Feedback
The correct answer is:
propertyString
Question
20
F2112:Which of the following
statement is true? The contents of a Package can be :
Select one:
a.
another Package diagram
b.
a list of classes
c.
class diagram
d.
All the given choices
Feedback
The correct answer is: All the given
choices
Question
21
F2157:________ provide an interface
for creating families of related or dependent objects without specifying their
concrete classes.
Select one:
a.
Singleton
b.
Fabrication
c.
Abstracct Factory
d.
Factory Method
Feedback
The correct answer is: Abstracct
Factory
Question
22
F2102a:Package diagrams are designed
for:
Select one:
a.
reducing dependency
b.
depicting the overall structure of a system
c.
All the given choices
d.
assisting deployment
Feedback
The correct answer is: depicting the
overall structure of a system
Question
23
F2141:What is main benifit of
Indirection?
Select one:
a.
More number of small classes
b.
Higher copuling
c.
Lower coupling
d.
Lower cohesion
Feedback
The correct answer is: Lower
coupling
Question
24
F2181:Which of the following is NOT
true about Facade?
Select one:
a.
Provide a unified interface to a set of interfaces in a subsystem.
b.
Facade defines a higher-level interface that makes the subsystem easier to use
c.
It decreases coupling
d.
It increases copuling
Feedback
The correct answer is: It increases
copuling
Question
25
F2102:Package diagrams are designed
for:
Select one:
a.
All the given choices
b.
Organizing a large project into components
c.
reducing dependency
d.
assisting deployment
Feedback
The correct answer is: Organizing a
large project into components
No comments:
Post a Comment