Deck 13: GUI Programming

Full screen (f)
exit full mode
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
Use Space or
up arrow
down arrow
to flip the card.
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
In which environment can a user determine the order in which things happen?

A) Command line
B) GUI
C) ALU
D) CPU
Question
What are the items that appear on the graphical interface window called?

A) Buttons
B) Icons
C) Widgets
D) Graphical elements
Question
With what part of the computer does the user interact?

A) Graphical unit
B) User interface
C) Register
D) CPU
Question
Programs that use tkinter do not always run reliably under IDLE.
Question
Python does not have GUI programming features built into the language itself.
Question
The _____ accepts the user's commands.

A) register
B) CPU
C) operating system
D) ALU
Question
What types of programs are event-driven?

A) GUI programs
B) Command line programs
C) Procedural programs
D) Modular programs
Question
A root widget's destroy method can be used as a callback function for a quit button.
Question
In Python, what module is used to create a GUI program?

A) tkinter
B) Pgui
C) gint
D) pygui
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
Which widget will create an area that displays one line of text or an image?

A) Label
B) Frame
C) Canvas
D) Message
Question
Check buttons are displayed in groups and used to make mutually exclusive selections.
Question
How many graphical widgets does the tkinter module provide?

A) Five
B) Ten
C) Fifteen
D) Twenty
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
Using the radio buttons, the user can make multiple selections at one time.
Question
The acronym GUI stands for:

A) Graphical User Interface
B) Graphical Unit Interface
C) Graphical User Interaction
D) Graphical Users' Interface
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
_______________ are small windows that display information and allow the user to perform actions.
Question
The _______________ widget is used to display text in a window.
Question
A(n) _______________ is a container that can hold other widgets and organize the widgets in a window.
Question
In a GUI environment, no text input is possible.
Question
A(n) _______________ function is a function or method that executes when the user clicks the button.
Question
A(n) _______________ is a widget that the user can click to cause an action to occur.
Question
Many computer users find a command line interface relatively easy to use.
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
The _______________ module allows you to create GUI programs in Python.
Question
The GUI popularized the use of the _______________ as an input device.
Question
GUI programs respond to the actions of the user, and so they are called _______________ programs.
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
To use the showinfo function, the tkinter.messagebox module needs to be imported.
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 13: GUI Programming
1
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
A
2
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
C
3
In which environment can a user determine the order in which things happen?

A) Command line
B) GUI
C) ALU
D) CPU
B
4
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
5
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
6
Programs that use tkinter do not always run reliably under IDLE.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
7
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
8
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
9
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
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
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
12
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
13
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
14
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
15
Check buttons are displayed in groups and used to make mutually exclusive selections.
Unlock Deck
Unlock for access to all 35 flashcards in this deck.
Unlock Deck
k this deck
16
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
17
The Toplevel widget is a container, like a(n) _____, but displays in its own window.

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
18
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
19
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
20
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
21
_______________ 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
22
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
23
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
24
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
25
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
26
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
27
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
28
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
29
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
30
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
31
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
32
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
33
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
34
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
35
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
locked card icon
Unlock Deck
Unlock for access to all 35 flashcards in this deck.