Q#1: A class will be cohesive if:
(A) Class does not implement complex interfaces
(B) Class does not have complex methods
(C) If most of the methods do not use most of the data members most of the time
(D) If most of the methods use most of the data members most of the time
Answer: (D) If most of the methods use most of the data members most of the time
Q#2: ______ is a technique in which we construct a model of an entity based upon its essential characteristics and ignore the inessential details.
(A) Inheritance
(B) Polymorphism
(C) Aggregation
(D) Abstraction
Answer: (D) Abstraction
Q#3: The key objective(s) of OOD process should achieve the following:
(A) The class should be independent but dependent on few classes
(B) Interaction between two classes should be explicit
(C) Class hierarchy should be built on specialization of higher class
(D) All of the given options
Answer: (D) All of the given options
Q#4: “A car is made up of a body, wheels, steering mechanism and engine.” This statement is an example of:
(A) Whole-Part relationship
(B) Inheritance
(C) Specialization
(D) Generalization
Answer: (A) Whole-Part relationship
Q#5: A relationship that indicates one entity is composed of one or more parts is called:
(A) Inheritance
(B) Whole-part
(C) Generalization
(D) Specialization
Answer: (B) Whole-part
Q#6: Identify the TRUE statement(s):
(A) Multi-valued attributes should be replaced by a new class
(B) Attributes varying over time should have effective date class
(C) Replace yes/no attributes with status type attributes
(D) All of the given options
Answer: (D) All of the given options
Q#7: A structure expresses a ______ strong organization within the problem domain.
(A) Semantically
(B) Syntactically
(C) Graphically
(D) None of the given
Answer: (A) Semantically
Q#8: Whole-Part structure is also called:
(A) Generalization
(B) Aggregation
(C) Specialization
(D) Association
Answer: (B) Aggregation
Q#9: Specialization means:
(A) Calling the same method with child object
(B) Hiding the data
(C) Creating new subclasses from an existing class
(D) None of the given options
Answer: (C) Creating new subclasses from an existing class
Q#10: The intent of Object Oriented Analysis (OOA) is to define:
(A) All classes
(B) Relationships among classes
(C) Behavior of classes
(D) All of the given options
Answer: (D) All of the given options
Q#11: In Railway Ticket Reservation System, enquiry, reservation and cancellation are roles performed by:
(A) Passenger
(B) System analyst
(C) System developer
(D) System designer
Answer: (A) Passenger
Q#12: Defining the services of an object means:
(A) What it does
(B) What it knows
(C) Who knows it
(D) Whom it knows
Answer: (A) What it does
Q#13: When a class gets physical existence in computer memory it is called:
(A) Parent class
(B) Polymorphism
(C) Static object
(D) Object
Answer: (D) Object
Q#14: ______ gives OO the ability to handle essential complexity better than action-oriented approach.
(A) Centralization
(B) Decentralization
(C) Centralization and Decentralization
(D) None of the given
Answer: (B) Decentralization
Q#15: ______ is an extremely powerful technique for dealing with complexity.
(A) Aggregation
(B) Abstraction
(C) Inheritance
(D) Association
Answer: (B) Abstraction
Q#16: Modules interacting through message passing have ______ between them.
(A) Low cohesion
(B) High cohesion
(C) Low coupling
(D) High coupling
Answer: (C) Low coupling
Q#17: Identifying Whole-Part structures means identifying:
(A) Components
(B) Attributes
(C) Methods
(D) Messages
Answer: (A) Components
Q#18: In action-oriented approach, data is decomposed according to:
(A) Object requirements
(B) Functionality requirements
(C) Corresponding domain model
(D) Compatibility with object interface
Answer: (B) Functionality requirements
Q#19: Software objects interact and communicate using:
(A) Whole-Part relation
(B) Generalization/Specialization relation
(C) Messages
(D) None of the given options
Answer: (C) Messages
Q#20: A cohesive class emphasizes on ______ unit of functionality.
(A) Single
(B) Multiple
(C) Static
(D) None of the given
Answer: (A) Single
Q#21: In ______ relationship, a class shares structure and behavior of another class.
(A) Aggregation
(B) Composition
(C) Inheritance
(D) Uses
Answer: (C) Inheritance
Q#22: A “register” in Point of Sale system is an example of:
(A) Actor
(B) Participant
(C) Tangible thing
(D) Transaction
Answer: (C) Tangible thing
Q#23: Strong cohesion implies that:
(A) Parts have close logical relationship
(B) Parts have no logical relationship
(C) Component is dynamic
(D) Component is static
Answer: (A) Parts have close logical relationship
Q#24: Coupling is a measure of ______ of a module.
(A) Independence
(B) Dependence
(C) Aggregation
(D) Composition
Answer: (B) Dependence
Q#25: Class responsibilities are defined by:
(A) Its attributes only
(B) Its collaborators
(C) Its operations only
(D) Both its attributes and operations
Answer: (D) Both its attributes and operations
Q#26: In Point of Sale system, “Payment” represents:
(A) Actor
(B) Participant
(C) Transaction
(D) Container
Answer: (C) Transaction
Q#27: When two components use the same global data area, they are related by:
(A) Data Coupling
(B) Content Coupling
(C) Common Coupling
(D) External Coupling
Answer: (C) Common Coupling
Q#28: Which of the following is NOT one of the four layers of OO design pyramid?
(A) Subsystem layer
(B) Class and object layer
(C) Abstract layer
(D) Message layer
Answer: (C) Abstract layer
Q#29: The first step in any OOA process model is to:
(A) Build object relationship model
(B) Define collaborations between objects
(C) Elicit customer requirements
(D) Select representation language
Answer: (C) Elicit customer requirements