Based on the above code, what will be printed? Mooo AttributeError Yum None of these
The exclaim method prints out “I’m a car!” even though we di…
The exclaim method prints out “I’m a car!” even though we didn’t create it in our Prius definition. Why would it be able to do this? It inherits the method from the car class Car is a subclass which means it can also use that method The method exclaim is a base Python method which it my_car has by default None of these
We use the __init__() method if we want to assign object at…
We use the __init__() method if we want to assign object attributes at creation time assign object methods at creation time define methods for subclasses create an instance of that type
We define a subclass by using the same class keyword but wit…
We define a subclass by using the same class keyword but with the child class name inside parentheses True False
Generally speaking, attributes are directly available in Pyt…
Generally speaking, attributes are directly available in Python True False
We can override any methods, including __init__() True False
We can override any methods, including __init__() True False
Which of these are ways you could refer to original and new…
Which of these are ways you could refer to original and new class pairings? parent/child superclass/subclass base class/derived class first class/second class
We access both object and class attributes using dot notatio…
We access both object and class attributes using dot notation True False
Scatterplots are useful to visualize relationships you might…
Scatterplots are useful to visualize relationships you might investigate in linear regression True False
Class and object are essentially the same concept True False
Class and object are essentially the same concept True False