CS-504 Software Engineering-I
Quiz No.2 May, 07 2012
Solved By Fukar and his team
A class will be cohesive if:
Select correct option:
Class does not implement Complex interfaces
Class does not have Complex Methods
If most of the methods do not use most of the data members most of the time
if most of the methods use most of the data members most of the time.
___ is a technique in which we construct a model of an entity based upon its essential characteristics and ignore the inessential details.
Select correct option:
Inheritance
Polymorphism
Aggregation
Abstraction
The key objective(s) of OOD process should achieve the following:
Select correct option:
The class as far as possible should be Independent , but could be dependent on
only a few classes.
Interaction between two classes should be explicit.
Class hierarchy should be built on specialization of higher class.
All of the given options
"A car is made up of a body, three or four wheels, a steering mechanism, a breaking mechanism, and a power-engine" The above statement is example of:
Select correct option:
Whole-Part relationship
Inheritance
Specialization
Generalization
A ___ relationship indicates that one entity is composed of one or more parts which are themselves instances of that or another entity.
Select correct option:
Inheritance
Whole-part
Generalization
Identify the TRUE statement(s)
Select correct option:
An attribute that may have a number of values should be replaced by a new class and an object connection
An attribute that varies over time, e.g., price of an item, should be replaced by an
additional class with an effective date and value
Replace "yes/no" type attributes with "status" type attributes for flexibility
All of given options
A structure is a manner of an organization which expresses a ______ strong organization within the problem domain.
Select correct option:
semantically
syntactically
graphically
none of the given
semantically
Whole Part Structure is also called ____
Select correct option:
Generalization
Aggregation
Specialization
Association
Specialization means:
Select correct option:
Calling the same method with object of child object
Hiding the data
Creating new subclasses from an existing class
None of given options
The intent of Object Oriented Analysis (OOA) is to define:
Select correct option:
All classes
Relationships among classes
Behavior of classes
All of the given options
In "Railway ticket reservation system" the roles such as enquiry , reservation and ticketing and cancellation are to be performed by the user called :-
Select correct option:
Passenger
System analyst
System developer
System designer
Defining the services of an object means:
Select correct option:
What it does?
What it knows?
Who knows it?
Whome it knows?
When a class gets physical existance in computer memory, it is called
Select correct option:
Parent Class
polymorphism
Static Object
Object
A class will be cohesive if:
Select correct option:
Class does not implement Complex interfaces
Class does not have Complex Methods
If most of the methods do not use most of the data members most of the time
if most of the methods use most of the data members most of the time.
A ___ relationship indicates that one entity is composed of one or more parts which are themselves instances of that or another entity.
Select correct option:
Inheritance
Whole-part
Generalization
Specialization
----------------gives OO the ability to handle essential complexity better than action-oriented approach.
Select correct option:
Centralization
Decentralization
Decentralization and Centralization
none of the given
_________ is an extremely powerful technique for dealing with complexity.
Select correct option:
Aggregation
Abstraction
Inheritance
Association
The modules interacting with each other through message passing have _______ between them.
Select correct option:
low cohesion
high cohesion
low coupling
high couling not sure
Example of Coupling
The modules that interact with each other through message passing have low coupling
while those who interact with each other through variables that maintain information
about the state have high coupling. The following diagram shows examples of two such
systems
Identifying Whole-Part structures (Aggregations) means what are my _______
Select correct option:
Components
Attributes
Methods
Messages
___ is a technique in which we construct a model of an entity based upon its essential characteristics and ignore the inessential details.
Select correct option:
Inheritance
Polymorphism
Aggregation
Abstraction
----------------gives OO the ability to handle essential complexity better than action-oriented approach.
Select correct option:
Centralization
Decentralization
Decentralization and Centralization
none of the given
In the case of action-oriented approach, data is decomposed according to:
Select correct option:
Object requirements
Functionality requirements
Corresponding domain model
Compatibility with object interface
Identify the TRUE statement(s)
Select correct option:
An attribute that may have a number of values should be replaced by a new class and an object connection
An attribute that varies over time, e.g., price of an item, should be replaced by an
additional class with an effective date and value
Replace "yes/no" type attributes with "status" type attributes for flexibility
All of given options
Software objects interact and communicate with each other using ______ .
Select correct option:
Whole-Part relation
Generalization/Specialization relation
Messages
None of given options.
A cohesive Class is one which emphasizes on __ unit of functionality
Select correct option:
Single
Multiple
Static
None of the given options
is an extremely powerful technique for dealing with complexity.
Select correct option:
Aggregation
Abstraction
Inheritance
Association
The key objective(s) of OOD process should achieve the following:
Select correct option:
The class as far as possible should be Independent , but could be dependent on
only a few classes.
Interaction between two classes should be explicit.
Class hierarchy should be built on specialization of higher class.
All of the given options
In this case of _______, intra component linkages are stronger while inter component linkages are weak.
Select correct option:
high cohesion
low coupling
low cohesion
high coupling
Identifying Whole-Part structures (Aggregations) means what are my _______
Components
Attributes
mthods
messages
In ________ relationship, a class shares the structure and behavior defined in another class.
Select correct option:
Aggregation
Composition
Inheritance
Uses
Aggregation
A "register" in "Point of sale system" is an example of:
Select correct option:
Actor
Participant
Tangible thing
Transaction
Identify the TRUE statement(s)
Select correct option:
An attribute that may have a number of values should be replaced by a new class and an object connection
An attribute that varies over time, e.g., price of an item, should be replaced by an additional class with an effective date and value
Replace "yes/no" type attributes with "status" type attributes for flexibility
All of given options
---------------gives OO the ability to handle essential complexity better than action-oriented approach.
Select correct option:
Centralization
Decentralization
Decentralization and Centralization
none of the given
To help separate an object's external behavior from its implementation, the technique used is called _________.
Select correct option:
Generalization
Association
Composition
Abstraction
While establishing the services for an object, the following fundamental questions should be asked
Select correct option:
Why does the system need this object any way?
What useful questions can it answer?
What useful action can it perform?
All of the given options
A change becomes ----------- because of close presence of data and fucntions
Select correct option:
Accessible
Global
Private
Localized
A class will be cohesive if:
Select correct option:
Class does not implement Complex interfaces
Class does not have Complex Methods
If most of the methods do not use most of the data members most of the time
if most of the methods use most of the data members most of the time.
______ analysis educates the analyst on business domain complexity and shows a way to deal with it.
Select correct option:
Domain
Use Case
Object Collaboration
None of the given options
Strong cohesion implies that:
Select correct option:
All parts of a component have a close logical relationship with each other.
All parts of a component do not have a close logical relationship with each other.
Component is dynamic in nature
Component is static in nature
----------------gives OO the ability to handle essential complexity better than action-oriented approach.
Select correct option:
Centralization
Decentralization
Decentralization and Centralization
none of the given
In Object Oriented Design, ______ layer contains the details that enable each object to communicate with its collaborators.
Select correct option:
subsystem
responsibility
message
object
Whole Part Structure is also called ______
Select correct option:
Generalization
Aggregation
Specialization
Association
Coupling is a measure of _____ of a module or component.
Select correct option:
Independence
Dependence
Aggregation
Composition
Class responsibilities are defined by _________.
Select correct option:
its attributes only
its collaborators
its operations only
both its attributes and operations
In "Point of Sale system", the term "Payment" represents
Select correct option:
Actor
Participant
Transaction
Container
The key objective(s) of OOD process should achieve the following:
Select correct option:
The class as far as possible should be Independent , but could be dependent on only a few classes.
Interaction between two classes should be explicit.
Class hierarchy should be built on specialization of higher class.
All of the given options
While establishing the services for an object, the following fundamental questions should be asked
Select correct option:
Why does the system need this object any way?
What useful questions can it answer?
What useful action can it perform?
All of the given options
The modules interacting with each other through message passing have _______ between them.
Select correct option:
low cohesion
high cohesion
low coupling
high couling
Software objects interact and communicate with each other using ______ .
Select correct option:
Whole-Part relation
Generalization/Specialization relation
Messages
None of given options.
While establishing the services for an object, the following fundamental questions should be asked
Select correct option:
Why does the system need this object any way?
What useful questions can it answer?
What useful action can it perform?
All of the given options
A car is made up of a body, three or four wheels, a steering mechanism, a breaking mechanism, and a power-engine" The above statement is example of:
Select correct option:
Whole-Part relationship
Inheritance
Specialization
Generalization
A "register" in "Point of sale system" is an example of:
Select correct option:
Actor
Participant
Tangible thing
Transaction
When two components of a system are using the same global data area, they are related as
Select correct option:
Data Coupling
Content Coupling
Common Coupling
External Coupling
Which of the following is NOT among one of the four layers of the Object Oriented (OO) design pyramid
Select correct option:
The subsystem layer
The class and object layer
The Abstract layer
The message layer
The first step in any OOA process model is to
Select correct option:
build an object-relationship model.
define collaborations between objects.
elicit customer requirements.
select a representation language.
A ___ relationship indicates that one entity is composed of one or more parts which are themselves instances of that or another entity.
Select correct option:
Inheritance
Whole-part
Generalization
Specialization
is an extremely powerful technique for dealing with complexity.
Select correct option:
Aggregation
Abstraction
Inheritance
Association
A change becomes ----------- because of close presence of data and fucntions
Select correct option:
Accessible
Global
Private
Localized
In "Railway ticket reservation system" the roles such as enquiry , reservation and ticketing and cancellation are to be performed by the user called :-
Select correct option:
Passenger
System analyst
System developer
System designer
Amjad Zahid: Which of the following is NOT among one of the four layers of the Object Oriented (OO) design pyramid
Select correct option:
The subsystem layer
The class and object layer
The Abstract layer
The message layer
___ is a technique in which we construct a model of an entity based upon its essential characteristics and ignore the inessential details.
Select correct option:
Inheritance
Polymorphism
Aggregation
Abstraction
In ________ relationship, a class shares the structure and behavior defined in another class.
Select correct option:
Aggregation
Composition
Inheritance
Uses
Once you define "Employee" as an object for pay-roll application _______
Select correct option:
It can NOT be used for income tax, bonus, commission or any HR application.
It can be used for income tax, bonus, commission or any HR application.
It can only provide Read-Only properties
None of the given options
A class will be cohesive if:
Select correct option:
Class does not implement Complex interfaces
Class does not have Complex Methods
If most of the methods do not use most of the data members most of the time
if most of the methods use most of the data members most of the time.
4th?
In this case of _______, intra component linkages are stronger while inter component linkages are weak.
Select correct option:
high cohesion
low coupling
low cohesion
high coupling
In the case of action-oriented approach, data is decomposed according to:
Select correct option:
Object requirements
Functionality requirements
Corresponding domain model
Compatibility with object interface
----------------gives OO the ability to handle essential complexity better than action-oriented approach.
Select correct option:
Centralization
Decentralization
Decentralization and Centralization
none of the given
In the case of ________ in a system, module boundaries are not well defined.
Select correct option:
low cohesion
high coupling
low coupling
high cohesion
A ___ relationship indicates that one entity is composed of one or more parts which are themselves instances of that or another entity.
Select correct option:
Inheritance
Whole-part
Generalization
Specialization
The three most important characteristics of an object are
Select correct option:
Identity
State
Behavior
All of the given
In Object Oriented Design, ______ layer contains the details that enable each object to communicate with its collaborators.
Select correct option:
subsystem
responsibility
message
object
______ has become a standard notation for object oriented system modeling.
Select correct option:
UML
C++
OCL (object Constraint Language)
None of the given options
______ analysis educates the analyst on business domain complexity and shows a way to deal with it.
Select correct option:
Domain
Use Case
Object Collaboration
None of the given options
___ is a technique in which we construct a model of an entity based upon its essential characteristics and ignore the inessential details.
Select correct option:
Inheritance
Polymorphism
Aggregation
Abstraction
Quiz: 4
The modules interacting with each other through message passing have _______ between them.
Select correct option:
low cohesion
high cohesion
low coupling
high couling
A change becomes ----------- because of close presence of data and fucntions
Select correct option:
Accessible
Global
Private
Localized
Coupling is a measure of _____ of a module or component.
Select correct option:
Independence
Dependence
Aggregation
Composition
localized
Identify the TRUE statement(s)
Select correct option:
An attribute that may have a number of values should be replaced by a new class and an object connection
An attribute that varies over time, e.g., price of an item, should be replaced by an
additional class with an effective date and value
Replace "yes/no" type attributes with "status" type attributes for flexibility
All of given options
The first step in any OOA process model is to
Select correct option:
build an object-relationship model.
define collaborations between objects.
elicit customer requirements.
select a representation language.
"System should maintain transaction log of every transaction" The above statement is an example of
Select correct option:
Functional requirement
Non-functional requirement
Pseudo requirement
None of the given options
The most important and critical stage in the object oriented design is the appropriate classification of _______.
Select correct option:
functions
methods
objects
relationships
4?
or 2?
When two components of a system are using the same global data area, they are related as
Select correct option:
Data Coupling
Content Coupling
Common Coupling
External Coupling
Class responsibilities are defined by _________.
Select correct option:
its attributes only
its collaborators
its operations only
both its attributes and operations
In "Railway ticket reservation system" the roles such as enquiry , reservation and ticketing and cancellation are to be performed by the user called :-
Select correct option:
Passenger
System analyst
System developer
System designer
___ is a technique in which we construct a model of an entity based upon its essential characteristics and ignore the inessential details.
Select correct option:
Inheritance
Polymorphism
Aggregation
Abstraction
"A car is made up of a body, three or four wheels, a steering mechanism, a breaking mechanism, and a power-engine" The above statement is example of:
Select correct option:
Whole-Part relationship
Inheritance
Specialization
Generalization
Identifying Whole-Part structures (Aggregations) means what are my _________
Select correct option:
Components
Attributes
Methods
Messages
A ___ relationship indicates that one entity is composed of one or more parts which are themselves instances of that or another entity.
Select correct option:
Inheritance
Whole-part
Generalization
Specialization
Identifying Whole-Part structures (Aggregations) means what are my _______
Select correct option:
Components
Attributes
Methods
Messages
Identifying Whole-Part structures (Aggregations) means what are my _______
Select correct option:
Components
Attributes
Methods
Messages
"A car is made up of a body, three or four wheels, a steering mechanism, a breaking mechanism, and a power-engine" The above statement is example of:
Select correct option:
Whole-Part relationship
Inheritance
Specialization
Generalization
Which of the following is NOT among one of the four layers of the Object Oriented (OO) design pyramid
Select correct option:
The subsystem layer
The class and object layer
The Abstract layer
The message layer
When a class gets physical existance in computer memory, it is called
Select correct option:
Parent Class
polymorphism
Static Object
Object
In this case of _______, intra component linkages are stronger while inter component linkages are weak.
Select correct option:
high cohesion
low coupling
low cohesion
high coupling
Consider the following piece of code: public clas s Square extends Shape { // some code . } The above code is an example of:
Select correct option:
Part-Whole relationship
Generalization/Specialization
Data Sharing
Data encapsulation
A structure is a manner of an organization which expresses a ______ strong organization within the problem domain.
Select correct option:
semantically
syntactically
graphically
none of the given
Consider the following piece of code: public clas s Square extends Shape { // some code . } The above code is an example of:
Select correct option:
Part-Whole relationship
Generalization/Specialization
Data Sharing
Data encapsulation
A structure is a manner of an organization which expresses a ______ strong organization within the problem domain.
Select correct option:
semantically
syntactically
graphically
none of the given
______ has become a standard notation for object oriented system modeling.
Select correct option:
UML
C++
OCL (object Constraint Language)
None of the given options
______ analysis educates the analyst on business domain complexity and shows a way to deal with it.
Select correct option:
Domain
Use Case
Object Collaboration
None of the given options
To help separate an object's external behavior from its implementation, the technique used is called _________.
Select correct option:
Generalization
Association
Composition
Abstraction
Identifying Whole-Part structures (Aggregations) means what are my _________
Select correct option:
Components
Attributes
Methods
Messages
______ has become a standard notation for object oriented system modeling.
Select correct option:
UML
C++
OCL (object Constraint Language)
None of the given options
The most important and critical stage in the object oriented design is the appropriate classification of _______.
Select correct option:
functions
methods
objects
relationships
While establishing the services for an object, the following fundamental questions should be asked
Select correct option:
Why does the system need this object any way?
What useful questions can it answer?
What useful action can it perform?
All of the given options
To help separate an object's external behavior from its implementation, the technique used is called _________.
Select correct option:
Generalization
Association
Composition
Abstraction
The modules interacting with each other through message passing have _______ between them.
Select correct option:
low cohesion
high cohesion
low coupling
high couling
Coupling is a measure of _____ of a module or component.
Select correct option:
Independence
Dependence
Aggregation
Composition
Which of the following is NOT among one of the four layers of the Object Oriented (OO) design pyramid
Select correct option:
The subsystem layer
The class and object layer
The Abstract layer
The message layer
A tangible entity in the real life is called
Select correct option:
Functions
Object
Class
None of the given
Whole Part Structure is also called ______
Select correct option:
Generalization
Aggregation
Specialization
Association
While establishing the services for an object, the following fundamental questions should be asked
Select correct option:
Why does the system need this object any way?
What useful questions can it answer?
What useful action can it perform?
All of the given options
Defining the services of an object means:
Select correct option:
What it does?
What it knows?
Who knows it?
Whome it knows?
---------------gives OO the ability to handle essential complexity better than action-oriented approach.
Select correct option:
Centralization
Decentralization
Decentralization and Centralization
none of the given
Specialization means:
Select correct option:
Calling the same method with object of child object
Hiding the data
Creating new subclasses from an existing class
None of given options
Class responsibilities are defined by _________.
Select correct option:
its attributes only
its collaborators
its operations only
both its attributes and operations
In the case of ________ in a system, module boundaries are not well defined.
Select correct option:
low cohesion
high coupling
low coupling
high cohesion
When two components of a system are using the same global data area, they are related as
Select correct option:
Data Coupling
Content Coupling
Common Coupling
External Coupling
m.waseem.vu: no idea
When a class gets physical existance in computer memory, it is called
Select correct option:
Parent Class
polymorphism
Static Object
Object
_________ is an extremely powerful technique for dealing with complexity.
Select correct option:
Aggregation
Abstraction
Inheritance
Association
In Object Oriented Design, ______ layer contains the details that enable each object to communicate with its collaborators.
Select correct option:
subsystem
responsibility
message
object
--
Zindagi mein 2 Logo ka buhat khayal rahkoooo
Ist woh jiss ney tumhari jeet ke Liye buhat kuch hara hoo (Father)
2nd woh jiss ko tum ney har dukh me pukaara hoo (Mother)
Regards,
Umair Saulat
--
Please visit
http://vusr.net for Old and Latest Papers, Assignments, Quiz and GDBs.
http://VUSR.net The ultimate VU Study Resource
You received this message because you are subscribed to the Google
Groups "VUSR" group.
To unsubscribe
vusr+unsubscribe@googlegroups.com
To Visit Group Home Page
http://groups.google.com/group/vusr?hl=en?hl=en