Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. (TCO3) Which statement is true regarding the principles of an object-oriented

ID: 3557845 • Letter: 1

Question

1. (TCO3) Which statement is true regarding the principles of an object-oriented language? (Points : 2)        Persistence is not an optional object-oriented language requirement.
       All methods should be public when declared inside a class.
       Encapsulation means hiding data in a class from other classes.
       Class attributes should be global so all elements of the program can see them. Question 2.2. (TCO3) A constructor can specify the return type: (Points : 2)        int.
       string.
       void.
       A constructor cannot specify a return type. Question 3.3. (TCO3) Which of the following might lead to potential class(es)? (Points : 2)        Shape
       Fill shape
       Draw shape
       All of the above
       None of the above Question 4.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 get something they want most of the time.
       This is where messages between classes apply.
       All of the above Question 5.5. (TCO 3) Assume you have a Circle class with a non-static attribute named radius. If you create two objects of the Circle class, how many copies of radius will you have?(Points : 2)        1
       2
       3
       4 Question 6.6. (TCO3) What happens right after gathering requirements in the object-oriented design process? (Points : 2)        Developing SOW
       Identifying classes
       Creating UML diagram
       Developing prototype Question 7.7. (TCO3) In the object-oriented design process, which of the following is true? (Points : 2)        There are many design methodologies available.
       Waterfall design is one of the early design methodologies and 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) In object-oriented design, which of the following is true about the gathering requirements phase? (Points : 2)        It represents what the user wants the system to do and is the most important part of the system.
       The level of detail needs to be very technical.
       The requirement document does not need to be very specific to represent the true nature.
       The gathering requirement happens after the developing user interface prototype. 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) Access specifiers (public and private) can appear _____. (Points : 2)        in any order and multiple times
       in any order (public first or private first), but not multiple times
       in any order and multiple times if they have brackets separating each type
       multiple times, but all specifiers of the same type must be grouped together 1. (TCO3) Which statement is true regarding the principles of an object-oriented language? (Points : 2)        Persistence is not an optional object-oriented language requirement.
       All methods should be public when declared inside a class.
       Encapsulation means hiding data in a class from other classes.
       Class attributes should be global so all elements of the program can see them. Question 2.2. (TCO3) A constructor can specify the return type: (Points : 2)        int.
       string.
       void.
       A constructor cannot specify a return type. Question 3.3. (TCO3) Which of the following might lead to potential class(es)? (Points : 2)        Shape
       Fill shape
       Draw shape
       All of the above
       None of the above Question 4.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 get something they want most of the time.
       This is where messages between classes apply.
       All of the above Question 5.5. (TCO 3) Assume you have a Circle class with a non-static attribute named radius. If you create two objects of the Circle class, how many copies of radius will you have?(Points : 2)        1
       2
       3
       4 Question 6.6. (TCO3) What happens right after gathering requirements in the object-oriented design process? (Points : 2)        Developing SOW
       Identifying classes
       Creating UML diagram
       Developing prototype Question 7.7. (TCO3) In the object-oriented design process, which of the following is true? (Points : 2)        There are many design methodologies available.
       Waterfall design is one of the early design methodologies and 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) In object-oriented design, which of the following is true about the gathering requirements phase? (Points : 2)        It represents what the user wants the system to do and is the most important part of the system.
       The level of detail needs to be very technical.
       The requirement document does not need to be very specific to represent the true nature.
       The gathering requirement happens after the developing user interface prototype. 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) Access specifiers (public and private) can appear _____. (Points : 2)        in any order and multiple times
       in any order (public first or private first), but not multiple times
       in any order and multiple times if they have brackets separating each type
       multiple times, but all specifiers of the same type must be grouped together

Explanation / Answer

1. Encapsulation means hiding data in a class from other classes.

2. A constructor cannot specify a return type.

A constructor may be parameterized but cannot return any value.

3.All of the above

4. Classes need to interact with other classes to get something they want most of the time.

5.  1

6.   Identifying classes

7.  All of the above

8. The gathering requirement happens after the developing user interface prototype.

9. None of the above

10. in any order (public first or private first), but not multiple times