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

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

ID: 3559490 • Letter: Q

Question

Question 3.3. (TCO 1) Which of the following statements is/are true? (Points : 2)        A. The implementation details of a class can change, so they need to be visible.
       B. An object is necessary to be defined before you can create a class.
       C. The state of an object is defined as the attributes and behaviors of that object.
       D. An interface of a class defines what messages an object can respond to.
       All are true
       None are true
       Only A, C, and D 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) _____ is the process of identifying important attributes and behaviors of an object. (Points : 2)        Class
       Abstraction
       Coding
       All of the above
       None of the above
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 printTime();
private:
int hr;
int min;
int sec;
}
(Points : 2)        2
       3
       9
       6
       An average of 5 because (7 + 3) / 2 = 5 Question 8.8. (TCO 1) Assume we have two objects of a class. How many copies of the class's attributes and methods exist in the instantiated objects? (Points : 2)        Only one copy, both objects always share it
       Zero, the objects do not have attributes and methods
       Two copies, each object has its own copy
       Three copies Question 3.3. (TCO 1) Which of the following statements is/are true? (Points : 2)        A. The implementation details of a class can change, so they need to be visible.
       B. An object is necessary to be defined before you can create a class.
       C. The state of an object is defined as the attributes and behaviors of that object.
       D. An interface of a class defines what messages an object can respond to.
       All are true
       None are true
       Only A, C, and D are true

Explanation / Answer

3) C. The state of an object is defined as the attributes and behaviors of that object.
4) dimensions
6) All of the above
7) 3
8) Zero, the objects do not have attributes and methods

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