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

Question 1. 1. (TCO 1) Object-oriented programming generally focuses on _____. (

ID: 3558746 • Letter: Q

Question

Question 1.1. (TCO 1) Object-oriented programming generally focuses on _____. (Points : 5)        A. separating the interface from the implementation
       B. client side access to implementation details
       C. creating as many classes as possible
       D. code reuse with methods
       All of the above
       None of the above
       Only A, B, and D Question 2.2. (TCO 2) Which of the following components of a class definition can be overloaded? (Points : 5)        Public data members
       Destructors
       Static data members
       All of the above
       None of the above Question 3.3. (TCO 5) Which of the following method pairs are not examples of method overloading? (Points : 5)        public int Jump(int x) ; public int Jump(int y)
       public int Walk(int x, int y) ; public void Walk(int x, int y, int z)
       public void Dance() ; public int Dance(int x)
       All of the above
       Only B and C Question 4.4. (TCO 1) Which of the following statements is/are true? (Points : 5)        You can create sub-classes and sub-objects.
       By using the keyword class in your program, memory is allocated for the object being defined.
       In object-oriented programming we design the program as a set of cooperating methods.
       None of the above Question 5.5. (TCO 1) Which of the following would be the most appropriate choice for a method in a Cube class?
(Points : 5)        Volume()
       Area()
       Radius()
       CalculateVolume() Question 6.6. (TCO 2) Which of the following statements is/are true? (Points : 5)        A. A private (helper) method can only be used inside the class. It cannot be called through an object of the class.
       B. The programmer can control the scope of a data member of a class using access specifiers.
       C. Perhaps the most important consideration when designing a class is identifying the audience, or users, of the class.
       All of the above
       Only A and C Question 1.1. (TCO 1) Object-oriented programming generally focuses on _____. (Points : 5)        A. separating the interface from the implementation
       B. client side access to implementation details
       C. creating as many classes as possible
       D. code reuse with methods
       All of the above
       None of the above
       Only A, B, and D

Explanation / Answer

Question 1.1.

Object-oriented programming generally focuses on

Answer: Only A, B, and D

Question 2.2.

Public data members are the components of a class definition that can be overloaded.

Answer: Public data members

Question 3.3.

Method overloading is a feature in Object-oriented programming that allows a class to have two or more methods with the same name. They only differ in the data type of arguments passed or the number of arguments passed.

public int Walk(int x, int y) ; public void Walk(int x, int y, int z) In this option, the number of arguments passed are different.

public void Dance() ; public int Dance(int x): In this option, the number of arguments passed are different.

Answer: Only B and C

Question 4.4.

It is possible to create sub-classes and sub-objects in Object-oriented programming.

In object-oriented programming, we design the program as a set of cooperating methods.

Answer: Only A and C

Question 5.5.

The most appropriate choice for a method in a Cube class will be to calculate volume.

Answer: CalculateVolume() or Volume()

Question 6.6.

A method that is declared as private in a class cannot be called through an object of that class.

Access specifiers can be used by the programmer to control the scope of a data member of a class.

When designing a class, it is important to know the purpose of the class and who will use the class.

Answer: All of the above

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