wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Quiz-1 tkinter

Total questions: 11

Worksheet time: 6mins

Name
Class
Date
1.

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 *

2.

Which of the following function used to create window in

python tkinter.

a)

window()

b)

tk()

c)

toolkit()

d)

wd()

3.

Which of the following function used to create window in

python tkinter.

a)

window()

b)

tk()

c)

toolkit()

d)

wd()

4.

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

5.

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

6.

Which function is used to set the size of the tkinter

window?

a)

setsize()

b)

size()

c)

geometry()

d)

dimension()

7.

Select the function is used to close the

tkinter window.

a)

destroy()

b)

delete()

c)

stop()

d)

remove()

8.

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

9.

In contrast to a terminal-based program, a GUI-based

program

a)

user needs to wait for the options

b)

completely controls the order in which the user enters inputs

c)

can allow the user to enter inputs in any order

d)

that decided by the window manager pack()

10.

In MVC pattern, the model is responsible for

a)

processing the program's data

b)

managing the program's data

c)

displaying the program's data

d)

control the appearance of data

11.

Is it possible to set the title for a window after creating it?

a)

yes

b)

no