Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PYTHON 24 . Which of the following is NOT true about a subclass that overrides a superclass method? The subclass extends the functionality of the

PYTHON

24. Which of the following is NOT true about a subclass that overrides a superclass method?

The subclass extends the functionality of the superclass version

"The subclass method carries out the action of the superclass method, and it also does some additional work"

The subclass method can have additional arguments than the superclass method

A subclass method can replace the funcationality of a superclass method

25. In GUI-based programs, ____ are boxes within which the program can output text or receive it as input from the user.

Labels

Title bars

Command buttons

Entry fields

26. Which method is being overridden in the following code segment?

class Car(mover) : def __init__(self, make, model, color) : . . . def getMake(self) : . . . def getModel(self) : . . . def getColor(self) : . . .

class Apple(fruit) : def __init__(self, color) : . . . def getColor(self) :

getMake

getModel

getColor

No method is being overriden in this code segment

27.Consider the following class definitions. Which of the following statements is most correct?

class Fruit : . . . def getColor(self) : . . . class Apple(Fruit) :

Apple cannot have a method named getColor

Apple inherits the getColor method from Fruit

Apple must override the getColor method from Fruit

Apple must call the getColor method from Fruit

28. "In this code segment, how do you distinguish the button that is checked?.

self.fruit = StringVar() Radiobutton(self, text = Pear, variable = self.fruit, value = 'pear', command= self.dx) Radiobutton(self, text = Orange, variable = self.fruit, value = 'orange', command = self.dx)

29. In GUI-based programs, mouse-clicks are user-generated ____.

triggers

events

labels

commands

30. Consider the following code segment. Which statement is most correct?

class Fruit : . . . def getName(self) : . . . class Apple(Fruit) : . . . def getName(self) : . . .

The Apple class clones the Fruit class

The Apple class method overrides the getName method

The Fruit class overrides the Apple class

The Fruit class overrides the getName method

31. With tkinter checkboxes, to set up a group you would do which of the following. choose 3 answers.

give each button in the group the same command property that points to the same callback function name.

give each check button a text property

give each box a unique boolean variable name

give each box the same boolean variable name

32. True or False: To determine which checkbox was checked, in the callback function your code would determine if one or more check buttons were checked or not by examining the value of each Boolean variable in the checkbox group

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Murach's SQL Server 2012 For Developers

Authors: Bryan Syverson, Joel Murach, Mike Murach

1st Edition

1890774693, 9781890774691

Students also viewed these Databases questions

Question

What is the environment we are trying to create?

Answered: 1 week ago

Question

How would we like to see ourselves?

Answered: 1 week ago