
PY2007 - 8/3/2025
Authored by Aim Sity
Computers
9th - 12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to create a Tkinter window?
a) window = Tk()
b) window = tk()
c) window = tkinter.window()
d) window = main()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is required to keep the Tkinter window running?
a) root.start()
b) root.mainloop()
c) root.run()
d) root.execute()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to set the title of a Tkinter window?
a) root.header("My App")
b) root.name("My App")
c) root.title("My App")
d) root.window_name("My App")
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the pack() method do in Tkinter?
a) Arranges widgets inside the window
b) Closes the window
c) Creates an event loop
d) Binds a function to an event
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which widget is used to display text in Tkinter?
a) Label
b) Textbox
c) TextBoxField
d) TextArea
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which event is triggered when the mouse moves over a widget?
a) <Click>
b) <Motion>
c) <Move>
d) <Hover>
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to bind an event to a widget in Tkinter?
a) widget.trigger()
b) widget.bind()
c) widget.on_event()
d) widget.listen()
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?