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

6. (TCO 1) Which of the following statements is/are false? (Points : 5) Member m

ID: 3560997 • Letter: 6

Question

6. (TCO 1) Which of the following statements is/are false? (Points : 5)        Member methods are the means by which you implement the behavior of a class.
       By using the keyword class in your program, memory is allocated for the object being defined.
       Objects are created during program execution and eventually destroyed.
       None of the above Question 7.7. (TCO 2) You have been tasked to create an Automobile class and your boss wants you to consider the concept of encapsulation as you design your class. Which of the following actions will you take? (Points : 5)        Declare as many class attributes public as you can, creating accessor/mutators for each one.
       Package attributes and behaviors specific to an Automobile together.
       Make sure to include a specific implementation for a drive method that all subclasses can inherit.
       Declare the class as private.
       All of the above Question 8.8. (TCO 2) You need to utilize an Item class in your own object-oriented class using composition. Luckily, one of your fellow students just finished writing their own version of an Item class. If the Item class was properly designed as a(n) _____, you do not need to know the specific details of how the class was implemented. Instead, you only need to become familiar with its _____. (Points : 5)        abstract class; abstract methods
       object-oriented instance; method implementations
       black box system; interface
       interface; inheritance hierarchy Question 9.9. (TCO 2) A class is designed with two public attributes: attributeOne and attributeTwo. attributeOne is an integer data type while attributeTwo is a string data type. Which pseudocode representation(s) of setters would be appropriate for this class? (Points : 5)        int setAttributeOne(int newAttributeOne)
      {
return attributeOne
      }
       void setAttributeOne(int newAttributeOne)
      {
attributeOne = newAttributeOne
      }
       string setAttributeTwo (int newAttributeTwo)
      {
attributeTwo = newAttributeTwo
}
       void setAttributeTwo ()
      {
attributeTwo = " "
}
       Both A and C
       None of the above Question 10.10. (TCO 7) Which of the following statements is false? (Points : 5)        A pure virtual function is a function without function implementation and can be found in an abstract class.
       If a derived class extends an abstract base class, the derived class must implement the pure virtual functions declared in the abstract base class.
       Any method in an abstract class is considered a pure virtual function.
       Pure virtual functions are inherited. 6. (TCO 1) Which of the following statements is/are false? (Points : 5)        Member methods are the means by which you implement the behavior of a class.
       By using the keyword class in your program, memory is allocated for the object being defined.
       Objects are created during program execution and eventually destroyed.
       None of the above

Explanation / Answer

6  Objects are created during program execution and eventually destroyed.

7  All of the above

8  object-oriented instance; method implementations

9  Both A and C

10  Any method in an abstract class is considered a pure virtual function.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote