wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Tkinter

Total questions: 9

Worksheet time: 4mins

Name
Class
Date
1.

Which is the correct way to import Tkinter module in python program?

a)

include tkinter *

b)

import tkinter *

c)

from tkinter import *

d)

from tkinter include *

2.

Which is the correct code to create button widget in Tkinter?
*

a)

Button(root,text=).pack()

b)

Button(root,text="",).pack()

c)

button(root).pack()

d)

Button(text="").pack()

3.

What are two methods that place a widget on your root window?

a)

pack and grid

b)

pack and set

c)

grid and set

d)

set and get

4.

Which of the following function used to create a window in python Tkinter?

a)

window()

b)

Tk()

c)

pack()

d)

grid()

5.

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

6.

The ______method is used to create dimension of the window

a)

place()

b)

pack()

c)

configure()

d)

geometry()

7.

The geometry manager that allows you to specify the exact pixel coordinates of a widget within the parent widget is

a)

place()

b)

grid()

c)

pack()

d)

configure()

8.

Tkinter is the most commonly used built-in library for creating GUI.GUI stands for

a)

Graphical user interaction

b)

Graphical user interface

c)

Graphics uniform interaction

d)

Graphical Universal Interaction

9.

The geometry manager that organizes widgets in a table-like structure, where each widget is placed in a specific cell of the table defined by row and column numbers is 

a)

grid()

b)

place()

c)

insert()

d)

pack()