Question: 5. A ____ exception is raised when Python attempts to convert a string with a bad format to a number. ConversionError ValueError ParsingError FormatError 6.

5. A ____ exception is raised when Python attempts to convert a string with a bad format to a number.

ConversionError

ValueError

ParsingError

FormatError

6. A(n) ____ layout allows the GUI programmer to place components in the cells of an invisible grid in the window.

cell

grid

MVC

model/view

7. What is the purpose of using an inheritance hierarchy?

To share common code among the classes

To create objects from concrete classes

To create objects from abstract classes

To create objects using constructors

8.Given the following code, identify the subclass and superclass:

class ChoiceQuestion(Question) : def __init__(self) pass

"the subclass is Question, the superclass is ChoiceQuestion"

"the subclass is ChoiceQuestion, the superclass is Question"

"the subclass is init, the superclass is self"

"the subclass is ChoiceQuestion, the superclass is ChoiceQuestion"

True or False: With tkinter radiobuttons, each button should have the same variable name in order to have the radio buttons be part of a group, but you should assign each button a different value property in order to distinguish which button is checked.

10. "Consider this checkbox code. When checked ____

self._cb1 = BooleanVar() Checkbutton(self, text=tea, variable = _cb1, command = foop) self._cb2 = BooleanVar() Checkbutton(self, text=coffee, variable = _cb2, command = foop)

which button is checked is determined using the variable value _cb1 or cb2.

which button is checked is determined by the text property which is used to distinguish one button from another.

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!