EntTCO 2) Which of the following is not part of a UML diagram? (Points : 2) Obje
ID: 3656869 • Letter: E
Question
EntTCO 2) Which of the following is not part of a UML diagram? (Points : 2)
Object
Name
Attribute
Method
All of the above
(TCO 2) The _____ keyword means that only one copy of an attribute exists and it is shared by ALL objects instantiated by the associated class. (Points : 2)
shared
private
public
static
(TCO 2) Java, c#, and c++ all allow the use of comments. Which of the following statement are true regarding comments?
The compiler will ignore all comments if they are properly formatted.
The IDE will ignore all comments if they are properly formatted.
The output console will ignore all comments if they are properly formatted.
All of the above
None of the above
(TCO 2) A(n) ____ has the same name as the class it is declared in, it is used to initialize attributes, and accepts zero arguments.
default destructor
default constructor
initializing method
instantiation
none of the above
(TCO 2)which of the following symbols indicates level of access for both attributes and methods in a class.
+
*
++
&
All of the above
(TCO 2)Which of the following is a proper implementation for a getter?
int getAge() { return age;}
void getAge() {return age;}
int getAge(int newAge) {this.age = newAge;}
void getAge() {return age;}
(TCO 2)Which of the following statement is false about encapsulation?
Encapsulation assists in creating reliable code.
Encapsulation assists in creating high-quality code.
Encapsulation assists in creating reusable code.
None of the aboveer question here...
Explanation / Answer
Attribute static The IDE will ignore all comments if they are properly formatted default constructor * int getAge(int newAge) Encapsulation assists in creating reusable code
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.