Menu
support@authoritypapers.com
+1(805) 568 7317

1 tco 1 the components of a class are called the of that class points 2 elements mem 5187167

1. (TCO 1) The components of a class are called the _____ of that class. (Points : 2)

       elements
       members
       objects
       properties

Question 2.2. (TCO 1) Which of the following would be a more appropriate choice for a method in a Fork class?(Points : 2)

       Color()
       Bend()
       Eat()
       Material()

Question 3.3. (TCO 1) Which of the following statements is/are true? (Points : 2)

       A. A class is necessary to be defined before you can create an object.
       B. The specific values of the attributes of an object represent the state of the object.
       C. An interface of a class defines what messages an object can respond to.
       D. Objects communicate through message passing.
       All are true
       Only A, B, and D are true
       None are true

Question 4.4. (TCO 1) Which of the following would be a more appropriate choice for a data member in a Screen class? (Points : 2)

       dimensions
       turnOff
       refresh
       activateScreenSaver

Question 5.5. (TCO 1) The following is/are object-oriented programming feature(s): (Points : 2)

       Ease of Use
       Implementation
       Abstraction
       All of the above
       None of the above

Question 6.6. (TCO 8) Most professional coding standards use _____ for class and method names. (Points : 2)

       Camel case
       Abstraction case
       no specific naming convention
       Pascal case

Question 7.7. (TCO 1) Examine the ClockType class definition. How many class members does it contain?

class ClockType

{
public:
void setTime(int, int, int);
int getTime();
void icrementSeconds();
void incrementMinutes();
void incrementHours();
bool equalTime(clockType);
private:
int hr;
int min;
int sec;
}
(Points : 2)

       7
       9
       3
       6
       An average of 5 because (7 + 3) / 2 = 5

Question 8.8. (TCO 1) Assume we have two classes and have instantiated an object from each class. How many copies of each class's attributes and methods exist in the instantiated objects? (Points : 2)

       Two copies, one copy of the first class and one of the second
       Zero, the objects do not have attributes and methods
       Only one copy and both objects always share it
       Six copies

Question 9.9. (TCO 1) Code reuse and the building of more complex systems are facilitated both through _____ and _____. (Points : 2)

       data hiding; implementation
       composition; inheritance
       inheritance; messaging
       None of the above

Question 10.10. (TCO 1) By default, all members of a class are _____. (Points : 2)

       public
       private
       protected
       internal
       unfriendly

"Order a similar paper and get 15% discount on your first order with us
Use the following coupon
"GET15"

Order Now