Deck 13: Gui Programming

ملء الشاشة (f)
exit full mode
سؤال
Which widget creates an area that displays one line of text or an image?

A) Label
B) Canvas
C) Message
D) Text
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
The pack method determines where a widget should be positioned.
سؤال
A __________ program is an event-driven program.

A) GUI
B) command line
C) procedural
D) modular
سؤال
A root widget's destroy method can be used as a callback function for a Quit button.
سؤال
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.
سؤال
To use the showinfo function,the tkinter.messagebox module must be imported.
سؤال
In an event-driven environment,the user interacts with

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

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

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

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

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

A) register
B) CPU
C) operating system
D) GUI
سؤال
The point (0,0)represents the same place in a window with the Canvas widget as with turtle graphics.
سؤال
Programs that use tkinter do not always run reliably in IDLE.
سؤال
Python does not have GUI programming features built into the language itself.
سؤال
The __________ module allows you to create GUI programs in Python.
سؤال
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
سؤال
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()
سؤال
A(n)___________ is a container that can hold other widgets and organize the widgets in a window.
سؤال
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
سؤال
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
سؤال
__________ are small windows that display information and allow the user to perform actions.
سؤال
Which of the following is not a method of the Canvas widget?

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

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

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

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

A) Graphical User's Interface
B) Graphical User Interface
C) Graphical User Interaction
D) Graphical Union Interface
سؤال
The Label widget's __________ method determines where a widget should be positioned and makes the widget visible when the main window is displayed.
سؤال
A(n)__________ function is a function or method that executes when the user clicks a button.
سؤال
To create a line with the create_line method of the Canvas widget,you must include four arguments that represent beginning and ending __________.
سؤال
The __________ widget provides methods that allow the programmer to draw some simple shapes.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/42
auto play flashcards
العب
simple tutorial
ملء الشاشة (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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
6
To use the showinfo function,the tkinter.messagebox module must be imported.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
8
Which widget will display multiple lines of text?

A) Label
B) Canvas
C) Message
D) Text
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
9
Checkbutton widgets are displayed in groups and used to make mutually exclusive selections.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
12
Radio buttons can be used to allow the user to make multiple selections at one time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
13
In a GUI environment,no text input is possible.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
15
The Entry widget's get method retrieves either numeric or string data.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
17
In an event-driven program,the __________ accepts the user's commands.

A) register
B) CPU
C) operating system
D) GUI
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
18
The point (0,0)represents the same place in a window with the Canvas widget as with turtle graphics.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
19
Programs that use tkinter do not always run reliably in IDLE.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
20
Python does not have GUI programming features built into the language itself.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
21
The __________ module allows you to create GUI programs in Python.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
24
A(n)___________ is a container that can hold other widgets and organize the widgets in a window.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
27
__________ are small windows that display information and allow the user to perform actions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
30
A(n)__________ allows the user to interact with the operating system and other programs through graphical elements on the screen.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
31
The GUI popularized the use of the __________ as an input device.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
33
A(n) __________ is a widget that the user can click to cause an action to occur.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
34
In Python,what module is used to create a GUI program?

A) tkinter
B) pygui
C) python_gui
D) pycanvas
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
36
Since GUI programs respond to the actions of the user,they are called __________ programs.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
37
The __________ widget is used to display text in a window.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
40
A(n)__________ function is a function or method that executes when the user clicks a button.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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 __________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
42
The __________ widget provides methods that allow the programmer to draw some simple shapes.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.