question archive I need some assistance with this practice quiz
Subject:Computer SciencePrice: Bought3
I need some assistance with this practice quiz.
A subclass can have a method with the same name as a method in the superclass.
Question 1 options:
True | |
False |
Question 2 (2 points)
Listen
It is not possible to indicate inheritance in a UML diagram.
Question 2 options:
True | |
False |
Question 3 (2 points)
Listen
The data that you retrieve from an Entry widget is always of the int data type.
Question 3 options:
True | |
False |
Question 4 (2 points)
Listen
A root widget's destroy method can be used as a callback function for a quit button.
Question 4 options:
True | |
False |
Question 5 (2 points)
Listen
In an inheritance relationship, the __________ is the specialized class.
Question 5 options:
superclass | |
master class | |
subclass | |
parent class |
Question 6 (2 points)
Listen
Suppose a program uses two classes: Airplane and JumboJet. Which of these would most likely be the subclass?
Question 6 options:
Airplane | |
JumboJet | |
Both | |
Neither |
Question 7 (2 points)
Listen
This characteristic of object-oriented programming allows the correct version of an overridden method to be called when an instance of a subclass is used to call it.
Question 7 options:
polymorphism | |
inheritance | |
generalization | |
specialization |
Question 8 (2 points)
Listen
From the following line of code, determine what is the name of the base class. class male(human):
Question 8 options:
male | |
human | |
either | |
the code is incorrect |
Question 9 (2 points)
Listen
Which method can you use to determine whether an object is an instance of a class?
Question 9 options:
isinstance | |
isclass | |
isobject | |
isinheritance |
Question 10 (2 points)
Listen
What is the relationship called in which one object is a specialized version of another object?
Question 10 options:
parent-child | |
node | |
is a | |
class |
Question 11 (2 points)
Listen
You can use this module in Python to create GUI programs.
Question 11 options:
GUI | |
PythonGUI | |
Tkinter | |
Tgui |
Question 12 (2 points)
Listen
This widget is an area that displays one line of text.
Question 12 options:
Label | |
Entry | |
TextLine | |
Canvas |
Question 13 (2 points)
Listen
This widget is a container that can hold other widgets.
Question 13 options:
Grouper | |
Composer | |
Fence | |
Frame |
Question 14 (2 points)
Listen
What type of programs are event-driven?
Question 14 options:
GUI programs | |
command line programs | |
procedural programs | |
modular programs |
Question 15 (2 points)
Listen
Which widget will createa rectangular area that can be used to display graphics?
Question 15 options:
Label | |
Frame | |
Canvas | |
Message |
Question 16 (2 points)
Listen
In a GUI environment, most interactions are done through small windows known as ___________ that display information and allow the user to perform actions.
Question 16 options:
input boxes | |
windows | |
dialog boxes | |
message boxes |
Question 17 (2 points)
Listen
Question 17 options:
When a subclass method has the same name as a superclass method, it is often said that the subclass method ________ the superclass method.
Question 18 (2 points)
Listen
Question 18 options:
In an inheritance relationship, a television is a ___________ of the electronics class.
Question 19 (2 points)
Listen
Question 19 options:
The Label widget's _________ method determines where a widget should be positioned and makes the widget visible when the main window is displayed.
Question 20 (2 points)
Listen
Question 20 options:
A _________ is a widget that the user can click to cause an action to occur.
Question 21 (2 points)
Listen
What does a subclass inherit from its superclass?
Question 21 options:
Question 22 (2 points)
Listen
What is an overridden method?
Question 22 options:
Question 23 (2 points)
Listen
What does the tkinter module's mainloop function do?
Question 23 options:
Question 24 (2 points)
Listen
How can you use a StringVar object to update the contents of a Label widget?
Question 24 options:
Question 25 (2 points)
Listen
How can you use an IntVar object to determine which Radiobutton has been selected in a group of Radiobuttons?
Question 25 options:
Submit Quiz