Filters
Question type

Study Flashcards

What happens when you make a new class a subclass of another class?


A) The new class inherits the attributes and behaviors defined in the parent class.
B) The new class becomes subjugated to the parent class, preventing the override of class values.
C) The new class becomes a copy of the ancestor class, and functions under the ancestor class's namespace.
D) The ancestor class and the new class both become global in scope.

E) B) and C)
F) All of the above

Correct Answer

verifed

verified

In the RGB system, what hexadecimal value represents the color black?


A) #000000
B) #ffffff
C) #ff00ff
D) #00ffff

E) A) and C)
F) None of the above

Correct Answer

verifed

verified

What is the name of the standard GUI module for Python?


A) tkinter
B) PyQt5
C) breezypythongui
D) Kivy

E) All of the above
F) A) and C)

Correct Answer

verifed

verified

GUI-based programs use windows that contain various components, also called window objects or gadgets.

A) True
B) False

Correct Answer

verifed

verified

An entry field is a box in which the user can position the mouse cursor and enter a number or a single line of text.

A) True
B) False

Correct Answer

verifed

verified

Programming that is tied to user-generated actions, such as mouse clicks, is known as what type of programming?


A) user-driven programming
B) event-driven programming
C) access-driven programming
D) object-oriented programming

E) A) and D)
F) B) and D)

Correct Answer

verifed

verified

What kind of statement can be used to attempt a graceful recovery from an exception?


A) attempt-fail statement
B) if-else statement
C) try-except statement
D) test-succeed statement

E) A) and B)
F) All of the above

Correct Answer

verifed

verified

Command buttons are created and placed in a window in the same manner as labels.

A) True
B) False

Correct Answer

verifed

verified

What are the two functions available in the tkinter.filedialog module used to support file access in a GUI program?


A) askopenfileaccess
B) askfilesystemaccess
C) asksaveasfilename
D) askopenfilename

E) A) and B)
F) B) and C)

Correct Answer

verifed

verified

What two keyword arguments can be used to force a horizontal and/or vertical spanning of grid positions? (Choose two.)


A) gridspan
B) rowspan
C) columnspan
D) gridlock

E) A) and C)
F) A) and B)

Correct Answer

verifed

verified

What scenario would be ideal for the use of a prompter box?


A) You require a GUI element that restricts a user to a single choice of items out of a group of items.
B) You require a GUI element to display an error message upon incorrect input.
C) You require a GUI element to prompt for a user's text input.
D) You require a GUI element to allow a large amount of text to be entered by the user.

E) A) and D)
F) B) and D)

Correct Answer

verifed

verified

In GUI terminology, what is the name used to describe a rectangular window component with its own grid that is useful for organizing other window components?


A) layout
B) superframe
C) panel
D) combo frame

E) C) and D)
F) B) and C)

Correct Answer

verifed

verified

The creation of a customized version of an existing class is called subclassing.

A) True
B) False

Correct Answer

verifed

verified

In the breezypythongui module, what class provides the basic functionality for any window, such as the command buttons in the title bar?


A) WindowFrame
B) ProgFrame
C) BreezyFrame
D) EasyFrame

E) B) and C)
F) A) and C)

Correct Answer

verifed

verified

The attributes of each window component are actually stored in a list.

A) True
B) False

Correct Answer

verifed

verified

What class in the breezypythongui module provides a scrollable box for the display and selection of items?


A) EasyTextField
B) TextArea
C) EasyListbox
D) EasyIntegerField

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

The font attribute in tkinger.Label is an object imported from tkinter.font.

A) True
B) False

Correct Answer

verifed

verified

How can you associate a keyboard event and an event-handling method with a widget?


A) You must name the event-handling method "onPress_".
B) You must use the bind method, which expects a string containing a key event.
C) You must map a shortcut in the host operating system to run the script with a specific argument.
D) You must define the key's event in a YAML-based configuration file.

E) B) and C)
F) None of the above

Correct Answer

verifed

verified

The breezypythongui module's IntegerField component is a subclass of the Entry class.

A) True
B) False

Correct Answer

verifed

verified

What is the "self" parameter utilized for in a class definition block?


A) It is used within the class and method definitions to call other methods on the same object, or to access that object's variables or data.
B) It is used to define the scope of the class in relevance to the rest of the program.
C) It is used to tell the Python virtual machine that the class is locally significant in the particular module or script it is defined.
D) It is used as a shortcut rather than typing out the module name, parent classes, and subclass to which the class belongs.

E) C) and D)
F) B) and C)

Correct Answer

verifed

verified

Showing 21 - 40 of 50

Related Exams

Show Answer