
day4
Authored by jahar fatima
Other
Professional Development

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which library is commonly used for creating graphical user interfaces (GUI) in Python?
PyQT
Tkinter
Kivy
wxPython
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the mainloop() method in Tkinter?
It initializes the main window
It terminates the program
It defines the layout of widgets
This method listens for events, such as button clicks or keypresses, and blocks any code that comes
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which widget is used to display static text in a Tkinter GUI?
Label
Button
Entry
Text
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to add a widget to the parent widget with the geometry manager that organizes widgets in blocks before placing them in the parent widget?
pack()
grid()
place()
insert()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to retrieve the current value of an Entry widget in Tkinter?
get()
retrieve()
fetch()
obtain()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the insert() method in Tkinter?
It inserts a new widget into the GUI
It inserts a new row or column in the grid layout
It inserts text into an Entry widget
It inserts a button into the layout
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which attribute is used to associate a function with a Button widget in Tkinter?
bind
connect
command
attach
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?