Question: PYTHON Homework 4 Could you please help me answer these questions? 11.) A class that represents a more specific entity in an inheritance hierarchy is

PYTHON Homework 4 Could you please help me answer these questions?

11.) A class that represents a more specific entity in an inheritance hierarchy is called a/an _____.

a.) Default class b.) Superclass c.) Subclass d.) Inheritance class

12.) Which of the following statements about inheritance is correct?

a.) You can always use a superclass object in place of a subclass object. b.) You can always use a subclass object in place of a superclass object. c.) A superclass inherits data and behavior from a subclass. d.) A superclass inherits only behavior from a subclass.

13.) What does the subclass inherit from a superclass?

a.) Data and behavior b.) Only behaviors c.) Only data d.) Nothing

14.) You are creating a Motorcycle class that will be a subclass of a Vehicle class. Assuming we add colons to these stateemtns, which statement accomplishes this goal?

a.) class Motorcycle(Vehicle) b.) subclass Motorcycle(Vehicle) c.) class Vehicle(Motorcycle) d.) subclass Vehicle(Motorcycle)

15.) The ____ class includes a wide array of methods for managing items in a list box.

a.) Tkinter.ListBo b.) Tkinter.Listbox < -- pick this answer. c.) Tkinter.TextBox d.) Tkinter.Textbo

16.) In this code segment transferName is _____.

btn1 = Button(root, text="Move Name", command=transferName)

btn1.grid(row=1, column=0, padx=3, pady=9)

a.) The containing element for the widget b.) the name of the event-handling function called when the element is clicked c.) the name of the variable that represent any data entered in the widget d.) is the name of the layout manager used by the widget

17.) What type of method is used to extend or replace the functionality of the superclass method?

a.) Concrete method b.) Abstract method c.) Overriding method d.) Constructor method

18.) You can associate a mouse event and an event-handling method with a widget by calling the ____ method.

a.) assign b.) associate c.) bind d.) link

19.) What must be included in the subclass constructor as the first statement?

a.) Initialization of all instance variables b.) A call to the superclass constructor c.) A call to the accessor and mutator methods d.) A call to the subclass constructor

20.) To activate a button and enable it to respond to mouse clicks, you must set its command attribute to a(n) ____ method.

a.) label b.) widget c.) trigger d.) event-handling

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!