wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python Tkinter

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

Which command used to change the screen size?

a)

window = Tk()

b)

window.mainloop()

c)

window.geometry("400x300")

2.

Which of the following is easy to use from the user?

a)

Command Line

b)

GUI (Graphical User Interface)

3.

__________ is an element of GUI.

a)

Widget

b)

GUI

c)

Application

4.

Which is the correct way to use tkinter in python

program?

a)

include tkinter *

b)

import tkinter *

c)

from tkinter import *

d)

from tkinter include *

5.

Which of the following function used to create window in

python tkinter.

a)

window()

b)

tk()

c)

toolkit()

d)

wd()

6.

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

7.

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

8.

What is the full form of GUI?

a)

Graphic Unit Interface

b)

Graphical User Interface

c)

Graphic Unit Input

9.

______________ library provides fast and easy way to create GUI applications in Python.

a)

Tkinter

b)

IbtikarMaker

c)

Graph

10.

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"

11.

Label , Button , Sliders are all examples of Widgets.

a)

True

b)

False

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

14.

What is tkinter?

a)

A Python GUI module

b)

A Python Scripting module

15.

It provides a scrollbar to the use so that the use can scroll the window up and down.

a)

Scrollbar()

b)

Spinbox()

c)

Menu()

d)

Entry()