1. (TCO 3) A solid object-oriented design process includes which of the following? (Points : 2)
Doing good analysis
Gathering user requirements
Identify the classes
All of the above
2. (TCO3) A default constructor has how many parameters? (Points : 2)
0
1
2
Variable number
3. (TCO3) Which of the following is true about identifying a class based on a set of requirements? (Points : 2)
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? (Points : 2)
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? (Points : 2)
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? (Points : 2)
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? (Points : 2)
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. (Points : 2)
instantiate
encapsulate
abstract
overload
9. (TCO 3) Classes cannot _____. (Points : 2)
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 _____. (Points : 2)
separating the interface and implementation of a program
ease of program modifiability
information hiding
client-side access to implementation details
A solid object-oriented design process includes which of the following
- Technology: Multiple-Choice-Questions
- Code: SHC_MCQ_10009
-
$9.99
Tags: Multiple choice question, MCQ, object oriented programming, oop, UML, java