Deck 13: GUI Programming
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/35
Play
Full screen (f)
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) 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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