Deck 14: GUI Programming

Full screen (f)
exit full mode
Question
Programs that use tkinter do not always run reliably under IDLE.
Use Space or
up arrow
down arrow
to flip the card.
Question
The Toplevel widget is a container, like a(n) _____, but displays in its own window.

A) Label
B) frame
C) Canvas
D) Message
Question
Check buttons are displayed in groups and used to make mutually exclusive selections.
Question
In which environment can a user determine the order in which things happen?

A) Command line
B) GUI
C) ALU
D) CPU
Question
Python does not have GUI programming features built into the language itself.
Question
What are the items that appear on the graphical interface window called?

A) Buttons
B) Icons
C) Widgets
D) Graphical elements
Question
The acronym GUI stands for:

A) Graphical User Interface
B) Graphical Unit Interface
C) Graphical User Interaction
D) Graphical Users' Interface
Question
With what part of the computer does the user interact?

A) Graphical unit
B) User interface
C) Register
D) CPU
Question
In which type of interface is a prompt displayed that allows the user to enter a command, which is then executed?

A) Command line
B) GUI
C) ALU
D) CPU
Question
A root widget's destroy method can be used as a callback function for a quit button.
Question
Which widget will create a rectangular area that can be used to display graphics?

A) Label
B) frame
C) Canvas
D) Message
Question
Which widget will display multiple lines of text?

A) Label
B) Canvas
C) Message
D) Text
Question
In Python, what module is used to create a GUI program?

A) tkinter
B) Pgui
C) gint
D) pygui
Question
The _____ accepts the user's commands.

A) register
B) CPU
C) operating system
D) ALU
Question
Using the radio buttons, the user can make multiple selections at one time.
Question
Which widget will create an area that displays one line of text or an image?

A) Label
B) frame
C) Canvas
D) Message
Question
What types of programs are event-driven?

A) GUI programs
B) Command line programs
C) Procedural programs
D) Modular programs
Question
How many graphical widgets does the tkinter module provide?

A) five
B) Ten
C) fifteen
D) Twenty
Question
Which widget allows the user to select a value by moving a slider along a track?

A) Entry
B) Scale
C) Scrollbar
D) Slider
Question
In a GUI environment, most interactions are done through small windows known as _____ that display information and allow the user to perform actions.

A) input boxes
B) windows
C) dialog boxes
D) message boxes
Question
To use the showinfo function, the tkinter.messagebox module needs to be imported.
Question
The GUI popularized the use of the _______________ as an input device.
Question
Many computer users find a command line interface relatively easy to use.
Question
A(n) _______________ is a container that can hold other widgets and organize the widgets in a window.
Question
A(n) _______________ is a widget that the user can click to cause an action to occur.
Question
_______________ are small windows that display information and allow the user to perform actions.
Question
A(n) _______________ function is a function or method that executes when the user clicks the button.
Question
The _______________ widget is used to display text in a window.
Question
An info dialog box is a simple window that displays a message to the user and has an OK button that closes the dialog box.
Question
The _______________ module allows you to create GUI programs in Python.
Question
A(n) _______________ allows the user to interact with the operating system and other programs through graphical elements on the screen.
Question
The pack method determines where a widget should be positioned.
Question
The Label widget's _______________ method determines where a widget should be positioned and makes the widget visible when the main window is displayed.
Question
In a GUI environment, no text input is possible.
Question
GUI programs respond to the actions of the user, and so they are called _______________ programs.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/35
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 14: GUI Programming
1
Programs that use tkinter do not always run reliably under IDLE.
True
2
The Toplevel widget is a container, like a(n) _____, but displays in its own window.

A) Label
B) frame
C) Canvas
D) Message
B
3
Check buttons are displayed in groups and used to make mutually exclusive selections.
False
4
In which environment can a user determine the order in which things happen?

A) Command line
B) GUI
C) ALU
D) CPU
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
5
Python does not have GUI programming features built into the language itself.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
6
What are the items that appear on the graphical interface window called?

A) Buttons
B) Icons
C) Widgets
D) Graphical elements
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
7
The acronym GUI stands for:

A) Graphical User Interface
B) Graphical Unit Interface
C) Graphical User Interaction
D) Graphical Users' Interface
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
8
With what part of the computer does the user interact?

A) Graphical unit
B) User interface
C) Register
D) CPU
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
9
In which type of interface is a prompt displayed that allows the user to enter a command, which is then executed?

A) Command line
B) GUI
C) ALU
D) CPU
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
10
A root widget's destroy method can be used as a callback function for a quit button.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
11
Which widget will create a rectangular area that can be used to display graphics?

A) Label
B) frame
C) Canvas
D) Message
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
12
Which widget will display multiple lines of text?

A) Label
B) Canvas
C) Message
D) Text
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
13
In Python, what module is used to create a GUI program?

A) tkinter
B) Pgui
C) gint
D) pygui
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
14
The _____ accepts the user's commands.

A) register
B) CPU
C) operating system
D) ALU
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
15
Using the radio buttons, the user can make multiple selections at one time.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
16
Which widget will create an area that displays one line of text or an image?

A) Label
B) frame
C) Canvas
D) Message
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
17
What types of programs are event-driven?

A) GUI programs
B) Command line programs
C) Procedural programs
D) Modular programs
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
18
How many graphical widgets does the tkinter module provide?

A) five
B) Ten
C) fifteen
D) Twenty
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
19
Which widget allows the user to select a value by moving a slider along a track?

A) Entry
B) Scale
C) Scrollbar
D) Slider
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
20
In a GUI environment, most interactions are done through small windows known as _____ that display information and allow the user to perform actions.

A) input boxes
B) windows
C) dialog boxes
D) message boxes
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
21
To use the showinfo function, the tkinter.messagebox module needs to be imported.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
22
The GUI popularized the use of the _______________ as an input device.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
23
Many computer users find a command line interface relatively easy to use.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
24
A(n) _______________ is a container that can hold other widgets and organize the widgets in a window.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
25
A(n) _______________ is a widget that the user can click to cause an action to occur.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
26
_______________ are small windows that display information and allow the user to perform actions.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
27
A(n) _______________ function is a function or method that executes when the user clicks the button.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
28
The _______________ widget is used to display text in a window.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
29
An info dialog box is a simple window that displays a message to the user and has an OK button that closes the dialog box.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
30
The _______________ module allows you to create GUI programs in Python.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
31
A(n) _______________ allows the user to interact with the operating system and other programs through graphical elements on the screen.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
32
The pack method determines where a widget should be positioned.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
33
The Label widget's _______________ method determines where a widget should be positioned and makes the widget visible when the main window is displayed.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
34
In a GUI environment, no text input is possible.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
35
GUI programs respond to the actions of the user, and so they are called _______________ programs.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 35 flashcards in this deck.