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 statements is/are true? (Points : 5) A. The im

ID: 3529241 • Letter: 1

Question

1. (TCO 1) Which of the following statements is/are true? (Points : 5) A. The implementation of a class should be hidden, as best practice. B. The state of an object is defined as the attributes and behaviors of that object. C. Striving for the fullest possible interface of a class, incorporating possible future class needs, is the goal when designing a class. D. An interface of a class defines what messages an object can respond to. All are true None are true Only A and D are true 2. (TCO 2) Which of the following components of a class definition do not have a return type? (Points : 5) Public member methods Accessor/mutator methods Constructors Private member methods None of the above 3. (TCO 5) Which of the following method pairs are not examples of method overloading? (Points : 5) A. public int Jump(int x) ; public int Jump(int y) B. public int Walk(int x, int y) ; public void Walk(int x, int y, int z) C. public void Dance() ; public int Dance(int x) All of the above Only B and C 4. (TCO 1) Which of the following statements is/are true? (Points : 5) In object-oriented programming we design the program as a set of cooperating methods. The procedural paradigm permits the modeling of a software system in a more natural way compared to the object-oriented paradigm. Abstraction is the process of extracting the high level information about a category entity or activity, while ignoring the

Explanation / Answer

1.All are true 2.Constructors 3.A is not an example of method overloading 4.None of the above 5.Size() 6.A and C are true 7.All of the above 8.The driver has a civic and civic is a car 9.B 10.creating UML 12.Overriding 14.string GetHomeState(){return homeState } void SetHomeState (string newHomeState){ homeState = newHomeState} 15.None of the Above