Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

python-tkinter

Total questions: 13

Worksheet time: 7mins

Name
Class
Date
1.

window=Tk() is to create new interface .

a)

true

b)

false

2.

The library that is responsible about creating GUI is

a)

Turtle

b)

TKinter

c)

Maze

3.

The GUI is stand for Graphical User Interface.

a)

true

b)

false

4.

window.geometry("300x200") is to change the size of the GUI window into .

a)

500 Height x 200 Width

b)

300 Height x 800 Width

c)

300 Height x 200 Width

5.

1. GUI stands for

a)

a. Graphical user interaction

b)

b. Graphical user interface

c)

c. Graphics uniform interaction

d)

d. Graphical Universal Interaction

6.

It is not possible to set the title of the window after creating it

a)

True

b)

False

7.

Which command used to change the screen size?

a)

window = Tk()

b)

window.mainloop()

c)

window.geometry("400x300")

8.

Which of the following function used to create window in

python tkinter.

a)

window()

b)

tk()

c)

toolkit()

d)

wd()

9.

Which of the following attribute used to change the text

color of a Label widget in python tkinter

a)

fg

b)

foreground

c)

bg

d)

background

10.

Which of the following attribute used to change the

background color of a Label widget in python tkinter

a)

background

b)

bg

c)

fg

d)

foreground

11.

Choose the correct statement to display title.

a)

window.title("My First Program")

b)

window.title(My First Program)

c)

window.title "My First Program"

12.

Which function is used to set the size of the tkinter

window?

a)

setsize()

b)

size()

c)

geometry()

d)

dimension()

13.

What is the use of mainloop() function in tkinter window?

a)

To create the window screen

b)

To hold the window screen

c)

To delete the window screen

d)

To disable the window screen