Font size
WorksheetsDT Revision
Total questions: 9
Worksheet time: 5mins
What is the correct code for line 1
1. from TKINTER import *
2. window = ________
3. window.title GUI in Python
4. window.geometry("__________________")
5. WINDOWS.mainloop()
from tkinter import *
from Tk() import *
from Tkinter import *
. from TKINTER import *
2. window = ________
3. window.title GUI in Python
What should be the correct code for line 3 in the code shown above?
window.title"GUI in Python"
window.title(GUI in Python)
window.title("GUI in Python")
What is the missing code from line 4
. from TKINTER import *
2. window = ________
3. window.title GUI in Python
4. window.geometry("__________________")
5. WINDOWS.mainloop()
(600X400)
"600x400”
600x400
What should be the correct code for line 5
from TKINTER import *
2. window = ________
3. window.title GUI in Python
4. window.geometry("__________________")
5. WINDOWS.mainloop()
mainloop.window()
window.mainloop()
windows.mainloop()
What is the missing code from line 2
. from TKINTER import *
2. window = ________
3. window.title GUI in Python
4. window.geometry("__________________")
5. WINDOWS.mainloop()
TK()
Tk()
tK()
Choose the correct code for line 3
from tkinter import *
2. window = Tk()
3. WINDOW=Title(Enter your name)
4. window.geometry("350x150")
5. def Button_clicked():
WINDOW.title("Enter your name")
window=title("Enter your name")
window.title(“Enter your name”)
Choose the missing code for line 1
. btn = _________________________________________________
2. btn.grid(row=1, column=0)
btn = button(window, text="Submit", command=Button_clicked)
btn = Button(window, text=Submit, command=Button clicked)
btn = Button(window, text="Submit", command=Button_clicked)
A straight bar that rests on a fulcrum support is called lever.
True
False
A force that resists the movement between two surfaces that are sliding or trying to slide against each other is called friction
True
False
