Deck 13: Gui Programming

Full screen (f)
exit full mode
Question
Which widget creates an area that displays one line of text or an image?

A) Label
B) Canvas
C) Message
D) Text
Use Space or
up arrow
down arrow
to flip the card.
Question
The pack method determines where a widget should be positioned.
Question
A __________ program is an event-driven program.

A) GUI
B) command line
C) procedural
D) modular
Question
A root widget's destroy method can be used as a callback function for a Quit button.
Question
An info dialog box is a window that displays a message to the user and has an OK button which,when clicked,closes the dialog box.
Question
To use the showinfo function,the tkinter.messagebox module must be imported.
Question
In an event-driven environment,the user interacts with

A) the graphical unit
B) the user interface
C) the register
D) the CPU
Question
Which widget will display multiple lines of text?

A) Label
B) Canvas
C) Message
D) Text
Question
Checkbutton widgets are displayed in groups and used to make mutually exclusive selections.
Question
To use an Entry widget to get data entered by a user,you must use the Entry widget's set method.
Question
What are the items that appear on the graphical interface window called?

A) buttons
B) icons
C) widgets
D) graphical elements
Question
Radio buttons can be used to allow the user to make multiple selections at one time.
Question
In a GUI environment,no text input is possible.
Question
Which widget allows the user to select a value by moving a slider along a track?

A) Scrollbar
B) Toplevel
C) Scale
D) Slider
Question
The Entry widget's get method retrieves either numeric or string data.
Question
Which widget allows the user to enter a single line of input from the keyboard?

A) Toplevel
B) Entry
C) Message
D) Text
Question
In an event-driven program,the __________ accepts the user's commands.

A) register
B) CPU
C) operating system
D) GUI
Question
The point (0,0)represents the same place in a window with the Canvas widget as with turtle graphics.
Question
Programs that use tkinter do not always run reliably in IDLE.
Question
Python does not have GUI programming features built into the language itself.
Question
The __________ module allows you to create GUI programs in Python.
Question
In a(n)__________ interface,a prompt is displayed that allows the user to enter a command which is then executed.

A) windows
B) command line
C) GUI
D) operating
Question
Given the following code,which line defines the size of the window?
<strong>Given the following code,which line defines the size of the window?  </strong> A) self.main_window = tkinter.Tk() B) self.canvas = tkinter.Canvas(self.main_window,width=200, height=200) C) self.canvas.create_rectangle(30,30, 175, 175) D) shape = myShape() <div style=padding-top: 35px>

A) self.main_window = tkinter.Tk()
B) self.canvas = tkinter.Canvas(self.main_window,width=200, height=200)
C) self.canvas.create_rectangle(30,30, 175, 175)
D) shape = myShape()
Question
A(n)___________ is a container that can hold other widgets and organize the widgets in a window.
Question
Which of the following must you include with your program so you can display a message to the user with the showinfo function?

A) import tkinter
B) import canvas
Import messagebox
C) import messagebox
D) import tkinter
Import tkinter.messagebox
Question
Given the following code,what are the dimensions,in pixels,of the shape created?
<strong>Given the following code,what are the dimensions,in pixels,of the shape created?  </strong> A) 200 X 200 B) 30 X 175 C) 145 X 145 D) None of these <div style=padding-top: 35px>

A) 200 X 200
B) 30 X 175
C) 145 X 145
D) None of these
Question
__________ are small windows that display information and allow the user to perform actions.
Question
Which of the following is not a method of the Canvas widget?

A) create_line
B) create_oval
C) create_button
D) create_text
Question
In a(n)__________ interface,the user can determine the order in which things happen.

A) windows
B) command line
C) GUI
D) operating
Question
A(n)__________ allows the user to interact with the operating system and other programs through graphical elements on the screen.
Question
The GUI popularized the use of the __________ as an input device.
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
A(n) __________ is a widget that the user can click to cause an action to occur.
Question
In Python,what module is used to create a GUI program?

A) tkinter
B) pygui
C) python_gui
D) pycanvas
Question
A __________ is a container that can be used to organize the widgets in a window.

A) Textbox
B) Label
C) Frame
D) Canvas
Question
Since GUI programs respond to the actions of the user,they are called __________ programs.
Question
The __________ widget is used to display text in a window.
Question
The acronym GUI stands for

A) Graphical User's Interface
B) Graphical User Interface
C) Graphical User Interaction
D) Graphical Union Interface
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
A(n)__________ function is a function or method that executes when the user clicks a button.
Question
To create a line with the create_line method of the Canvas widget,you must include four arguments that represent beginning and ending __________.
Question
The __________ widget provides methods that allow the programmer to draw some simple shapes.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/42
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 13: Gui Programming
1
Which widget creates an area that displays one line of text or an image?

A) Label
B) Canvas
C) Message
D) Text
A
2
The pack method determines where a widget should be positioned.
True
3
A __________ program is an event-driven program.

A) GUI
B) command line
C) procedural
D) modular
A
4
A root widget's destroy method can be used as a callback function for a Quit button.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
5
An info dialog box is a window that displays a message to the user and has an OK button which,when clicked,closes the dialog box.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
6
To use the showinfo function,the tkinter.messagebox module must be imported.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
7
In an event-driven environment,the user interacts with

A) the graphical unit
B) the user interface
C) the register
D) the CPU
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
8
Which widget will display multiple lines of text?

A) Label
B) Canvas
C) Message
D) Text
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
9
Checkbutton widgets are displayed in groups and used to make mutually exclusive selections.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
10
To use an Entry widget to get data entered by a user,you must use the Entry widget's set method.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
11
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 42 flashcards in this deck.
Unlock Deck
k this deck
12
Radio buttons can be used to allow the user to make multiple selections at one time.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
13
In a GUI environment,no text input is possible.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
14
Which widget allows the user to select a value by moving a slider along a track?

A) Scrollbar
B) Toplevel
C) Scale
D) Slider
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
15
The Entry widget's get method retrieves either numeric or string data.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
16
Which widget allows the user to enter a single line of input from the keyboard?

A) Toplevel
B) Entry
C) Message
D) Text
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
17
In an event-driven program,the __________ accepts the user's commands.

A) register
B) CPU
C) operating system
D) GUI
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
18
The point (0,0)represents the same place in a window with the Canvas widget as with turtle graphics.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
19
Programs that use tkinter do not always run reliably in IDLE.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
20
Python does not have GUI programming features built into the language itself.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
21
The __________ module allows you to create GUI programs in Python.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
22
In a(n)__________ interface,a prompt is displayed that allows the user to enter a command which is then executed.

A) windows
B) command line
C) GUI
D) operating
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
23
Given the following code,which line defines the size of the window?
<strong>Given the following code,which line defines the size of the window?  </strong> A) self.main_window = tkinter.Tk() B) self.canvas = tkinter.Canvas(self.main_window,width=200, height=200) C) self.canvas.create_rectangle(30,30, 175, 175) D) shape = myShape()

A) self.main_window = tkinter.Tk()
B) self.canvas = tkinter.Canvas(self.main_window,width=200, height=200)
C) self.canvas.create_rectangle(30,30, 175, 175)
D) shape = myShape()
Unlock Deck
Unlock for access to all 42 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 42 flashcards in this deck.
Unlock Deck
k this deck
25
Which of the following must you include with your program so you can display a message to the user with the showinfo function?

A) import tkinter
B) import canvas
Import messagebox
C) import messagebox
D) import tkinter
Import tkinter.messagebox
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
26
Given the following code,what are the dimensions,in pixels,of the shape created?
<strong>Given the following code,what are the dimensions,in pixels,of the shape created?  </strong> A) 200 X 200 B) 30 X 175 C) 145 X 145 D) None of these

A) 200 X 200
B) 30 X 175
C) 145 X 145
D) None of these
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
27
__________ are small windows that display information and allow the user to perform actions.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
28
Which of the following is not a method of the Canvas widget?

A) create_line
B) create_oval
C) create_button
D) create_text
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
29
In a(n)__________ interface,the user can determine the order in which things happen.

A) windows
B) command line
C) GUI
D) operating
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
30
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 42 flashcards in this deck.
Unlock Deck
k this deck
31
The GUI popularized the use of the __________ as an input device.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
32
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 42 flashcards in this deck.
Unlock Deck
k this deck
33
A(n) __________ is a widget that the user can click to cause an action to occur.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
34
In Python,what module is used to create a GUI program?

A) tkinter
B) pygui
C) python_gui
D) pycanvas
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
35
A __________ is a container that can be used to organize the widgets in a window.

A) Textbox
B) Label
C) Frame
D) Canvas
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
36
Since GUI programs respond to the actions of the user,they are called __________ programs.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
37
The __________ widget is used to display text in a window.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
38
The acronym GUI stands for

A) Graphical User's Interface
B) Graphical User Interface
C) Graphical User Interaction
D) Graphical Union Interface
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
39
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 42 flashcards in this deck.
Unlock Deck
k this deck
40
A(n)__________ function is a function or method that executes when the user clicks a button.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
41
To create a line with the create_line method of the Canvas widget,you must include four arguments that represent beginning and ending __________.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
42
The __________ widget provides methods that allow the programmer to draw some simple shapes.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 42 flashcards in this deck.