INSY Final Review

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

A subclass may not override any method other that the __init__ method T/F

F

All instances of a class share the same values of the data attributes in the class T/F

F

An "is a " relationship exists between a grasshopper and a bumblebee T/F

F

Checkbutton widgets are displayed in groups and used to make mutually exclusive selections

F

Radio buttons can be used to allow the user to make multiple selections at one time T/F

F

The entry widget's get method retries either numeric or string data T/F

F

The point (0,0) represents the same place in a window with the canvas widget as with turtle graphics T/F

F

To use an Entry widget to get data entered by a user, you must use the Entry widget's set method T/F

F

______ programming is a method of writing software that centers on the actions that take place in a program

Procedural

A class can be thought of as a blueprint that can be used to create an object T/F

T

A root widget's destroy method can be used as a callback function for a quit button T/F

T

Each subclass has a method name __init__ that overrides the superclass's __init__ method T/F

T

Each time a function is called in a recursive solution, the system incurs overhead that is not incurred with a loop. T/F

T

Object-oriented programming allows us to hide the object's data attributes from code that is outside the object T/F

T

Python does not have GUI programming features build into the language itself T/F

T

The pack method determines where a widget should be positioned T/F

T

The self parameter is required in every method of class T/F

T

The self parameter need not be names self but is strongly recommended to do so, to conform with standard practice T/F

T

To use showinfo function, tkinter.messagebox module must be imported T/F

T

When in a recursive solution, function A calls function B which, in turns, calls function A, this is known as indirect recursion. T/F

T

_____ provides a set of standard diagrams for graphically depicting object-oriented systems

UML

A(n) _____ function is a function or method that executes when the user clicks a button

callback, event handler

The ________ widget provides methods that allow the programmer to draw more simple shapes

canvas

A(n) _______ is code that specifies the data attributes and methods for a particular type of object

class

To create a line with the create_line method of the canvas widget, you must include four arguments that represent beginning and ending

coordinates

A class _______ is a set of statements that defines a class's methods and data attributes

definition

a subclass is also called a(n) _____ class

derived

A recursion in which a function directly calls itself is known as ______ recursion

direct

Some problems are more ____ solved with recursion than with a loop

easily

A function is called from the main function and then it calls itself five times. The depth of recursion is _____

five

A(n) ______ is a container that can hold other widget and organize the widgets in a window

frame

In a UML diagram, a line with an open arrowhead from a subclass to a super class indicates ______

inheritance

A(n) ____ method in a class initializes an object's data attributes

initializer __init__(self)

Each object that is created from a class is called a(n) _____ of the class

instance

The ______ function determines whether or not an object is an instance of a specific class or an instance of a subclass of that class

isinstance

Recursive functions are ______ efficient than loops

less

A solution using a(n) ________ is usually more evident than a recursive solution

loop

The majority of repetitive programming tasks are best done with _______

loops

In _______ programming, the programming is centered on objects that are created from abstract data types that encapsulate data and functions together

object-oriented

Each time a function is called, the system incurs _______ that is not necessary with a loop

overhead

When a subclass method has the same name as a superclass method, the subclass method _____ the superclass method

overrides

The Label widget's ______ method determines where a widget should be positioned and makes the widget visible when the main window is displayed

pack

The term _____ refers to an object's ability to take different forms

polymorphism

____ allows subclasses to have methods with the same names as methods in their superclasses

polymorphism

The base case does not require _______, so it stops the chain of recursive calls.

recursion

All the cases of recursive solution other than the base case are called the _______ case.

recursive

The instance attributes are created by the _____ parameter and they belong to a specific instance of the class

self

usually a problem solved by recursion is reduced by making the value of one or more parameters _______ with each recursive call

smaller

An object(s) ____ contains the values of the object's attributes at a given moment

state

In an inheritance relationship, the extended class is called the ____

subclass

In an inheritance relationship, a minivan can be thought of as a(n) _____ of the vehicle class

subclass, derived class

A method that returns a value from a class's attribute but does not change it is known as a(n) ________ method

accessor

A superclasss is also called a(n) ______ class

base


Set pelajaran terkait

Chapter 25: Nursing Care of the Child With an Alteration in Immunity/Immunologic Disorder

View Set

STS General Concepts and STS Historical Development

View Set

CITI - Consent with Subjects Who Do Not Speak English

View Set

Ch. 17 - Real Estate Syndicates and Real Estate Investment Trusts

View Set

Larose Study guide and overall important points

View Set

A2 Chapter 5 Steam Traps, Water Hammer, Insulation

View Set