Software Engineering Questions and Answers Part-27

1. A function-oriented design focuses on the entities in the system rather than the data processing activities.
a) True
b) False

Answer: b
Explanation: It is an object oriented design which focus on entities.

2. In DFDs, user interactions with the system is denoted by
a) Circle
b) Arrow
c) Rectangle
d) Triangle

Answer: a
Explanation: Circle

3. Choose the incorrect statement in terms of Objects.
a) Objects are abstractions of real-world
b) Objects can’t manage themselves
c) Objects encapsulate state and representation information
d) All of the mentioned

Answer: b
Explanation: Objects are independent.

4. What encapsulates both data and data manipulation functions ?
a) Object
b) Class
c) Super Class
d) Sub Class

Answer: a
Explanation: Object

5. Which of the following is a mechanism that allows several objects in an class hierarchy to have different methods with the same name?
a) Aggregation
b) Polymorphism
c) Inheritance
d) All of the mentioned

Answer: b
Explanation: In polymorphism instances of each subclass will be free to respond to messages by calling their own version of the method.

6. Inherited object classes are self-contained.
a) True
b) False

Answer: b
Explanation: Inherited object classes are not self-contained. They cannot be understood without reference to their super-classes.

7. Which of the following points related to Object-oriented development (OOD) is true?
a) OOA is concerned with developing an object model of the application domain
b) OOD is concerned with developing an object-oriented system model to implement requirements
c) All of the mentioned
d) None of the mentioned

Answer: c
Explanation: The answer is in support with the OOD.

8. How is generalization implemented in Object Oriented programming languages?
a) Inheritance
b) Polymorphism
c) Encapsulation
d) Abstract Classes

Answer: a
Explanation: Inheritance

9. Which of the following is a disadvantage of OOD ?
a) Easier maintenance
b) Objects may be understood as stand-alone entities
c) Objects are potentially reusable components
d) None of the mentioned

Answer: d
Explanation: All the options define the characteristics of OOD.

10. Which of the following describes”Is-a-Relationship” ?
a) Aggregation
b) Inheritance
c) Dependency
d) All of the mentioned

Answer: b
Explanation: Inheritance