wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

DT Revision

Total questions: 9

Worksheet time: 5mins

Name
Class
Date
1.

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()

a)

from tkinter import *

b)

from Tk() import *

c)

from Tkinter import *

2.

. 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?

a)

window.title"GUI in Python"

b)

window.title(GUI in Python)

c)

window.title("GUI in Python")

3.

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()

a)

(600X400)

b)

"600x400”

c)

600x400

4.

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()

a)

mainloop.window()

b)

window.mainloop()

c)

windows.mainloop()

5.

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()

a)

TK()

b)

Tk()

c)

tK()

6.

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():

a)

WINDOW.title("Enter your name")

b)

window=title("Enter your name")

c)

window.title(“Enter your name”)

7.

Choose the missing code for line 1

. btn = _________________________________________________

2. btn.grid(row=1, column=0)

a)

btn = button(window, text="Submit", command=Button_clicked)

b)

btn = Button(window, text=Submit, command=Button clicked)

c)

btn = Button(window, text="Submit", command=Button_clicked)

8.

A straight bar that rests on a fulcrum support is called lever.

a)

True

b)

False

9.

A force that resists the movement between two surfaces that are sliding or trying to slide against each other is called friction

a)

True

b)

False