Question: Multiple Choice Questions (Python Data Structures) 2. The method that is responsible for setting the initial state of an objects instance variables is the a.
Multiple Choice Questions (Python Data Structures)
2. The method that is responsible for setting the initial state of an objects instance
variables is the
a. __init__ method
b. __str__ method
3. The method that allows a programmer to visit each item in a collection is the
a. __init__ method
b. __iter__ method
4. Methods that change the internal state of an object are its
a. Accessor methods
b. Mutator methods
5. The set of methods available to the user of a class is called its
a. Implementation
b. Interface
6. Polymorphism is a term that refers to the use of
a. The same method names in multiple classes
b. One class to represent the data contained in another class
7. Composition is a term that refers to a
a. Part-whole relationship among two classes
b. Many-to-one relationship among two classes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
