1. (TCO3) Which of the following is/are true about the object? (Points : 2) An o
ID: 3557819 • Letter: 1
Question
1. (TCO3) Which of the following is/are true about the object? (Points : 2) An object is an instance of the class. Real-world objects share two characteristics - state and behavior. A and B None of the above Question 2. 2. (TCO3) When would a programmer write more than one constructor? (Points : 2) You never have more than one constructor. The constructor cannot be overloaded. When the object can be initialized in more than one way. None of the above Question 3. 3. (TCO3) Which of the following might be potential class(es) in an application? (Points : 2) Shape Fill shape Draw shape All of the above None of the above Question 4. 4. (TCO3) Which of the following relationships are the most common relationships found between classes? (Points : 2) Dependence Aggregation Inheritance All of the above None of the above Question 5. 5. (TCO 3) Assume you have an Employee class with a non-static attribute named salary. If you create ten objects of this class, how many copies of the salary attribute will you have? (Points : 2) 2 10 An unlimited number None of the above Question 6. 6. (TCO3) What happens right after we gather requirements in the object-oriented design process? (Points : 2) We develop a SOW We identify classes We create a UML diagram We develop a prototype Question 7. 7. (TCO3) In the object-oriented design process, which of the following is/are true? (Points : 2) There are many design methodologies available. The waterfall design is one of the early design methodologies but is no longer appropriate in todays object-oriented programming world. We need to pick a methodology that can be followed by the corporation. All of the above Question 8. 8. (TCO3 To _____ an object is to create it. (Points : 2) instantiate encapsulate abstract overload Question 9. 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 Question 10. 10. (TCO 3) A clients ability to change values of private instance data is: (Points : 2) only possible by calling private methods. possible using public methods and references. never possible. only possible if the private variables are not declared inside the class.
Explanation / Answer
An object is an instance of the class.
Real-world objects share two characteristics - state and behavior.
A and B
None of the above
The constructor cannot be overloaded.
When the object can be initialized in more than one way.
None of the above
Shape
Fill shape
Draw shape
All of the above
None of the above
Dependence
Aggregation
Inheritance
All of the above
None of the above
2
10
An unlimited number
None of the above
We develop a SOW
We identify classes
We create a UML diagram
We develop a prototype
There are many design methodologies available.
The waterfall design is one of the early design methodologies but is no longer appropriate in today
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.