wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

tkinter quiz

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Is a form of user interface that allows users to interact with electronic devices through graphical icons and audio indicator such as primary notation, instead of text-based UIs, typed command labels or text navigation.

a)

Python

b)

G.U.I

c)

IDE

d)

IDLE

2.

This library provides a powerful object-oriented interface to the GUI toolkit.

a)

Pygames

b)

PyGUI

c)

tthinker

d)

tkinter

3.

what is the widget been programmed?

a)

if else

b)

messagebox

c)

label

d)

button

4.

what is the widget been programmed?

a)

text

b)

window title

c)

label

d)

button

5.

what is the correct execution of the code as seen in the picture?

a)

def clicked():

lbl.configure(text="Button was clicked !!")

b)

def pindot(): lbl.configure(text="Button was clicked !!")

c)

def clicked(): lbl.configurate(text="Button was clicked !!")

d)

def clicked(): button.configure(text="Button was clicked !!")

6.

what is the correct execution of the code as seen in the picture?

a)

lbl = label(window, text="Hello")

b)

lbl = Label(window, text="Hello")

c)

lbl = Text(window, text="Hello")

d)

lbl = txt(window, text="Hello")

7.

what is the widget been programmed?

a)

radiobutton

b)

selectbox

c)

combobox

d)

checkbox

8.

what is the widget been programmed?

a)

radiobutton

b)

button

c)

combobox

d)

checkbox

9.

what is the widget been programmed?

a)

message box

b)

info message

c)

alert box

d)

message content

10.

what is the correct code for the picture?

a)

btn = Button(window, text="Click Me", bg="org", fg="rd")

b)

btn = Button(window, text="Click Me", bg="blue", fg="red")

c)

btn = Button(window, text="Click Me", bg="orange", fg="red")

d)

btn = Button(window, text="Click Me", bg="red", fg="orange")