Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Question 3. 3. (TCO 2) Attributes of a class can be declared as which of the following? (Points : 2)
protected public private All of the above

Question 4. 4. (TCO 2) If a programmer does not explicitly define a _____, a default version will be provided by the compiler. (Points : 2)
destructor method constructor attribute All of the above

Question 5. 5. (TCO 2) One of the ways object-oriented languages protect object data is through _____. (Points : 2)
integration of objects universal data access encapsulation the public accessor All of the above

Question 6. 6. (TCO 2) Accessors such as + and - can be used to dictate how external programs, objects, and entities interact with _____. (Points : 2)
an entire class only all attributes and methods in a class attributes of a class only methods of a class only None of the above

Question 7. 7. (TCO 2) An object-oriented class should be designed as a(n) _____ system. In other words, the specific details of a class do not need to be known by a programmer as long as they are aware of the inputs and outputs associated with the class. (Points : 2)
instantiated private black box implemented

Question 8. 8. (TCO 2) Which of the following statements is true about encapsulation? (Points : 2)
Encapsulation assists in combining more than one class together in a single, cohesive entity. Encapsulation assists with messaging between objects because it allows full access of all attributes to outside entities Encapsulation assists with the creation of code that is reusable. Encapsulation is another term for object-oriented design.

Question 9. 9. (TCO 2) Given a private attribute called age, which of the following are proper implementations for a getter and a setter? (Points : 2)
public: void getAge(){return age;}, public: void setAge(int newAge){age = newAge;} public: int getAge(){return age;}, public: int setAge(int newAge){return newAge;} public: int getAge(){age = newAge;}, public: void setAge(int newAge){return age;} public: int getAge(){return age;}, public: void setName(int newAge){age = newAge;}

Question 10. 10. (TCO 2) Identify the attribute declaration(s) below that most likely adhere(s) to the concept of information/data hiding. (Points : 2)
private: string name; private: name; string private name; string name; None of the above

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions