Filters
Question type

Study Flashcards

By default, a newly opened window shrink-wraps around its components and is resizable.

A) True
B) False

Correct Answer

verifed

verified

The values that can be used within the sticky attribute are "T, D, L, R".

A) True
B) False

Correct Answer

verifed

verified

One of the requirements for a breezypythongui-based Python script you're writing is that you be able to use a slider bar for selecting a value from a range of values. What type of window component do you want?


A) EasySlider
B) Scale
C) SlideRule
D) EasyRange

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

Correct Answer

verifed

verified

A GUI-based program displays a window that contains various components, also known by what specific term?


A) widgets
B) gadgets
C) sprockets
D) doodads

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

Correct Answer

verifed

verified

A method header looks very different from a function header.

A) True
B) False

Correct Answer

verifed

verified

When passing color values to the tkinter module in hexadecimal, what hex string represents the color red?


A) #ff0000
B) #00ff00
C) #0000ff
D) #ff00ff

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

Correct Answer

verifed

verified

What is NOT one of the more important attributes of a window?


A) The title string.
B) The width and height in pixels.
C) The resizability of the window.
D) The terminal prompt.

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

Correct Answer

verifed

verified

What attribute can be used to override the default alignment of a window component?


A) align
B) sticky
C) target
D) orientation

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

Correct Answer

verifed

verified

B

As a rule of thumb, when you are defining a new class of objects, you should look around for a class that already supports some of the structure and behavior of such objects, and then subclass that class to provide the service you need.

A) True
B) False

Correct Answer

verifed

verified

GUI-based programs can be configured to respond to various keyboard events and mouse events.

A) True
B) False

Correct Answer

verifed

verified

What two items are included in the class header of a class defined in Python? (Choose two.)


A) The class name, conventionally capitalized.
B) The class arguments.
C) The list of one or more parent classes.
D) The required parameters.

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

Correct Answer

verifed

verified

In a GUI-based program, the user can usually alter the size of a window by holding the mouse on its lower-left corner and dragging in any direction.

A) True
B) False

Correct Answer

verifed

verified

The addButton method returns an object of type tkinter.Button.

A) True
B) False

Correct Answer

verifed

verified

Command buttons can display text but not images.

A) True
B) False

Correct Answer

verifed

verified

The Tkinter module supports the CMYK color system, but not the RGB color system.

A) True
B) False

Correct Answer

verifed

verified

In a GUI-based program, what are labels supposed to do?


A) They define the title name of the program that is running.
B) They are boxes within which a program can accept input.
C) They are text elements that describe inputs and outputs.
D) They interactive elements in the program that can be used for selections.

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

Correct Answer

verifed

verified

C

GUI-based programs utilize file dialogs in order to allow the user to browse a computer's file system.

A) True
B) False

Correct Answer

verifed

verified

Other than specifying key values when performing the method call to EasyFrame, what can you use to change a window's attributes?


A) You can overload the class and create an identical class.
B) You can utilize the attribute dictionary.
C) You can pass a tuple to the class constructor.
D) You can use the setDefaults() method.

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

Correct Answer

verifed

verified

B

What scenario would be ideal for the use of a check button?


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 that can be grouped with other elements that can be selected at the same time.

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

Correct Answer

verifed

verified

By default, a window has an empty title string and is resizable.

A) True
B) False

Correct Answer

verifed

verified

Showing 1 - 20 of 50

Related Exams

Show Answer