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

1. (TCO 1) Which of the following would be a more appropriate choice for a metho

ID: 3560994 • Letter: 1

Question

1. (TCO 1) Which of the following would be a more appropriate choice for a method in a Fork class? (Points : 5)        Color()
       Bend()
       Eat()
       Material() Question 2.2. (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 3.3. (TCO 2) Which of the following components of a class definition do not have an access modifier? (Points : 5)        State variables
       Data members
       Member methods
       Destructor
       None of the above Question 4.4. (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. The state of an object must be hidden and therefore protected by unauthorized use.
       All of the above
       Only A and C Question 5.5. (TCO 5) Which of the following method pairs are examples of method overloading? (Points : 5)        public void Bake() ; public int Bake(int x)
       public int Mix(int x, int y, int z) ; public int Mix(int y, int x, int z)
       public int Shake(int x, int y) ; public int Shake(int x, int y, int z)
       All of the above
       Only A and C 1. (TCO 1) Which of the following would be a more appropriate choice for a method in a Fork class? (Points : 5)        Color()
       Bend()
       Eat()
       Material()

Explanation / Answer

1 Bend()

2 Only A, B, and D

3  Member methods

4  All of the above

5 public int Shake(int x, int y) ; public int Shake(int x, int y, int z)