MCQ Set66

Multiple Choice Answers

1. (TCO 3) A solid object-oriented design process includes which of the following?
Doing good analysis
Gathering user requirements
Identify the classes
All of the above

2. (TCO3) A default constructor has how many parameters?
0
1
2
Variable number

3. (TCO3) Which of the following is true about identifying a class based on a set of requirements?
After the requirements are documented, the process of identifying classes can begin.
One way to identify classes is to identify nouns in the problem analysis.
Responsibilities of each class need to be identified after classes are identified.
All of the above

4. (TCO3) Why do classes need to collaborate with each other?
Most classes do not exist in isolation.
Classes need to interact with other classes to exchange data.
All of the above
None of the above

5. (TCO 3) Assume you have a Person class with a non-static attribute named age. If you create seven objects of this class, how many copies of the salary attribute will you have?
7
1
An unlimited number
None of the above

6. (TCO3) Which of the following correctly describes the steps taken to develop classes using the object-oriented design process, after we develop a prototype for the user interface?
Identifying class -> determining the class responsibilities -> determining class interaction -> creating UML diagram
Determining the class responsibilities -> identifying class -> determining class interaction ->
creating UML diagram
Determining the class responsibilities -> determining class interaction -> identifying class ->
creating UML diagram
Creating UML diagram -> identifying class -> determining the class responsibilities -> determining class interaction

7. (TCO3) Which of the following is true about the object-oriented design process?
The requirements need to be identified early.
Design change needs to be kept to a minimum.
A and B
None of the above

8. (TCO3 To _____ an object is to create it.
instantiate
encapsulate
abstract
overload

9. (TCO 3) Classes cannot _____.
be inherited from other classes
have a relationship with other classes
be used to model attributes and behaviors of objects
None of the above

10. (TCO 3) Object-oriented programming generally does not focus on _____.
separating the interface and implementation of a program
ease of program modifiability
information hiding
client-side access to implementation details