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

1. (TCO 2) Which of the following statements is true? (Points : 2) Object names

ID: 3842333 • Letter: 1

Question

1. (TCO 2) Which of the following statements is true? (Points : 2)        Object names are listed in the bottom section of a UML diagram.
       Attribute names are listed in the bottom section of a UML diagram.
       Method names are listed in the bottom section of a UML diagram.
       Class names are listed in the bottom section of a UML diagram.
       None of the above

Question 2. 2. (TCO 2) Java, C# and C++ all allow for the use of comments. Which of the following statements is/are true regarding comments? (Points : 2)        Comments may span only one line.
       Comments may span one or more lines.
       Comments must span more than one line.
       None of the above

Explanation / Answer

1) Method names are listed in the bottom section of a UML diagram.

Explanation: We knpow that In UML there are three section, one for name, attributes and methods
First is class name, then all the attributes and then comes the methods. Hence methods names are present in bottom of uml
2) Comments may span one or more lines.


3) All of the above


4)   constructor


5) encapsulation


6) a
ll attributes and methods in a class
7)   black box

8) Encapsulation assists with the creation of code that is reusable.


9)public: int getAge(){return age;}, public: void setName(int newAge){age = newAge;}

10)
private: string name;