Software Design Mcqs - Set 1

1)   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  Explanation 

ANSWER: Objects can’t manage themselves

Explanation:
No explanation is available for this question!


2)   Which of the following describes”Is-a-Relationship” ?

a. Aggregation
b. Inheritance
c. Dependency
d. All of the mentioned
Answer  Explanation 

ANSWER: Inheritance

Explanation:
No explanation is available for this question!


3)   Object that collects data on request rather than autonomously is known as_________________?

a. Active Object
b. Passive Object
c. Multiple instance
d. None of the mentioned
Answer  Explanation 

ANSWER: Passive Object

Explanation:
A passive object holds data, but does not initiate control.


4)   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  Explanation 

ANSWER: None of the mentioned

Explanation:
All the options define the characteristics of OOD.


5)   How is generalization implemented in Object Oriented programming languages ?

a. Inheritance
b. Polymorphism
c. Encapsulation
d. Abstract Classes
Answer  Explanation 

ANSWER: Inheritance

Explanation:
No explanation is available for this question!


6)   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  Explanation 

ANSWER: Polymorphism

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


7)   Objects are executed _____________________?

a. sequentially
b. in Parallel
c. sequentially & Parallel
d. none of the mentioned
Answer  Explanation 

ANSWER: sequentially & Parallel

Explanation:
Objects may be distributed and may execute
sequentially or in parallel.


8)   How many layers are present in the OO design pyramid ?

a. three
b. four
c. five
d. one
Answer  Explanation 

ANSWER: four

Explanation:
The four layers are: Subsystem layer, class and object layer, message layer and responsibilities layer


9)   Grady Booch, James Rumbaugh, and Ivar Jacobson combined the best features of their individual object-oriented analysis into a new method for object oriented design known as _____________________?

a. HTML
b. XML
c. UML
d. SGML
Answer  Explanation 

ANSWER: UML

Explanation:
The Unified Modeling Language (UML) has become widely used throughout the industry as the standard approach to OOD.


10)   Which of the following is conceptually similar to objects ?

a. PACKAGE
b. PROC
c. PRIVATE
d. None of the mentioned
Answer  Explanation 

ANSWER: PACKAGE

Explanation:
A package is a namespace that organizes a set of related classes and interfaces.